fix(lexer): tokenise the flag separator and handle NUL and invalid UTF-8

Assisted-by: GLM 5.3
This commit is contained in:
2026-09-19 23:48:47 +02:00
parent 93c47a312a
commit ac1c05c793
5 changed files with 105 additions and 18 deletions
+2
View File
@@ -42,6 +42,7 @@ const (
Arrow // ->
At // @
Hash // #
Pipe // |
)
var kindNames = map[Kind]string{
@@ -69,6 +70,7 @@ var kindNames = map[Kind]string{
Arrow: "->",
At: "@",
Hash: "#",
Pipe: "|",
}
// String returns a human-readable name for the kind.