Fix purescript comments and keywords

This commit is contained in:
Răzvan C. Rădulescu 2021-05-30 15:39:58 +03:00
parent 2b0aaf0044
commit c24cbebe47
2 changed files with 2 additions and 2 deletions

View File

@ -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\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|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(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(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 add-highlighter shared/purescript/code/ regex (?<!')\b(type|data)\b\s+(\bfamily\b)?(?!') 0:keyword

View File

@ -21,7 +21,7 @@ hook global BufSetOption filetype=(c|cpp|dart|gluon|go|java|javascript|objc|php|
set-option buffer comment_block_end '*/' 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_line '--'
set-option buffer comment_block_begin '{-' set-option buffer comment_block_begin '{-'
set-option buffer comment_block_end '-}' set-option buffer comment_block_end '-}'