Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix white_space matching expression for comments including $
Browse files Browse the repository at this point in the history
ReubenJ committed Dec 7, 2023
1 parent d8e8961 commit a41cf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/grammar.jl
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"Parser combinator for Lisp syntax."
lisp = Delayed()

white_space = p"(([\s\n\r]*(?<!\\);[^\n\r$]+[\n\r\s$]*)+|[\s\n\r]+)"
white_space = p"(([\s\n\r]*(?<!\\);[^\n\r]+[\n\r\s]*)+|[\s\n\r]+)"
opt_ws = white_space | e""

doubley = p"[-+]?[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?" > (x -> parse(Float64, x))

0 comments on commit a41cf56

Please sign in to comment.