From 792534b3888bc1b9c33047f1c312c4e17a720885 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 10 Aug 2022 18:53:34 +0200 Subject: Added syntactic sugar for strings & chars --- editors/vim/syntax/bruijn.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'editors/vim/syntax/bruijn.vim') 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" -- cgit v1.2.3