1
0
forked from mirror/vim-nc

Compare commits

..

No commits in common. "6982425d903e83af4ef8209fa9e0b26421fad843" and "ff36acaef2493de1a77f9e34a499f989aa377fc9" have entirely different histories.

3 changed files with 43 additions and 48 deletions

View File

@ -7,7 +7,7 @@ relative(U, V, W)).
Originally created by Gary Fixler. Originally created by Gary Fixler.
Example with [gruvbox.nvim](https://github.com/ellisonleao/gruvbox.nvim) (Note: Transparency) Example with Solarized
------ ------
![Vim Screenshot](../master/readme/screenshot.png?raw=true) ![Vim Screenshot](../master/readme/screenshot.png?raw=true)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -2,8 +2,7 @@
" 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>
" Jakub B <jakubb.06@proton.me> " Last Change: 2014 Apr 15
" Last Change: 2023 Aug 03
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
@ -19,10 +18,7 @@ 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
@ -36,53 +32,52 @@ 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 /\([xui] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier syntax match ngcXAxisScaled /\s*\([xui] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
syntax match ngcYAxisScaled /\([yvj] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier syntax match ngcYAxisScaled /\s*\([yvj] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
syntax match ngcZAxisScaled /\([zwk] *[-+]\?[1-9][0-9]*\)/ contains=ngcIdentifier syntax match ngcZAxisScaled /\s*\([zwk] *[-+#]\?[1-9][0-9]*\)/ contains=ngcIdentifier
syntax match ngcFeedScaled /\(f *[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 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]*/ contains=ngcIdentifier syntax match ngcTool /[hdt][0-9][0-9]*/
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
hi link ngcFileBlock ngcComment highlight ngcFileBlock ctermfg=white ctermbg=red cterm=bold
hi link ngcProgramID Function highlight ngcProgramID ctermfg=white cterm=bold
hi link ngcXAxis String highlight ngcXAxis ctermfg=darkgreen
hi link ngcYAxis String highlight ngcYAxis ctermfg=darkblue
hi link ngcZAxis String highlight ngcZAxis ctermfg=red
hi link ngcAxes Special highlight ngcAxes ctermfg=lightgreen
hi link ngcSpecials Special highlight ngcSpecials ctermfg=brown
hi link ngcBlockSkip GruvboxWhiteBold highlight ngcBlockSkip ctermfg=white cterm=bold
hi link ngcConstant Constant highlight link ngcConstant Constant
hi link ngcConditional Conditional highlight link ngcConditional Conditional
hi link ngcRepeat Repeat highlight link ngcRepeat Repeat
hi link ngcFunction Function highlight link ngcFunction Function
hi link ngcOperator Operator highlight link ngcOperator Operator
hi link ngcOperatorPunc Operator highlight link ngcOperatorPunc Operator
hi link ngcIdentifier PreProc highlight link ngcIdentifier Identifier
hi link ngcIdentifierDefine Identifier highlight link ngcLabel Label
hi link ngcLabel Label highlight link ngcLineNumbers LineNr
hi link ngcLineNumbers LineNr highlight link ngcTodo Todo
hi link ngcTodo Todo highlight link ngcComment Comment
hi link ngcComment Comment highlight link ngcMessage SpecialComment
hi link ngcMessage SpecialComment highlight link ngcLogOpen SpecialComment
hi link ngcLogOpen SpecialComment highlight link ngcLogClose SpecialComment
hi link ngcLogClose SpecialComment highlight link ngcLog SpecialComment
hi link ngcLog SpecialComment highlight link ngcPrint SpecialComment
hi link ngcPrint SpecialComment highlight link ngcDebug Debug
hi link ngcDebug Debug highlight link ngcGCodes Keyword
hi link ngcGCodes Keyword highlight link ngcGCodesAlt Keyword
hi link ngcGCodesAlt Keyword highlight link ngcMCodes Keyword
hi link ngcMCodes Keyword highlight link ngcAxes SpecialChar
hi link ngcAxes SpecialChar highlight ngcFeed ctermfg=magenta
hi link ngcFeed Special highlight link ngcTool EnumeratorName
hi link ngcTool Special
let b:current_syntax = "ngc" let b:current_syntax = "ngc"