neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

obj.vim (2786B)


      1 " Vim syntax file
      2 " Language:	3D wavefront's obj file
      3 " Maintainer:	Vincent Berthoux <twinside@gmail.com>
      4 " File Types:	.obj (used in 3D)
      5 " Last Change:  2010 May 18
      6 "
      7 " quit when a syntax file was already loaded
      8 if exists("b:current_syntax")
      9  finish
     10 endif
     11 
     12 syn match       objError        "^\a\+"
     13 
     14 syn match       objKeywords     "^cstype\s"
     15 syn match       objKeywords     "^ctech\s"
     16 syn match       objKeywords     "^stech\s"
     17 syn match       objKeywords     "^deg\s"
     18 syn match       objKeywords     "^curv\(2\?\)\s"
     19 syn match       objKeywords     "^parm\s"
     20 syn match       objKeywords     "^surf\s"
     21 syn match       objKeywords     "^end\s"
     22 syn match       objKeywords     "^bzp\s"
     23 syn match       objKeywords     "^bsp\s"
     24 syn match       objKeywords     "^res\s"
     25 syn match       objKeywords     "^cdc\s"
     26 syn match       objKeywords     "^con\s"
     27 
     28 syn match       objKeywords     "^shadow_obj\s"
     29 syn match       objKeywords     "^trace_obj\s"
     30 syn match       objKeywords     "^usemap\s"
     31 syn match       objKeywords     "^lod\s"
     32 syn match       objKeywords     "^maplib\s"
     33 syn match       objKeywords     "^d_interp\s"
     34 syn match       objKeywords     "^c_interp\s"
     35 syn match       objKeywords     "^bevel\s"
     36 syn match       objKeywords     "^mg\s"
     37 syn match       objKeywords     "^s\s"
     38 syn match       objKeywords     "^con\s"
     39 syn match       objKeywords     "^trim\s"
     40 syn match       objKeywords     "^hole\s"
     41 syn match       objKeywords     "^scrv\s"
     42 syn match       objKeywords     "^sp\s"
     43 syn match       objKeywords     "^step\s"
     44 syn match       objKeywords     "^bmat\s"
     45 syn match       objKeywords     "^csh\s"
     46 syn match       objKeywords     "^call\s"
     47 
     48 syn match       objComment      "^#.*"
     49 syn match       objVertex       "^v\s"
     50 syn match       objFace         "^f\s"
     51 syn match       objVertice      "^vt\s"
     52 syn match       objNormale      "^vn\s"
     53 syn match       objGroup        "^g\s.*"
     54 syn match       objMaterial     "^usemtl\s.*"
     55 syn match       objInclude      "^mtllib\s.*"
     56 
     57 syn match       objFloat        "-\?\d\+\.\d\+\(e\(+\|-\)\d\+\)\?"
     58 syn match       objInt          "\d\+"
     59 syn match       objIndex        "\d\+\/\d*\/\d*"
     60 
     61 " Define the default highlighting.
     62 " Only when an item doesn't have highlighting yet
     63 
     64 hi def link objError           Error
     65 hi def link objComment         Comment
     66 hi def link objInclude         PreProc
     67 hi def link objFloat           Float
     68 hi def link objInt             Number
     69 hi def link objGroup           Structure
     70 hi def link objIndex           Constant
     71 hi def link objMaterial        Label
     72 
     73 hi def link objVertex          Keyword
     74 hi def link objNormale         Keyword
     75 hi def link objVertice         Keyword
     76 hi def link objFace            Keyword
     77 hi def link objKeywords        Keyword
     78 
     79 
     80 
     81 let b:current_syntax = "obj"
     82 
     83 " vim: ts=8