From 9eb97473962c05d27e80be13f8eea1f78305ce2c Mon Sep 17 00:00:00 2001 From: Evan Relf Date: Sun, 1 Dec 2019 23:59:48 -0800 Subject: [PATCH] Improve highlighting of Haskell function names --- rc/filetype/haskell.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/filetype/haskell.kak b/rc/filetype/haskell.kak index 82fba2c9..7745384c 100644 --- a/rc/filetype/haskell.kak +++ b/rc/filetype/haskell.kak @@ -87,8 +87,7 @@ add-highlighter shared/haskell/code/ regex \B'([^\\]|[\\]['"\w\d\\])' 0:string # this has to come after operators so '-' etc is correct # matches function names in type signatures -add-highlighter shared/haskell/code/ regex ^\h*(?:(?:where|let|default)\h+)?([_a-z]['\w]*)\s+::\s 1:meta - +add-highlighter shared/haskell/code/ regex ^\s*(?:where\s+|let\s+|default\s+)?([_a-z]['\w]*#?(?:,\s*[_a-z]['\w]*#?)*)\s+::\s 1:meta # matches deriving strategies add-highlighter shared/haskell/code/ regex \bderiving\s+\b(stock|newtype|anyclass|via)\b 1:keyword