diff --git a/rc/filetype/haskell.kak b/rc/filetype/haskell.kak index 2bab42d8..c2d19340 100644 --- a/rc/filetype/haskell.kak +++ b/rc/filetype/haskell.kak @@ -90,6 +90,10 @@ add-highlighter shared/haskell/code/ regex ^\h*(?:(?:where|let|default)\h+)?([_a # matches quasiquotes add-highlighter shared/haskell/code/ regex \[\b[\w]['\w]*\|(.*)\|\] 1:string +# matches deriving strategies +add-highlighter shared/haskell/code/ regex \bderiving\s+\b(stock|newtype|anyclass|via)\b 1:keyword +add-highlighter shared/haskell/code/ regex \bderiving\s+[^\s]+?\s+\b(via)\b 1:keyword + # Commands # ‾‾‾‾‾‾‾‾