forked from mirror/vim-nc
new color defentions + some small aditions
This commit is contained in:
parent
ff36acaef2
commit
0c27bd4102
@ -2,7 +2,8 @@
|
|||||||
" Language: RS274/NGC
|
" Language: RS274/NGC
|
||||||
" Original Creator: Gary Fixler <gfixler.emc@gmail.com>
|
" Original Creator: Gary Fixler <gfixler.emc@gmail.com>
|
||||||
" Modifications: Greg Jurman <jurman.greg@gmail.com>
|
" Modifications: Greg Jurman <jurman.greg@gmail.com>
|
||||||
" Last Change: 2014 Apr 15
|
" Jakub B <jakubb.06@proton.me>
|
||||||
|
" Last Change: 2023 Aug 03
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
@ -18,7 +19,10 @@ syntax keyword ngcOperator EQ NE GT GE LT LE ABS ACOS ASIN ATAN COS EXP FIX FUP
|
|||||||
syntax match ngcOperatorPunc "[%\-+*/\[\]]"
|
syntax match ngcOperatorPunc "[%\-+*/\[\]]"
|
||||||
syntax match ngcFileBlock /^%$/
|
syntax match ngcFileBlock /^%$/
|
||||||
syntax match ngcProgramID /\(O[0-9][0-9]*\|:[0-9][0-9]*\)/
|
syntax match ngcProgramID /\(O[0-9][0-9]*\|:[0-9][0-9]*\)/
|
||||||
|
|
||||||
syntax match ngcIdentifier /#<*[A-Z_0-9]*>*/
|
syntax match ngcIdentifier /#<*[A-Z_0-9]*>*/
|
||||||
|
syntax match ngcIdentifierDefine /#<*[A-Z_0-9]*>* *\ze=/
|
||||||
|
|
||||||
syntax match ngcLineNumbers /\(n[0-9][0-9]*\)/
|
syntax match ngcLineNumbers /\(n[0-9][0-9]*\)/
|
||||||
syntax keyword ngcTodo TODO FIXME XXX contained
|
syntax keyword ngcTodo TODO FIXME XXX contained
|
||||||
syntax match ngcComment /([^)]*)/ contains=ngcTodo
|
syntax match ngcComment /([^)]*)/ contains=ngcTodo
|
||||||
@ -32,52 +36,53 @@ syntax match ngcGCodes /\s*\(g[0-9][0-9]*\)/
|
|||||||
syntax match ngcGCodesAlt /\s*\(g[0-9][0-9]*\.[0-9]\)/
|
syntax match ngcGCodesAlt /\s*\(g[0-9][0-9]*\.[0-9]\)/
|
||||||
syntax match ngcMCodes /\s*\(m[0-9][0-9]*\)/
|
syntax match ngcMCodes /\s*\(m[0-9][0-9]*\)/
|
||||||
syntax match ngcAxes /\s*\([abc][-#]*[0-9.][.]*[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcAxes /\s*\([abc][-#]*[0-9.][.]*[0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcXAxisScaled /\s*\([xui] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcXAxisScaled /\([xui] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcYAxisScaled /\s*\([yvj] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcYAxisScaled /\([yvj] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcZAxisScaled /\s*\([zwk] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcZAxisScaled /\([zwk] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcFeedScaled /\s*\(f *#\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcFeedScaled /\(f *[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcXAxis /\s*\([xui] *[-+#]\?[0-9]*\.[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcXAxis /\s*\([xui] *[-+#]\?[0-9]*\.*[0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcYAxis /\s*\([yvj] *[-+#]\?[0-9]*\.[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcYAxis /\s*\([yvj] *[-+#]\?[0-9]*\.*[0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcZAxis /\s*\([zwk] *[-+#]\?[0-9]*\.[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcZAxis /\s*\([zwk] *[-+#]\?[0-9]*\.*[0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcFeed /\s*\([f] *[#]\?[0-9]*\.[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcFeed /\s*\([f] *[#]\?[0-9]*\.*[0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcSpecials /\s*\(,[c][#-]*[0-9.][.]*[0-9]*\|[relpqs][-#]*[0-9.][.]*[0-9]*\)\s*/ contains=ngcIdentifier
|
syntax match ngcSpecials /\s*\(,[c][#-]*[0-9.][.]*[0-9]*\|[relpqs][-#]*[0-9.][.*[0-9]*\)\s*/ contains=ngcIdentifier
|
||||||
syntax match ngcTool /[hdt][0-9][0-9]*/
|
syntax match ngcTool /[hdt]#*[0-9][0-9]*/ contains=ngcIdentifier
|
||||||
syntax match ngcBlockSkip /^\/.*/
|
syntax match ngcBlockSkip /^\/.*/
|
||||||
|
|
||||||
hi link ngcXAxisScaled Error
|
hi link ngcXAxisScaled Error
|
||||||
hi link ngcYAxisScaled Error
|
hi link ngcYAxisScaled Error
|
||||||
hi link ngcZAxisScaled Error
|
hi link ngcZAxisScaled Error
|
||||||
hi link ngcFeedScaled Error
|
hi link ngcFeedScaled Error
|
||||||
highlight ngcFileBlock ctermfg=white ctermbg=red cterm=bold
|
hi link ngcFileBlock ngcComment
|
||||||
highlight ngcProgramID ctermfg=white cterm=bold
|
hi link ngcProgramID Function
|
||||||
highlight ngcXAxis ctermfg=darkgreen
|
hi link ngcXAxis String
|
||||||
highlight ngcYAxis ctermfg=darkblue
|
hi link ngcYAxis String
|
||||||
highlight ngcZAxis ctermfg=red
|
hi link ngcZAxis String
|
||||||
highlight ngcAxes ctermfg=lightgreen
|
hi link ngcAxes Special
|
||||||
highlight ngcSpecials ctermfg=brown
|
hi link ngcSpecials Special
|
||||||
highlight ngcBlockSkip ctermfg=white cterm=bold
|
hi link ngcBlockSkip GruvboxWhiteBold
|
||||||
highlight link ngcConstant Constant
|
hi link ngcConstant Constant
|
||||||
highlight link ngcConditional Conditional
|
hi link ngcConditional Conditional
|
||||||
highlight link ngcRepeat Repeat
|
hi link ngcRepeat Repeat
|
||||||
highlight link ngcFunction Function
|
hi link ngcFunction Function
|
||||||
highlight link ngcOperator Operator
|
hi link ngcOperator Operator
|
||||||
highlight link ngcOperatorPunc Operator
|
hi link ngcOperatorPunc Operator
|
||||||
highlight link ngcIdentifier Identifier
|
hi link ngcIdentifier PreProc
|
||||||
highlight link ngcLabel Label
|
hi link ngcIdentifierDefine Identifier
|
||||||
highlight link ngcLineNumbers LineNr
|
hi link ngcLabel Label
|
||||||
highlight link ngcTodo Todo
|
hi link ngcLineNumbers LineNr
|
||||||
highlight link ngcComment Comment
|
hi link ngcTodo Todo
|
||||||
highlight link ngcMessage SpecialComment
|
hi link ngcComment Comment
|
||||||
highlight link ngcLogOpen SpecialComment
|
hi link ngcMessage SpecialComment
|
||||||
highlight link ngcLogClose SpecialComment
|
hi link ngcLogOpen SpecialComment
|
||||||
highlight link ngcLog SpecialComment
|
hi link ngcLogClose SpecialComment
|
||||||
highlight link ngcPrint SpecialComment
|
hi link ngcLog SpecialComment
|
||||||
highlight link ngcDebug Debug
|
hi link ngcPrint SpecialComment
|
||||||
highlight link ngcGCodes Keyword
|
hi link ngcDebug Debug
|
||||||
highlight link ngcGCodesAlt Keyword
|
hi link ngcGCodes Keyword
|
||||||
highlight link ngcMCodes Keyword
|
hi link ngcGCodesAlt Keyword
|
||||||
highlight link ngcAxes SpecialChar
|
hi link ngcMCodes Keyword
|
||||||
highlight ngcFeed ctermfg=magenta
|
hi link ngcAxes SpecialChar
|
||||||
highlight link ngcTool EnumeratorName
|
hi link ngcFeed Special
|
||||||
|
hi link ngcTool Special
|
||||||
|
|
||||||
let b:current_syntax = "ngc"
|
let b:current_syntax = "ngc"
|
||||||
|
Loading…
Reference in New Issue
Block a user