summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRăzvan C. Rădulescu <razcore.art@gmail.com>2021-05-30 15:39:58 +0300
committerRăzvan C. Rădulescu <razcore.art@gmail.com>2021-05-30 15:39:58 +0300
commitc24cbebe4716d6c807ec2ca09211459fe1c4c2fb (patch)
treeea8dc268f5397c2fc6051010b4b22c69d2531337
parent2b0aaf00441f9463db2f01f16f6a748884be838b (diff)
Fix purescript comments and keywords
-rw-r--r--rc/filetype/purescript.kak2
-rw-r--r--rc/tools/comment.kak2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/purescript.kak b/rc/filetype/purescript.kak
index efa0a645..b187d4f6 100644
--- a/rc/filetype/purescript.kak
+++ b/rc/filetype/purescript.kak
@@ -45,7 +45,7 @@ add-highlighter shared/purescript/code/ regex (?<!')\b0x+[A-Fa-f0-9]+ 0:value
add-highlighter shared/purescript/code/ regex (?<!')\b\d+([.]\d+)? 0:value
add-highlighter shared/purescript/code/ regex (?<!')\b(import|hiding|module)(?!')\b 0:keyword
add-highlighter shared/purescript/code/ regex (?<!')\b(import)(?!')\b[^\n]+(?<!')\b(as)(?!')\b 2:keyword
-add-highlighter shared/purescript/code/ regex (?<!')\b(class|data|default|deriving|infix|infixl|infixr|instance|module|newtype|pattern|type|where)(?!')\b 0:keyword
+add-highlighter shared/purescript/code/ regex (?<!')\b(class|data|default|derive|infix|infixl|infixr|instance|module|newtype|pattern|type|where)(?!')\b 0:keyword
add-highlighter shared/purescript/code/ regex (?<!')\b(case|do|else|if|in|let|mdo|of|proc|rec|then)(?!')\b 0:attribute
add-highlighter shared/purescript/code/ regex (?<!')\b(type|data)\b\s+(\bfamily\b)?(?!') 0:keyword
diff --git a/rc/tools/comment.kak b/rc/tools/comment.kak
index 6a2817b5..ad3ce58f 100644
--- a/rc/tools/comment.kak
+++ b/rc/tools/comment.kak
@@ -21,7 +21,7 @@ hook global BufSetOption filetype=(c|cpp|dart|gluon|go|java|javascript|objc|php|
set-option buffer comment_block_end '*/'
}
-hook global BufSetOption filetype=(cabal|haskell|moon|idris|elm|dhall) %{
+hook global BufSetOption filetype=(cabal|haskell|moon|idris|elm|dhall|purescript) %{
set-option buffer comment_line '--'
set-option buffer comment_block_begin '{-'
set-option buffer comment_block_end '-}'