jgm / typst-hs

Haskell library for parsing and evaluating typst
Other
44 stars 5 forks source link

Parse error with nested equations #6

Closed jgm closed 1 year ago

jgm commented 1 year ago
$ #let g = $3$
#g $
(line 1, column 15):
unexpected "\n"
expecting digit, "\"", "\\", "&", "\8730", "none", "auto", "true", "false", "0b", "0x", "0o", ".", "(", "{", "[", "|", "#", "!=", ">=", "<=", "<-", "->", "=>", "<--", "-->", "<==", "==>", "...", "'" or "$"
jgm commented 1 year ago

This works fine:

$ #let g = 3

#g $
jgm commented 1 year ago

Found in trying to parse https://github.com/Leedehai/typst-physics