osl.syntax 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # Syntax rules for the C and the C++ programming languages
  2. #
  3. # List of keywords is based on opencl-mode.el from
  4. # Salmane Bah <salmane.bah@u-bordeaux.fr>
  5. context default
  6. # Keywords
  7. keyword whole break yellow
  8. keyword whole closure yellow
  9. keyword whole color yellow
  10. keyword whole continue yellow
  11. keyword whole do yellow
  12. keyword whole else yellow
  13. keyword whole float yellow
  14. keyword whole for yellow
  15. keyword whole if yellow
  16. keyword whole illuminance yellow
  17. keyword whole illuminate yellow
  18. keyword whole int yellow
  19. keyword whole matrix yellow
  20. keyword whole normal yellow
  21. keyword whole output yellow
  22. keyword whole point yellow
  23. keyword whole public yellow
  24. keyword whole return yellow
  25. keyword whole string yellow
  26. keyword whole struct yellow
  27. keyword whole vector yellow
  28. keyword whole void yellow
  29. keyword whole while yellow
  30. keyword whole or yellow
  31. keyword whole and yellow
  32. keyword whole not yellow
  33. keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
  34. # Reserved words
  35. keyword whole bool red
  36. keyword whole case red
  37. keyword whole char red
  38. keyword whole class red
  39. keyword whole const red
  40. keyword whole default red
  41. keyword whole double red
  42. keyword whole enum red
  43. keyword whole extern red
  44. keyword whole false red
  45. keyword whole friend red
  46. keyword whole inline red
  47. keyword whole long red
  48. keyword whole private red
  49. keyword whole protected red
  50. keyword whole short red
  51. keyword whole signed red
  52. keyword whole sizeof red
  53. keyword whole static red
  54. keyword whole struct red
  55. keyword whole switch red
  56. keyword whole template red
  57. keyword whole this red
  58. keyword whole true red
  59. keyword whole typedef red
  60. keyword whole uniform red
  61. keyword whole union red
  62. keyword whole unsigned red
  63. keyword whole varying red
  64. keyword whole virtual red
  65. # Shader types
  66. keyword whole shader white
  67. keyword whole surface white
  68. keyword whole displacement white
  69. keyword whole volume white
  70. keyword /\* brown
  71. keyword \*/ brown
  72. keyword // brown
  73. keyword '\\\{"abtnvfr\}' brightgreen
  74. keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen
  75. keyword '\\'' brightgreen
  76. keyword '\\\\' brightgreen
  77. keyword '\\0' brightgreen
  78. keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~嵗╯丰戍貝物洎悖停眾斯須號獄播噶擱藏霰匸�帊昅恘倳眑婭笫崷窙嗲睧颬睼麧緗鴇膹擨闀貘覷鏷禴矙𡜍𦶠�\}' brightgreen
  79. # punctuation characters, sorted by ASCII code
  80. keyword ! yellow
  81. keyword % yellow
  82. keyword && yellow
  83. keyword & brightmagenta
  84. keyword ( brightcyan
  85. keyword ) brightcyan
  86. keyword \* yellow
  87. keyword \+ yellow
  88. keyword , brightcyan
  89. keyword - yellow
  90. keyword / yellow
  91. keyword : brightcyan
  92. keyword ; brightmagenta
  93. keyword < yellow
  94. keyword = yellow
  95. keyword > yellow
  96. keyword ? brightcyan
  97. keyword [ brightcyan
  98. keyword ] brightcyan
  99. keyword ^ brightmagenta
  100. keyword { brightcyan
  101. keyword || yellow
  102. keyword | brightmagenta
  103. keyword } brightcyan
  104. keyword ~ brightmagenta
  105. context exclusive /\* \*/ brown
  106. spellcheck
  107. context exclusive // \n brown
  108. spellcheck
  109. context linestart # \n brightred
  110. keyword \\\n yellow
  111. keyword /\**\*/ brown
  112. keyword //*\n brown
  113. keyword "+" red
  114. keyword <+> red
  115. context " " green
  116. spellcheck
  117. keyword \\" brightgreen
  118. keyword %% brightgreen
  119. keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen
  120. keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen
  121. keyword %\[hl\]n brightgreen
  122. keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen
  123. keyword %[*] brightgreen
  124. keyword %c brightgreen
  125. keyword %p brightgreen
  126. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  127. keyword \\\\ brightgreen
  128. keyword \\' brightgreen
  129. keyword \\\{abtnvfr\} brightgreen