From c95bd83ea19192efcec60f973341583a866db5fe Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 9 Oct 2017 12:55:48 +0800 Subject: [PATCH] haskell.kak: remove complex lookarounds Highlighting is going to be slightly less correct, but we get rid of the last incompatible regex in rc/ --- rc/base/haskell.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/base/haskell.kak b/rc/base/haskell.kak index bccf6eaf..18ff7a96 100644 --- a/rc/base/haskell.kak +++ b/rc/base/haskell.kak @@ -45,7 +45,7 @@ add-highlighter -group /haskell/code regex \b([A-Z]['\w]*\.)*[A-Z]['\w]*(?!\.) 0 add-highlighter -group /haskell/code regex `\b([A-Z]['\w]*\.)*[\w]['\w]*` 0:operator # matches imported operators: M.! M.. Control.Monad.>> # not operator keywords: M... M.-> -add-highlighter -group /haskell/code regex \b[A-Z]['\w]*\.(?!([~=|:@\\]|<-|->|=>|\.\.|::)[^~<=>|:!?/.@$*&#%+\^\-\\])[~<=>|:!?/.@$*&#%+\^\-\\]+ 0:operator +add-highlighter -group /haskell/code regex \b[A-Z]['\w]*\.[~<=>|:!?/.@$*&#%+\^\-\\]+ 0:operator # matches dot: . # not possibly incomplete import: a. # not other operators: !. .! @@ -53,7 +53,7 @@ add-highlighter -group /haskell/code regex (?|:!?/.@$*&#%+\^\-\\])\.(?! # matches other operators: ... > < <= ^ <*> <$> etc # not dot: . # not operator keywords: @ .. -> :: ~ -add-highlighter -group /haskell/code regex (?|:!?/.@$*&#%+\^\-\\])(?!([~=|:.@\\]|<-|->|=>|\.\.|::)[^~<=>|:!?/.@$*&#%+\^\-\\])[~<=>|:!?/.@$*&#%+\^\-\\]+ 0:operator +add-highlighter -group /haskell/code regex (?|:!?/.@$*&#%+\^\-\\])[~<=>|:!?/.@$*&#%+\^\-\\]+ 0:operator # matches operator keywords: @ -> add-highlighter -group /haskell/code regex (?|:!?/.@$*&#%+\^\-\\])(@|~|<-|->|=>|::|=|:|[|])(?![~<=>|:!?/.@$*&#%+\^\-\\]) 1:keyword