Improve Haskell quasiquote highlighting

Now only the inside of the quasiquote gets the string coloring applied.
This commit is contained in:
Evan Relf 2019-11-18 00:14:41 -08:00
parent f40064b8d6
commit 237acbcfeb
No known key found for this signature in database
GPG Key ID: D85956120D0F33A6

View File

@ -88,7 +88,7 @@ add-highlighter shared/haskell/code/ regex \B'([^\\]|[\\]['"\w\d\\])' 0:string
add-highlighter shared/haskell/code/ regex ^\h*(?:(?:where|let|default)\h+)?([_a-z]['\w]*)\s+::\s 1:meta add-highlighter shared/haskell/code/ regex ^\h*(?:(?:where|let|default)\h+)?([_a-z]['\w]*)\s+::\s 1:meta
# matches quasiquotes # matches quasiquotes
add-highlighter shared/haskell/quasiquote region \[\b[\w]['\w]*\| \|\] fill string add-highlighter shared/haskell/code/ regex \[\b[\w]['\w]*\|(.*)\|\] 1:string
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾