Fix Haskell multi-line quasiquoter highlighting

This commit is contained in:
Evan Relf 2019-12-12 16:00:50 -08:00
parent 991ed97f4c
commit 77ec8b70a8
No known key found for this signature in database
GPG Key ID: D85956120D0F33A6

View File

@ -39,7 +39,7 @@ add-highlighter shared/haskell/macro region ^\h*?\K#
add-highlighter shared/haskell/pragma region -recurse \{- \{-# '#-\}' fill meta
add-highlighter shared/haskell/comment region -recurse \{- \{- -\} fill comment
add-highlighter shared/haskell/line_comment region --(?:[^!#$%&*+./<>?@\\\^|~=]|$) $ fill comment
add-highlighter shared/haskell/quasiquote region \[\b[_a-z]['\w]*#?\| \|\] fill string
add-highlighter shared/haskell/quasiquote region \[\b[_a-z]['\w]*#?\| \|\] regex \[\b[_a-z]['\w]*#?\|(.*?)\|\] 1:string
add-highlighter shared/haskell/code/ regex (?<!')\b0x+[A-Fa-f0-9]+ 0:value
add-highlighter shared/haskell/code/ regex (?<!')\b\d+([.]\d+)? 0:value