Highlight Haskell deriving strategies keywords

This commit is contained in:
Evan Relf 2019-11-18 00:15:33 -08:00
parent 237acbcfeb
commit 199b4e2f66
No known key found for this signature in database
GPG Key ID: D85956120D0F33A6

View File

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