Start anew
This commit is contained in:
1 parent
1a5b1292ee
commit
6d102b8de9
80 files changed
+511
-16524
No files matched your search
@@ -0,0 +1,27 @@
|
||||
" Vim syntax file
|
||||
|
||||
" Setup
|
||||
if version >= 600
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
endif
|
||||
|
||||
syn case match
|
||||
|
||||
syn keyword fartKeywords ambient ambient_occlusion color define diffuse exposure height jitter look_at material max_depth multisample ngon offset polygon position radius reflectance refraction rotate scale shininess size specular texture translate transparency union up vfov width
|
||||
syn keyword fartObjects box camera cyl extrude intersect light options plane scene shape sphere subtract union
|
||||
syn keyword fartControl for while if else elsif local
|
||||
syn match fartNumber "\(^\|\W\)\@<=[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="
|
||||
syn match fartComment "#.*"
|
||||
syn match fartIdentifier "\$[a-zA-Z_][a-zA-Z_0-9]*"
|
||||
|
||||
hi def link fartKeywords Operator
|
||||
hi def link fartObjects Type
|
||||
hi def link fartNumber Number
|
||||
hi def link fartComment Comment
|
||||
hi def link fartControl Special
|
||||
hi def link fartIdentifier Identifier
|
||||
|
||||
let b:current_syntax = "fart"
|
||||
@@ -0,0 +1,3 @@
|
||||
if has("autocmd")
|
||||
autocmd BufRead *.fart set syntax=fart
|
||||
endif " has("autocmd")
|
||||
Reference in new issue
Block a user