cbd9980c54d635a8d7e96a628410d7f51e3b8d69 — Tim Morgan 7 years ago
Initial commit.
3 files changed, 51 insertions(+), 0 deletions(-)

A README.md
A ftdetect/lidija.vim
A syntax/lidija.vim
A  => README.md +15 -0
@@ 1,15 @@
+ # Lidija.vim
+ 
+ Syntax highlighting for my toy language.
+ 
+ ## Install with Pathogen
+ 
+ Just drop this project into a directory in your `bundle` directory.
+ 
+ ## Install Manually
+ 
+ Copy the contents of `ftdetect` and `syntax` to their matching places in your `.vim` directory.
+ 
+ ----
+ 
+ MIT license. Copyright 2012, [Tim Morgan](http://timmorgan.org)

A  => ftdetect/lidija.vim +2 -0
@@ 1,2 @@
+ " Lidija
+ autocmd BufNewFile,BufReadPost *.lid set filetype=lidija

A  => syntax/lidija.vim +34 -0
@@ 1,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"