rs274ngc_syntax.vim 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. " Vim syntax file
  2. " For Vim 7.x
  3. " Language: rs274ngc
  4. " Maintainer: Michael Buesch <mb@bu3sch.de>
  5. " Last Change: 2008 Sept
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. syn case ignore
  10. syn match rs274ngcComment /(.*)/
  11. syn match rs274ngcO /O[0-9]\+/
  12. syn match rs274ngcG /G[0-9\.]\+/
  13. syn match rs274ngcL /L/
  14. syn match rs274ngcP /P/
  15. syn match rs274ngcM /M[0-9]\+/
  16. syn match rs274ngcX /X/
  17. syn match rs274ngcY /Y/
  18. syn match rs274ngcZ /Z/
  19. syn match rs274ngcU /U/
  20. syn match rs274ngcV /V/
  21. syn match rs274ngcW /W/
  22. syn match rs274ngcA /A/
  23. syn match rs274ngcB /B/
  24. syn match rs274ngcC /C/
  25. syn match rs274ngcS /S/
  26. syn match rs274ngcF /F/
  27. syn match rs274ngcD /D/
  28. syn match rs274ngcIf /if/
  29. syn match rs274ngcEndif /endif/
  30. syn match rs274ngcParam /#[0-9]\+/
  31. syn match rs274ngcNamedParam /#<[a-z_][a-z0-9_]*>/
  32. syn match rs274ngcOperEq /eq/
  33. syn match rs274ngcOperNe /ne/
  34. syn match rs274ngcOperGt /gt/
  35. syn match rs274ngcOperGe /ge/
  36. syn match rs274ngcOperLt /lt/
  37. syn match rs274ngcOperLe /le/
  38. syn match rs274ngcAssign /=/
  39. syn match rs274ngcPlus /+/
  40. syn match rs274ngcMinus /-/
  41. syn match rs274ngcTimes /\*/
  42. syn match rs274ngcDiv /\//
  43. syn match rs274ngcPow /\*\*/
  44. syn match rs274ngcMod /mod/
  45. syn match rs274ngcAnd /and/
  46. syn match rs274ngcOr /or/
  47. syn match rs274ngcXor /xor/
  48. syn match rs274ngcNumber /-\=[0-9]*\.\=[0-9]\+/
  49. syn match rs274ngcFuncAtan /atan/
  50. syn match rs274ngcFuncAbs /abs/
  51. syn match rs274ngcFuncAcos /acos/
  52. syn match rs274ngcFuncAsin /asin/
  53. syn match rs274ngcFuncCos /cos/
  54. syn match rs274ngcFuncExp /exp/
  55. syn match rs274ngcFuncFix /fix/
  56. syn match rs274ngcFuncFup /fup/
  57. syn match rs274ngcFuncRound /round/
  58. syn match rs274ngcFuncLn /ln/
  59. syn match rs274ngcFuncSin /sin/
  60. syn match rs274ngcFuncSqrt /sqrt/
  61. syn match rs274ngcFuncTan /tan/
  62. syn match rs274ngcDo /do/
  63. syn match rs274ngcWhile /while/
  64. syn match rs274ngcEndwhile /endwhile/
  65. syn match rs274ngcSub /sub/
  66. syn match rs274ngcEndsub /endsub/
  67. syn match rs274ngcCall /call/
  68. syn match rs274ngcBreak /break/
  69. syn match rs274ngcReturn /return/
  70. syn match rs274ngcPercent /%/
  71. syn case match
  72. hi def link rs274ngcComment Comment
  73. hi def link rs274ngcO Label
  74. hi def link rs274ngcG Keyword
  75. hi def link rs274ngcL Keyword
  76. hi def link rs274ngcP Keyword
  77. hi def link rs274ngcM Keyword
  78. hi def link rs274ngcX Keyword
  79. hi def link rs274ngcY Keyword
  80. hi def link rs274ngcZ Keyword
  81. hi def link rs274ngcU Keyword
  82. hi def link rs274ngcV Keyword
  83. hi def link rs274ngcW Keyword
  84. hi def link rs274ngcA Keyword
  85. hi def link rs274ngcB Keyword
  86. hi def link rs274ngcC Keyword
  87. hi def link rs274ngcS Keyword
  88. hi def link rs274ngcF Keyword
  89. hi def link rs274ngcD Keyword
  90. hi def link rs274ngcIf Conditional
  91. hi def link rs274ngcEndif Conditional
  92. hi def link rs274ngcParam Identifier
  93. hi def link rs274ngcNamedParam Identifier
  94. hi def link rs274ngcOperEq Operator
  95. hi def link rs274ngcOperNe Operator
  96. hi def link rs274ngcOperGt Operator
  97. hi def link rs274ngcOperGe Operator
  98. hi def link rs274ngcOperLt Operator
  99. hi def link rs274ngcOperLe Operator
  100. hi def link rs274ngcAssign Operator
  101. hi def link rs274ngcPlus Operator
  102. hi def link rs274ngcMinus Operator
  103. hi def link rs274ngcTimes Operator
  104. hi def link rs274ngcDiv Operator
  105. hi def link rs274ngcPow Operator
  106. hi def link rs274ngcMod Operator
  107. hi def link rs274ngcAnd Operator
  108. hi def link rs274ngcOr Operator
  109. hi def link rs274ngcXor Operator
  110. hi def link rs274ngcNumber Number
  111. hi def link rs274ngcFuncAtan Function
  112. hi def link rs274ngcFuncAbs Function
  113. hi def link rs274ngcFuncAcos Function
  114. hi def link rs274ngcFuncAsin Function
  115. hi def link rs274ngcFuncCos Function
  116. hi def link rs274ngcFuncExp Function
  117. hi def link rs274ngcFuncFix Function
  118. hi def link rs274ngcFuncFup Function
  119. hi def link rs274ngcFuncRound Function
  120. hi def link rs274ngcFuncLn Function
  121. hi def link rs274ngcFuncSin Function
  122. hi def link rs274ngcFuncSqrt Function
  123. hi def link rs274ngcFuncTan Function
  124. hi def link rs274ngcDo Repeat
  125. hi def link rs274ngcWhile Repeat
  126. hi def link rs274ngcEndwhile Repeat
  127. hi def link rs274ngcCall Keyword
  128. hi def link rs274ngcSub Keyword
  129. hi def link rs274ngcEndsub Keyword
  130. hi def link rs274ngcBreak Keyword
  131. hi def link rs274ngcReturn Keyword
  132. hi def link rs274ngcPercent Todo
  133. let b:current_syntax = "rs274ngc"