annotate runtime/syntax/tsalt.vim @ 7137:41896b9720cc v7.4.880

commit https://github.com/vim/vim/commit/02d803fc0cc99a1c86a3553a1d445137eab1aa8d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 17:50:22 2015 +0200 patch 7.4.880 Problem: No build and coverage status. Solution: Add links to the README file. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Sep 2015 18:00:05 +0200
parents b7811ab264bf
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Telix (Modem Comm Program) SALT Script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Sean M. McKee <mckee@misslink.net>
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Feb 03 by Thilo Six
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Version Info: @(#)tsalt.vim 1.5 97/12/16 08:11:15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " turn case matching off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 "FUNCTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Character Handling Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword tsaltFunction IsAscii IsAlNum IsAlpha IsCntrl IsDigit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword tsaltFunction IsLower IsUpper ToLower ToUpper
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Connect Device Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword tsaltFunction Carrier cInp_Cnt cGetC cGetCT cPutC cPutN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword tsaltFunction cPutS cPutS_TR FlushBuf Get_Baud
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword tsaltFunction Get_DataB Get_Port Get_StopB Hangup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword tsaltFunction KillConnectDevice MakeConnectDevice
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword tsaltFunction Send_Brk Set_ConnectDevice Set_Port
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " File Input/Output Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword tsaltFunction fClearErr fClose fDelete fError fEOF fFlush
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword tsaltFunction fGetC fGetS FileAttr FileFind FileSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword tsaltFunction FileTime fnStrip fOpen fPutC fPutS fRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword tsaltFunction fRename fSeek fTell fWrite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " File Transfers and Logs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword tsaltFunction Capture Capture_Stat Printer Receive Send
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword tsaltFunction Set_DefProt UsageLog Usage_Stat UStamp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Input String Matching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword tsaltFunction Track Track_AddChr Track_Free Track_Hit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword tsaltFunction WaitFor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Keyboard Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword tsaltFunction InKey InKeyW KeyGet KeyLoad KeySave KeySet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Miscellaneous Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword tsaltFunction ChatMode Dos Dial DosFunction ExitTelix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword tsaltFunction GetEnv GetFon HelpScreen LoadFon NewDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword tsaltFunction Randon Redial RedirectDOS Run
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword tsaltFunction Set_Terminal Show_Directory TelixVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword tsaltFunction Terminal TransTab Update_Term
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Script Management
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword tsaltFunction ArgCount Call CallD CompileScript GetRunPath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword tsaltFunction Is_Loaded Load_Scr ScriptVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword tsaltFunction TelixForWindows Unload_Scr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " Sound Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword tsaltFunction Alarm PlayWave Tone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " String Handling
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword tsaltFunction CopyChrs CopyStr DelChrs GetS GetSXY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword tsaltFunction InputBox InsChrs ItoS SetChr StoI StrCat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword tsaltFunction StrChr StrCompI StrLen StrLower StrMaxLen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword tsaltFunction StrPos StrPosI StrUpper SubChr SubChrs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword tsaltFunction SubStr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Time, Date, and Timer Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword tsaltFunction CurTime Date Delay Delay_Scr Get_OnlineTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword tsaltFunction tDay tHour tMin tMonth tSec tYear Time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword tsaltFunction Time_Up Timer_Free Time_Restart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword tsaltFunction Time_Start Time_Total
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Video Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword tsaltFunction Box CNewLine Cursor_OnOff Clear_Scr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword tsaltFunction GetTermHeight GetTermWidth GetX GetY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword tsaltFunction GotoXY MsgBox NewLine PrintC PrintC_Trm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword tsaltFunction PrintN PrintN_Trm PrintS PrintS_Trm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword tsaltFunction PrintSC PRintSC_Trm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword tsaltFunction PStrA PStrAXY Scroll Status_Wind vGetChr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword tsaltFunction vGetChrs vGetChrsA vPutChr vPutChrs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword tsaltFunction vPutChrsA vRstrArea vSaveArea
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " Dynamic Data Exchange (DDE) Operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword tsaltFunction DDEExecute DDEInitate DDEPoke DDERequest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword tsaltFunction DDETerminate DDETerminateAll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 "END FUNCTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 "PREDEFINED VARAIABLES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword tsaltSysVar _add_lf _alarm_on _answerback_str _asc_rcrtrans
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword tsaltSysVar _asc_remabort _asc_rlftrans _asc_scpacing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword tsaltSysVar _asc_scrtrans _asc_secho _asc_slpacing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword tsaltSysVar _asc_spacechr _asc_striph _back_color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword tsaltSysVar _capture_fname _connect_str _dest_bs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword tsaltSysVar _dial_pause _dial_time _dial_post
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword tsaltSysVar _dial_pref1 _dial_pref2 _dial_pref3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword tsaltSysVar _dial_pref4 _dir_prog _down_dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword tsaltSysVar _entry_bbstype _entry_comment _entry_enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword tsaltSysVar _entry_name _entry_num _entry_logonname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword tsaltSysVar _entry_pass _fore_color _image_file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword tsaltSysVar _local_echo _mdm_hang_str _mdm_init_str
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword tsaltSysVar _no_connect1 _no_connect2 _no_connect3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword tsaltSysVar _no_connect4 _no_connect5 _redial_stop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword tsaltSysVar _scr_chk_key _script_dir _sound_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword tsaltSysVar _strip_high _swap_bs _telix_dir _up_dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword tsaltSysVar _usage_fname _zmodauto _zmod_rcrash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword tsaltSysVar _zmod_scrash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 "END PREDEFINED VARAIABLES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 "TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword tsaltType str int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 "END TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 "KEYWORDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword tsaltStatement goto break return continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword tsaltConditional if then else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword tsaltRepeat while for do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 "END KEYWORDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword tsaltTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 " the rest is pretty close to C -----------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 " String and Character constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 " Highlight special characters (those which have a backslash) differently
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn match tsaltSpecial contained "\^\d\d\d\|\^."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn region tsaltString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=tsaltSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn match tsaltCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn match tsaltSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 "catch errors caused by wrong parenthesis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn region tsaltParen transparent start='(' end=')' contains=ALLBUT,tsaltParenError,tsaltIncluded,tsaltSpecial,tsaltTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match tsaltParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn match tsaltInParen contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 hi link tsaltParenError tsaltError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 hi link tsaltInParen tsaltError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 "integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match tsaltNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match tsaltFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn match tsaltFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match tsaltFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 "hex number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match tsaltNumber "0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 "syn match cIdentifier "\<[a-z_][a-z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn region tsaltComment start="/\*" end="\*/" contains=cTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match tsaltComment "//.*" contains=cTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn match tsaltCommentError "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn region tsaltPreCondit start="^[ \t]*#[ \t]*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=tsaltComment,tsaltString,tsaltCharacter,tsaltNumber,tsaltCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn region tsaltIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn match tsaltIncluded contained "<[^>]*>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn match tsaltInclude "^[ \t]*#[ \t]*include\>[ \t]*["<]" contains=tsaltIncluded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 "syn match TelixSalyLineSkip "\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn region tsaltDefine start="^[ \t]*#[ \t]*\(define\>\|undef\>\)" skip="\\$" end="$" contains=ALLBUT,tsaltPreCondit,tsaltIncluded,tsaltInclude,tsaltDefine,tsaltInParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn region tsaltPreProc start="^[ \t]*#[ \t]*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,tsaltPreCondit,tsaltIncluded,tsaltInclude,tsaltDefine,tsaltInParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 " Highlight User Labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn region tsaltMulti transparent start='?' end=':' contains=ALLBUT,tsaltIncluded,tsaltSpecial,tsaltTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn sync ccomment tsaltComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 if version >= 508 || !exists("did_tsalt_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 let did_tsalt_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink tsaltFunction Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink tsaltSysVar Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 "HiLink tsaltLibFunc UserDefFunc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 "HiLink tsaltConstants Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 "HiLink tsaltFuncArg Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 "HiLink tsaltOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 "HiLink tsaltLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 "HiLink tsaltUserLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink tsaltConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 HiLink tsaltRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 HiLink tsaltCharacter SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 HiLink tsaltSpecialCharacter SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 HiLink tsaltNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 HiLink tsaltFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 HiLink tsaltCommentError tsaltError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 HiLink tsaltInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 HiLink tsaltPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 HiLink tsaltDefine Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 HiLink tsaltIncluded tsaltString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink tsaltError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink tsaltStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 HiLink tsaltPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 HiLink tsaltType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 HiLink tsaltString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 HiLink tsaltComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 HiLink tsaltSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 HiLink tsaltTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 let b:current_syntax = "tsalt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
217 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
218 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 " vim: ts=8