1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-20 09:19:24 +03:00

Add additional syntax highlighting for Haskell

- Function names in type signatures are now highlighted
- Quasiquotes are now highlighted
This commit is contained in:
Evan Relf 2019-09-28 15:38:43 -07:00
parent aa6a7e544d
commit c544e01b7d
No known key found for this signature in database
GPG Key ID: D85956120D0F33A6

View File

@ -84,6 +84,12 @@ add-highlighter shared/haskell/code/ regex \b(forall)\b[^.\n]*?(\.) 1:keyword 2:
add-highlighter shared/haskell/code/ regex \B'([^\\]|[\\]['"\w\d\\])' 0:string
# this has to come after operators so '-' etc is correct
# matches function names in type signatures
add-highlighter shared/haskell/code/ regex ^\h*(?:(?:where|let|default)\h+)?([_a-z]['\w]*)\s+::\s 1:meta
# matches quasiquotes
add-highlighter shared/haskell/quasiquote region \[\b[\w]['\w]*\| \|\] fill string
# Commands
# ‾‾‾‾‾‾‾‾