improved haskell comment regex
This commit is contained in:
parent
54674fd4bf
commit
129424daea
|
@ -12,10 +12,10 @@ hook global BufCreate .*[.](hs) %{
|
||||||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||||
|
|
||||||
add-highlighter -group / regions -default code haskell \
|
add-highlighter -group / regions -default code haskell \
|
||||||
string '"' (?<!\\)(\\\\)*" '' \
|
string '"' (?<!\\)(\\\\)*" '' \
|
||||||
comment (--) $ '' \
|
comment (--[^>]) $ '' \
|
||||||
comment \{- -\} \{- \
|
comment \{- -\} \{- \
|
||||||
macro ^\h*?\K# (?<!\\)\n ''
|
macro ^\h*?\K# (?<!\\)\n ''
|
||||||
|
|
||||||
add-highlighter -group /haskell/string fill string
|
add-highlighter -group /haskell/string fill string
|
||||||
add-highlighter -group /haskell/comment fill comment
|
add-highlighter -group /haskell/comment fill comment
|
||||||
|
|
Loading…
Reference in New Issue
Block a user