aboutsummaryrefslogtreecommitdiffhomepage
path: root/editors/vim
diff options
context:
space:
mode:
authorMarvin Borner2022-08-10 18:53:34 +0200
committerMarvin Borner2022-08-10 18:53:34 +0200
commit792534b3888bc1b9c33047f1c312c4e17a720885 (patch)
treeb0401f5c1ca156858fb7de94a5488151be075c89 /editors/vim
parentcba3d7d21241f8db913e6e2733a8edc3a522ee62 (diff)
Added syntactic sugar for strings & chars
Diffstat (limited to 'editors/vim')
-rw-r--r--editors/vim/syntax/bruijn.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/vim/syntax/bruijn.vim b/editors/vim/syntax/bruijn.vim
index 45e75d9..8bd194c 100644
--- a/editors/vim/syntax/bruijn.vim
+++ b/editors/vim/syntax/bruijn.vim
@@ -14,16 +14,20 @@ syn match bruijnKeyword /:test\|:import\|:print/
syn match bruijnNamespace /[A-Z][a-z]*\(\.\)\@=/
syn match bruijnNamespaceDelim /\([A-Z][a-z]*\)\@<=\./
-syn region bruijnCommentLine start="^# " end="$"
+syn region bruijnCommentLine start="^# " end="$" oneline
+syn region bruijnString start=+"+ end=+"+ oneline
+syn region bruijnChar start=+'+ end=+'+ oneline
hi def link bruijnIndex Special
hi def link bruijnNumber Number
+hi def link bruijnString String
+hi def link bruijnChar String
hi def link bruijnDefinition Define
hi def link bruijnKeyword Macro
hi def link bruijnNamespace Type
hi def link bruijnNamespaceDelim Special
hi def link bruijnAbstraction Function
-hi def link bruijnApplication String
+hi def link bruijnApplication Statement
hi def link bruijnCommentLine Comment
let b:current_syntax = "bruijn"