Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
" MIT license | ||
|
||
|
||
" in the vimrc file itself: | ||
"au BufRead *.flo set filetype=flor | ||
"au BufRead *.flor set filetype=flor | ||
"au BufRead *.flon set filetype=flor | ||
"au BufRead *.fln set filetype=flor | ||
|
||
|
||
" Quit when a (custom) syntax file is already loaded | ||
if exists("b:current_syntax") | ||
finish | ||
endif | ||
|
||
syn match florSpecial ";" | ||
syn match florSpecial "\\" | ||
syn match florHead /^[ ]*[^ ;#\[\]{}()]\+/ | ||
syn match florHead /;\@<=[ ]*[^ ;#\[\]{}()]\+/ | ||
syn match florKey /\v\zs[^\s]+\ze[\s]*:/ | ||
syn keyword florKey if unless | ||
|
||
syn region florComment start="#" end="\n" | ||
|
||
syn region florString start=+"+ skip=+\\"+ end=+"+ | ||
syn region florString start=+'+ skip=+\\'+ end=+'+ | ||
syn region florString start=+/+ skip=+\\/+ end=+/+ | ||
|
||
hi def link florHead Keyword | ||
hi def link florString String | ||
hi def link florComment Comment | ||
hi def link florSpecial Special | ||
hi def link florKey Keyword | ||
|
||
let b:current_syntax = "flor" | ||
|