~tim/lydia.vim

ref: 92dbd92d203ec23eec8f93f7164684a4727d8431 lydia.vim/syntax/lidija.vim -rw-r--r-- 895 bytes
92dbd92dTim Morgan Fix matching of identifiers, remove other unneeded stuff. 7 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
" Vim syntax file
" Language: Lidija
" Author: Tim Morgan <tim@timmorgan.org>

if exists("b:current_syntax")
  finish
endif

setlocal autoindent

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

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"