~tim/lydia.vim

ref: b025876df2c4d4ed4d810a21c2a10cb42b5f554c lydia.vim/syntax/lydia.vim -rw-r--r-- 893 bytes
b025876dTim Morgan Rename to Lydia 2 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: Lydia
" 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 = "lydia"