aboutsummaryrefslogtreecommitdiff
path: root/syntax/univention-template.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/univention-template.vim')
-rw-r--r--syntax/univention-template.vim31
1 files changed, 31 insertions, 0 deletions
diff --git a/syntax/univention-template.vim b/syntax/univention-template.vim
new file mode 100644
index 0000000..f628762
--- /dev/null
+++ b/syntax/univention-template.vim
@@ -0,0 +1,31 @@
1" Vim syntax file
2" Language: conf.python
3" Maintainer: Max Christian Pohle <pohle@univention.de>
4" Last Change: Jan 20, 2020
5
6if exists("b:current_syntax")
7 finish
8end
9
10let b:current_syntax = "univention-template"
11
12" embolden normal text to make it a little bit more present than normal python
13highlight! Normal cterm=bold gui=bold
14
15" highlighting for univention config registry
16syntax region Define matchgroup=Statement start=/@%@/ end=/@%@/ oneline
17
18unlet b:current_syntax
19syntax include @PYTHON syntax/python.vim
20syntax region inlinePython
21 \ matchgroup=Statement
22 \ start="@!@" end="@!@.*"
23 \ contains=@PYTHON
24 \ keepend fold extend
25let b:current_syntax = "univention-template"
26
27syntax match Operator '[=;]'
28
29" TODO: further evaluation of:
30" syntax region String start=/"/ end=/"/
31" syntax keyword Statement include
..