Highlight Haskell deriving strategies keywords
This commit is contained in:
parent
237acbcfeb
commit
199b4e2f66
|
@ -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
|
||||
# ‾‾‾‾‾‾‾‾
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user