mirror of
https://github.com/gregjurman/vim-nc.git
synced 2024-12-26 03:15:49 +00:00
show scaled XYZ values as an error
- extreme highlight when XYZ g-code values will be scaled by 1000x
This commit is contained in:
parent
93b2e9ab4d
commit
62d18ba066
@ -1,2 +1,2 @@
|
|||||||
" vim nc
|
" vim nc
|
||||||
au BufNewFile,BufRead *.nc,*.ngc setlocal nospell ft=ngc syntax=ngc
|
au BufNewFile,BufRead *.nc,*.ngc,*.NC setlocal nospell ft=ngc syntax=ngc
|
||||||
|
@ -21,7 +21,7 @@ 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 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
|
||||||
syntax match ngcMessage /(\s*MSG\s*,.*)/ contains=ngcIdentifier
|
syntax match ngcMessage /(\s*MSG\s*,.*)/ contains=ngcIdentifier
|
||||||
syntax match ngcLogOpen /(\s*LOGOPEN\s*,.*)/
|
syntax match ngcLogOpen /(\s*LOGOPEN\s*,.*)/
|
||||||
syntax match ngcLogClose /(\s*LOGCLOSE\s*)/
|
syntax match ngcLogClose /(\s*LOGCLOSE\s*)/
|
||||||
@ -32,14 +32,22 @@ 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 ngcXAxis /\s*\([xui][-#]*[0-9.][.]*[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcXAxisScaled /\s*\([xui] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcYAxis /\s*\([yvj][-#]*[0-9.][.]*[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcYAxisScaled /\s*\([yvj] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
syntax match ngcZAxis /\s*\([zwk][-#]*[0-9.][.]*[0-9]*\)/ contains=ngcIdentifier
|
syntax match ngcZAxisScaled /\s*\([zwk] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
|
||||||
|
syntax match ngcFeedScaled /\s*\(f *#\?[1-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 ngcZAxis /\s*\([zwk] *[-+#]\?[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]*\|[relpqds][-#]*[0-9.][.]*[0-9]*\)\s*/ contains=ngcIdentifier
|
syntax match ngcSpecials /\s*\(,[c][#-]*[0-9.][.]*[0-9]*\|[relpqds][-#]*[0-9.][.]*[0-9]*\)\s*/ contains=ngcIdentifier
|
||||||
syntax match ngcFeed /\s*\([f][0-9.][.]*[0-9]*\)/
|
|
||||||
syntax match ngcTool /[ht][0-9][0-9]*/
|
syntax match ngcTool /[ht][0-9][0-9]*/
|
||||||
syntax match ngcBlockSkip /^\/.*/
|
syntax match ngcBlockSkip /^\/.*/
|
||||||
|
|
||||||
|
hi link ngcXAxisScaled Error
|
||||||
|
hi link ngcYAxisScaled Error
|
||||||
|
hi link ngcZAxisScaled Error
|
||||||
|
hi link ngcFeedScaled Error
|
||||||
highlight ngcFileBlock ctermfg=White ctermbg=Red cterm=bold
|
highlight ngcFileBlock ctermfg=White ctermbg=Red cterm=bold
|
||||||
highlight ngcProgramID ctermfg=White cterm=bold
|
highlight ngcProgramID ctermfg=White cterm=bold
|
||||||
highlight ngcXAxis ctermfg=34
|
highlight ngcXAxis ctermfg=34
|
||||||
|
Loading…
Reference in New Issue
Block a user