Fix incomplete highlighting of Haskell via keyword

This commit is contained in:
Evan Relf 2019-12-12 15:45:43 -08:00
parent 9eb9747396
commit 991ed97f4c
No known key found for this signature in database
GPG Key ID: D85956120D0F33A6

View File

@ -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
# ‾‾‾‾‾‾‾‾