Merge remote-tracking branch 'dianne/string-highlighter-fix'
This commit is contained in:
commit
d9edd3f013
|
@ -12,10 +12,10 @@ hook global BufCreate .*[.](hs) %{
|
|||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
|
||||
add-highlighter -group / regions -default code haskell \
|
||||
string '"' (?<!\\)(\\\\)*" '' \
|
||||
comment (--[^>]) $ '' \
|
||||
comment \{- -\} \{- \
|
||||
macro ^\h*?\K# (?<!\\)\n ''
|
||||
string %{(?<!')"} (?<!\\)(\\\\)*" '' \
|
||||
comment (--[^>]) $ '' \
|
||||
comment \{- -\} \{- \
|
||||
macro ^\h*?\K# (?<!\\)\n ''
|
||||
|
||||
add-highlighter -group /haskell/string fill string
|
||||
add-highlighter -group /haskell/comment fill comment
|
||||
|
|
|
@ -12,9 +12,9 @@ hook global BufCreate .*[.](rust|rs) %{
|
|||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
|
||||
add-highlighter -group / regions -default code rust \
|
||||
string '"' (?<!\\)(\\\\)*" '' \
|
||||
comment // $ '' \
|
||||
comment /\* \*/ /\*
|
||||
string %{(?<!')"} (?<!\\)(\\\\)*" '' \
|
||||
comment // $ '' \
|
||||
comment /\* \*/ /\*
|
||||
|
||||
add-highlighter -group /rust/string fill string
|
||||
add-highlighter -group /rust/comment fill comment
|
||||
|
|
Loading…
Reference in New Issue
Block a user