aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-30 09:39:04 +0200
committerBad Diode <bd@badd10de.dev>2021-10-30 09:39:04 +0200
commitf9a6691243d59915dad8785a321ca021bb27de27 (patch)
tree3e0e662799d83a2d132d6950812dee3406d3d439 /misc
parent58dfde37752f87e5df850ebe3a324dcb825fdb35 (diff)
downloadbdl-f9a6691243d59915dad8785a321ca021bb27de27.tar.gz
bdl-f9a6691243d59915dad8785a321ca021bb27de27.zip
Add minimal syntax file for vim
Diffstat (limited to 'misc')
-rw-r--r--misc/bdl.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/bdl.vim b/misc/bdl.vim
new file mode 100644
index 0000000..438fc86
--- /dev/null
+++ b/misc/bdl.vim
@@ -0,0 +1,18 @@
1if exists("b:current_syntax")
2 finish
3endif
4
5let b:current_syntax = "bdl"
6
7syn keyword bdlKeyword lambda if def set! fun
8syn match bdlComment ";.*$"
9
10syn match bdlNumber '\d\+'
11syn match bdlNumber '[-+]\d\+'
12
13syn region bdlString start=/\v"/ skip=/\v\\./ end=/\v"/
14
15hi def link bdlKeyword Keyword
16hi def link bdlComment Comment
17hi def link bdlNumber Number
18hi def link bdlString String