Retoor software development Projects Research SearchXNG
Register Sign In

4 lines
56 B
Plaintext
Raw Normal View History

fix: add lexError function and fix line counting for unterminated block comments Add a dedicated lexError function that marks compilation as failed and formats error messages consistently with a trailing newline. Move line counting from readRawToken into nextChar so that newlines are tracked during all lexer phases, including block comment scanning. Replace the TODO placeholder in skipBlockComment with a proper lexError call for unterminated block comments, and add test cases for unterminated block and nested block comments.
2013-12-23 23:51:06 +01:00
// expect error line 4
IO.write("nope") /* /* /*
*/
oops
Reference in New Issue Copy Permalink
b72a42eedd
wren/test/comments/unterminated_nested_block.wren
Response time: 45ms
Mail Licenses API