~tim/lydia.vim

ref: cbd9980c54d635a8d7e96a628410d7f51e3b8d69 lydia.vim/syntax/lidija.vim -rw-r--r-- 1.0 KiB
cbd9980cTim Morgan Initial commit. 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
" Vim syntax file
" Language: Lidija
" Author: Tim Morgan <tim@timmorgan.org>

if exists("b:current_syntax")
  finish
endif

setlocal autoindent

syntax region lidFunc matchgroup=lidFuncDelimiter start=/{/ms=e end=/}/
syntax match lidAssign /[a-z0-9]\+\s\+=\s\+/ contains=lidIdentifier
syntax match lidFuncDelimiter /{\|}/
syntax match lidComment /#.*/ contains=@Spell,lidTodo
syntax match lidIdentifier contained /[a-z0-9]\+/
syntax keyword lidTodo TODO FIXME XXX contained
syntax keyword lidKeyword out
syntax match lidOp /[\-~:!?@$%^&*_+|\/.<>]/
syntax match lidNum /[0-9]\+/
syntax region lidString start=/"/ skip=/\\\\\|\\"/ end=/"/
syntax region lidString start=/'/ skip=/\\\\\|\\'/ end=/'/

highlight link lidFunc Function
highlight link lidFuncDelimiter Delimiter
highlight link lidComment Comment
highlight link lidAssign Identifier
highlight link lidTodo Todo
highlight link lidKeyword Keyword
highlight link lidIdentifier Identifier
highlight link lidOp Statement
highlight link lidNum Number
highlight link lidString String

let b:current_syntax = "lidija"