1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 04:52:53 +03:00

improved haskell comment regex

This commit is contained in:
Omar Polo 2017-02-21 21:26:05 +01:00
parent 54674fd4bf
commit 129424daea

View File

@ -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