From 991ed97f4c26f6705b0a7ed82ebd4ffcdae44f77 Mon Sep 17 00:00:00 2001 From: Evan Relf Date: Thu, 12 Dec 2019 15:45:43 -0800 Subject: [PATCH] Fix incomplete highlighting of Haskell via keyword --- rc/filetype/haskell.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/haskell.kak b/rc/filetype/haskell.kak index 7745384c..4315d37e 100644 --- a/rc/filetype/haskell.kak +++ b/rc/filetype/haskell.kak @@ -91,7 +91,7 @@ add-highlighter shared/haskell/code/ regex ^\s*(?:where\s+|let\s+|default\s+)?([ # 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 +add-highlighter shared/haskell/code/ regex \bderiving\b\s+(?:[A-Z]['\w]+|\([',\w\s]+?\))\s+\b(via)\b 1:keyword # Commands # ‾‾‾‾‾‾‾‾