From 199b4e2f6683bd40d428a6e923c21d8f9b166ed3 Mon Sep 17 00:00:00 2001 From: Evan Relf Date: Mon, 18 Nov 2019 00:15:33 -0800 Subject: [PATCH] Highlight Haskell deriving strategies keywords --- rc/filetype/haskell.kak | 4 ++++ 1 file changed, 4 insertions(+) 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 # ‾‾‾‾‾‾‾‾