"Fossies" - the Fresh Open Source Software Archive

Member "vim-8.2.1354/runtime/syntax/tssop.vim" (2 Aug 2020, 1785 Bytes) of package /linux/misc/vim-8.2.1354.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) vimscript source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 " Vim syntax file
    2 " Language:     TSS (Thermal Synthesizer System) Optics
    3 " Maintainer:   Adrian Nagle, anagle@ball.com
    4 " Last Change:  2003 May 11
    5 " Filenames:    *.tssop
    6 " URL:      http://www.naglenet.org/vim/syntax/tssop.vim
    7 " MAIN URL:     http://www.naglenet.org/vim/
    8 
    9 
   10 
   11 " quit when a syntax file was already loaded
   12 if exists("b:current_syntax")
   13   finish
   14 endif
   15 
   16 
   17 
   18 " Ignore case
   19 syn case ignore
   20 
   21 
   22 
   23 "
   24 "
   25 " Begin syntax definitions for tss optics file.
   26 "
   27 
   28 " Define keywords for TSS
   29 syn keyword tssopParam  ir_eps ir_trans ir_spec ir_tspec ir_refract
   30 syn keyword tssopParam  sol_eps sol_trans sol_spec sol_tspec sol_refract
   31 syn keyword tssopParam  color
   32 
   33 "syn keyword tssopProp   property
   34 
   35 syn keyword tssopArgs   white red blue green yellow orange violet pink
   36 syn keyword tssopArgs   turquoise grey black
   37 
   38 
   39 
   40 " Define matches for TSS
   41 syn match  tssopComment       /comment \+= \+".*"/ contains=tssopParam,tssopCommentString
   42 syn match  tssopCommentString /".*"/ contained
   43 
   44 syn match  tssopProp        "property "
   45 syn match  tssopProp        "edit/optic "
   46 syn match  tssopPropName    "^property \S\+" contains=tssopProp
   47 syn match  tssopPropName    "^edit/optic \S\+$" contains=tssopProp
   48 
   49 syn match  tssopInteger     "-\=\<[0-9]*\>"
   50 syn match  tssopFloat       "-\=\<[0-9]*\.[0-9]*"
   51 syn match  tssopScientific  "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"
   52 
   53 
   54 
   55 " Define the default highlighting
   56 " Only when an item doesn't have highlighting yet
   57 
   58 hi def link tssopParam      Statement
   59 hi def link tssopProp       Identifier
   60 hi def link tssopArgs       Special
   61 
   62 hi def link tssopComment        Statement
   63 hi def link tssopCommentString  Comment
   64 hi def link tssopPropName       Typedef
   65 
   66 hi def link tssopInteger        Number
   67 hi def link tssopFloat      Float
   68 hi def link tssopScientific Float
   69 
   70 
   71 
   72 let b:current_syntax = "tssop"
   73 
   74 " vim: ts=8 sw=2