Improve highlighting of Haskell function names
This commit is contained in:
parent
024a3afff0
commit
9eb9747396
|
@ -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
|
# this has to come after operators so '-' etc is correct
|
||||||
|
|
||||||
# matches function names in type signatures
|
# 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
|
# 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+\b(stock|newtype|anyclass|via)\b 1:keyword
|
||||||
|
|
Loading…
Reference in New Issue
Block a user