js-on-sx: lexer rejects bare backslash in source
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 38s

This commit is contained in:
2026-05-09 02:41:58 +00:00
parent 0b7d88bbe1
commit e5709c5aec
2 changed files with 4 additions and 0 deletions

View File

@@ -680,6 +680,8 @@
(do (js-emit! "op" "^" start) (advance! 1)))
((= ch "~")
(do (js-emit! "op" "~" start) (advance! 1)))
((= ch "\\")
(error "Unexpected char '\\' in source"))
(else (advance! 1)))))
(define
scan!