datalog: tokenizer raises on unterminated block comment (249/249)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s
Bug: `/* unclosed` was silently consumed to EOF, swallowing any Datalog code that followed inside the (never-closing) comment. Programs would produce empty parses with no error. Fix: skip-block-comment! now raises when it hits EOF without finding `*/`. Error message includes the position where the problem was first detected. Line comments (`%`) and properly closed block comments (`/* ... */`) are unaffected. 1 new tokenize test verifies the error path.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# datalog scoreboard
|
||||
|
||||
**248 / 248 passing** (0 failure(s)).
|
||||
**249 / 249 passing** (0 failure(s)).
|
||||
|
||||
| Suite | Passed | Total | Status |
|
||||
|-------|--------|-------|--------|
|
||||
| tokenize | 26 | 26 | ok |
|
||||
| tokenize | 27 | 27 | ok |
|
||||
| parse | 22 | 22 | ok |
|
||||
| unify | 28 | 28 | ok |
|
||||
| eval | 36 | 36 | ok |
|
||||
|
||||
Reference in New Issue
Block a user