Skip to content

Commit

Permalink
Fix bug found by random testing
Browse files Browse the repository at this point in the history
related to #14
  • Loading branch information
rfindler committed Dec 4, 2022
1 parent 06f5504 commit 6c3cc96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion syntax-color-lib/syntax-color/scribble-lexer.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
(byte-rx #"^[|]" re-opener #"{")
(byte-rx #".*?(?:(?=[|]"
re-opener
#"[" (regexp-quote at-bytes) #"{])|(?="
#"(" (regexp-quote at-bytes) #"|{))|(?="
closer
#")|(?=[\r\n])|$)")
'|{| ;; Better complex paren?
Expand Down
2 changes: 2 additions & 0 deletions syntax-color-test/tests/syntax-color/scribble-lexer.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,5 @@
(4 parenthesis)))

(test/chars '(#\^) "\\" '((1 text)))

(test/chars (remove #\\ chars) "@|{|\\" '((3 parenthesis) (2 text)))

0 comments on commit 6c3cc96

Please sign in to comment.