Merge remote-tracking branch 'dianne/string-highlighter-fix'

This commit is contained in:
Maxime Coste 2017-06-21 16:56:06 +01:00
commit d9edd3f013
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ hook global BufCreate .*[.](hs) %{
# ‾‾‾‾‾‾‾‾‾‾‾‾
add-highlighter -group / regions -default code haskell \
string '"' (?<!\\)(\\\\)*" '' \
string %{(?<!')"} (?<!\\)(\\\\)*" '' \
comment (--[^>]) $ '' \
comment \{- -\} \{- \
macro ^\h*?\K# (?<!\\)\n ''

View File

@ -12,7 +12,7 @@ hook global BufCreate .*[.](rust|rs) %{
# ‾‾‾‾‾‾‾‾‾‾‾‾
add-highlighter -group / regions -default code rust \
string '"' (?<!\\)(\\\\)*" '' \
string %{(?<!')"} (?<!\\)(\\\\)*" '' \
comment // $ '' \
comment /\* \*/ /\*