From d3961e28d3eadf697116559e5692186219f0f6b1 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Sun, 29 Nov 2015 20:39:49 +0100 Subject: Initial Commit --- dimml.vim | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dimml.vim diff --git a/dimml.vim b/dimml.vim new file mode 100644 index 0000000..04b9578 --- /dev/null +++ b/dimml.vim @@ -0,0 +1,55 @@ +" Vim syntax file +" Language: DimML +" Maintainer: Tim Segers +" Copyright: 2015 Tim Segers +" License: MIT http://opensource.org/licenses/MIT +" Last Change: 2015-11-18 +" Filenames: *.dimml +" +if exists("b:current_syntax") + finish +endif + +" Keywords +syn keyword dimmlInclude import +syn keyword dimmlKeyword def do event flow match on plugin version +syn keyword dimmlLang groovy javascript dimml +syn keyword dimmlStorageClass const extends +syn keyword dimmlTodo contained TODO FIXME XXX +syn keyword dimmlType concept val + +" Language Highlight +if !exists("dimml_highlight_js") + syntax include @dimmlJS $VIMRUNTIME/syntax/javascript.vim + syn region dimmlCodeSnip start=+`+ end=+`+ contains=@dimmlJS +else + syn region dimmlCodeSnip start=+`+ end=+`+ +endif + + +" String +syn region dimmlString start=+"+ end=+"+ end=+$+ +syn region dimmlString start=+'+ end=+'+ end=+$+ +syn region dimmlComment start=+//+ end=+$+ contains=dimmlTodo +syn region dimmlComment start=+/\*+ end=+\*/+ contains=dimmlTodo + +" Other +syn match dimmlLangOverride "@[a-zA-Z]\+" +syn match dimmlNumber "\([0-9]\+\)" +syn match dimmlOperator "\(=>\)\|=" + +" LINKS +hi link dimmlCodeSnip Constant +hi link dimmlComment Comment +hi link dimmlInclude Include +hi link dimmlKeyword Keyword +hi link dimmlLangOverride Keyword +hi link dimmlNumber Number +hi link dimmlOperator Operator +hi link dimmlStatement Statement +hi link dimmlStorageClass StorageClass +hi link dimmlString String +hi link dimmlTodo Todo +hi link dimmlType Type + + -- cgit v1.2.3-70-g09d2