@@ -12,8 +12,9 @@ if version < 600
12
12
syntax clear
13
13
endif
14
14
15
+
15
16
" Sysvars
16
- syn match tpSysvar / \.\?\$ [a-zA-Z0-9.]\+ /
17
+ syn match tpSysvar / \.\?\$ [a-zA-Z0-9.]\+ /
17
18
hi def link tpSysvar Identifier
18
19
19
20
" Identifiers
@@ -78,7 +79,7 @@ syn region tpData start="TIMER_OVERFLOW\[" end="\]" contains=
78
79
syn region tpData start =" UALM\[ " end =" \] " contains =tpInteger,tpItemComment
79
80
syn region tpData start =" UFRAME\[ " end =" \] " contains =tpInteger,tpItemComment
80
81
syn region tpData start =" UTOOL\[ " end =" \] " contains =tpInteger,tpItemComment
81
- syn keyword tpData ERROR_PROG
82
+ syn keyword tpData ERROR_PROG UFRAME_NUM UTOOL_NUM WAIT Offset Tool_Offset VOFFSET FOUND_POS
82
83
hi def link tpData Type
83
84
84
85
" Item comment
@@ -134,14 +135,16 @@ syn match tpKeyword /COL GUARD ADJUST/
134
135
syn match tpKeyword / \( LOCK\| UNLOCK\) \( PREG\| VREG\) /
135
136
syn match tpKeyword / \( OFFSET\| TOOL_OFFSET\| VOFFSET\) CONDITION/
136
137
syn match tpKeyword / SKIP CONDITION/
137
- syn keyword tpKeyword ABORT CALL CNT END FINE JMP JPOS LPOS MONITOR OVERRIDE PAUSE PAYLOAD POINT_LOGIC PULSE RESET RUN START STOP STOP_TRACKING TIMEOUT UFRAME_NUM UTOOL_NUM WAIT
138
- syn match tpKeyword / AP_LD/
138
+ syn keyword tpKeyword ABORT CALL CNT END FINE JMP JPOS LPOS MONITOR OVERRIDE PAUSE PAYLOAD POINT_LOGIC PULSE RESET RUN START STOP STOP_TRACKING TIMEOUT
139
+ syn match tpKeyword / AP_LD/
139
140
syn match tpKeyword / CNT/
140
141
syn match tpKeyword / RT_LD/
141
142
hi def link tpKeyword Keyword
142
143
143
144
" Comments
144
- syn match tpComment / \(\s *\d *:\s *\)\@ <=!.*/
145
+
146
+ syn match tpComment / \(\s *\d *:\s *\)\@ <=!.*/ contains =@spell
147
+ syn match tpComment / \(\s *\d *:\s *\)\@ <=--eg:.*/ contains =@spell
145
148
syn match tpRemark / \(\s *\d *:\s *\)\@ <=\/\/ .*/
146
149
hi def link tpComment Comment
147
150
hi def link tpRemark Comment
0 commit comments