feat: treat semicolons as line tokens in wren compiler lexer
Add a new case in the `readRawToken` function within `src/wren_compiler.c` to map the semicolon character to the `TOKEN_LINE` token type, enabling semicolons to function as line separators in the Wren language parser. Include a test file `test/semicolon.wren` that verifies the new behavior by using a semicolon to separate two statements on a single line, with the expected output "ok".
This commit is contained in:
@@ -0,0 +1 @@
|
||||
var a = "ok"; io.write(a) // expect: ok
|
||||
Reference in New Issue
Block a user