neovim

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

takcmp.vim (1593B)


      1 " Vim syntax file
      2 " Language:     TAK2, TAK3, TAK2000 thermal modeling compare file
      3 " Maintainer:   Adrian Nagle, anagle@ball.com
      4 " Last Change:  2003 May 11
      5 " Filenames:    *.cmp
      6 " URL:		http://www.naglenet.org/vim/syntax/takcmp.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 compare files.
     26 "
     27 " Define keywords for TAK compare
     28  syn keyword takcmpUnit     celsius fahrenheit
     29 
     30 
     31 
     32 " Define matches for TAK compare
     33  syn match  takcmpTitle       "Steady State Temperature Comparison"
     34 
     35  syn match  takcmpLabel       "Run Date:"
     36  syn match  takcmpLabel       "Run Time:"
     37  syn match  takcmpLabel       "Temp. File \d Units:"
     38  syn match  takcmpLabel       "Filename:"
     39  syn match  takcmpLabel       "Output Units:"
     40 
     41  syn match  takcmpHeader      "^ *Node\( *File  \d\)* *Node Description"
     42 
     43  syn match  takcmpDate        "\d\d\/\d\d\/\d\d"
     44  syn match  takcmpTime        "\d\d:\d\d:\d\d"
     45  syn match  takcmpInteger     "^ *-\=\<[0-9]*\>"
     46  syn match  takcmpFloat       "-\=\<[0-9]*\.[0-9]*"
     47 
     48 
     49 
     50 " Define the default highlighting
     51 " Only when an item doesn't have highlighting yet
     52 
     53 hi def link takcmpTitle		   Type
     54 hi def link takcmpUnit		   PreProc
     55 
     56 hi def link takcmpLabel		   Statement
     57 
     58 hi def link takcmpHeader		   takHeader
     59 
     60 hi def link takcmpDate		   Identifier
     61 hi def link takcmpTime		   Identifier
     62 hi def link takcmpInteger		   Number
     63 hi def link takcmpFloat		   Special
     64 
     65 
     66 
     67 let b:current_syntax = "takcmp"
     68 
     69 " vim: ts=8 sw=2