0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/obj.vim

86 lines
2.7 KiB
VimL
Raw Normal View History

2010-05-14 23:24:24 +02:00
" Vim syntax file
" Language: 3D wavefront's obj file
" Maintainer: Vincent Berthoux <twinside@gmail.com>
" File Types: .obj (used in 3D)
2010-05-21 16:33:48 +02:00
" Last Change: 2010 May 18
2010-05-14 23:24:24 +02:00
"
" quit when a syntax file was already loaded
if exists("b:current_syntax")
2010-05-14 23:24:24 +02:00
finish
endif
syn match objError "^\a\+"
syn match objKeywords "^cstype\s"
syn match objKeywords "^ctech\s"
syn match objKeywords "^stech\s"
syn match objKeywords "^deg\s"
syn match objKeywords "^curv\(2\?\)\s"
syn match objKeywords "^parm\s"
syn match objKeywords "^surf\s"
syn match objKeywords "^end\s"
syn match objKeywords "^bzp\s"
syn match objKeywords "^bsp\s"
syn match objKeywords "^res\s"
syn match objKeywords "^cdc\s"
syn match objKeywords "^con\s"
syn match objKeywords "^shadow_obj\s"
syn match objKeywords "^trace_obj\s"
syn match objKeywords "^usemap\s"
syn match objKeywords "^lod\s"
syn match objKeywords "^maplib\s"
syn match objKeywords "^d_interp\s"
syn match objKeywords "^c_interp\s"
syn match objKeywords "^bevel\s"
syn match objKeywords "^mg\s"
syn match objKeywords "^s\s"
syn match objKeywords "^con\s"
syn match objKeywords "^trim\s"
syn match objKeywords "^hole\s"
syn match objKeywords "^scrv\s"
syn match objKeywords "^sp\s"
syn match objKeywords "^step\s"
syn match objKeywords "^bmat\s"
syn match objKeywords "^csh\s"
syn match objKeywords "^call\s"
syn match objComment "^#.*"
syn match objVertex "^v\s"
syn match objFace "^f\s"
syn match objVertice "^vt\s"
syn match objNormale "^vn\s"
syn match objGroup "^g\s.*"
syn match objMaterial "^usemtl\s.*"
syn match objInclude "^mtllib\s.*"
syn match objFloat "-\?\d\+\.\d\+\(e\(+\|-\)\d\+\)\?"
syn match objInt "\d\+"
syn match objIndex "\d\+\/\d*\/\d*"
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
command -nargs=+ HiLink hi def link <args>
2010-05-14 23:24:24 +02:00
HiLink objError Error
HiLink objComment Comment
HiLink objInclude PreProc
HiLink objFloat Float
HiLink objInt Number
HiLink objGroup Structure
HiLink objIndex Constant
HiLink objMaterial Label
2010-05-14 23:24:24 +02:00
HiLink objVertex Keyword
HiLink objNormale Keyword
HiLink objVertice Keyword
HiLink objFace Keyword
HiLink objKeywords Keyword
2010-05-14 23:24:24 +02:00
delcommand HiLink
2010-05-14 23:24:24 +02:00
let b:current_syntax = "obj"
" vim: ts=8