colorer tweak

hide-top-rule-name
Matthew Butterick 7 years ago
parent 2f2f92a3c1
commit 8473f59881

@ -8,7 +8,9 @@
;; need to lex whitespace to keep srclocs accurate ;; need to lex whitespace to keep srclocs accurate
;; (for DrRacket selections etc) ;; (for DrRacket selections etc)
[whitespace (token 'WHITE lexeme)] [whitespace (token 'WHITE lexeme)]
[(:or (from/to "'" "'") (from/to "\"" "\"")) (token 'LIT lexeme)] [(:or (:: "\"" "\\" "\"" "\"") ; string containg double-quote = "\""
(from/to "'" "'")
(from/to "\"" "\"")) (token 'LIT lexeme)]
[(:or (char-set "()[]{}|+*:?") hide-char splice-char) (token 'MISC lexeme)] [(:or (char-set "()[]{}|+*:?") hide-char splice-char) (token 'MISC lexeme)]
[(:seq (:or "#" ";") (complement (:seq (:* any-char) NL (:* any-char))) (:or NL "")) (token 'COMMENT lexeme)] [(:seq (:or "#" ";") (complement (:seq (:* any-char) NL (:* any-char))) (:or NL "")) (token 'COMMENT lexeme)]
[id (token 'ID lexeme)] [id (token 'ID lexeme)]

Loading…
Cancel
Save