cuda.syntax 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # Cuda syntax file
  2. # Authors:
  3. # Sergey Sharybin <sergey.vfx@gmail.com>
  4. #
  5. # Based on cxx.syntax file with some extra keywords to be
  6. # highlighted,
  7. context default
  8. keyword whole auto yellow
  9. keyword whole break yellow
  10. keyword whole case yellow
  11. keyword whole char yellow
  12. keyword whole const yellow
  13. keyword whole continue yellow
  14. keyword whole default yellow
  15. keyword whole do yellow
  16. keyword whole double yellow
  17. keyword whole else yellow
  18. keyword whole enum yellow
  19. keyword whole extern yellow
  20. keyword whole float yellow
  21. keyword whole for yellow
  22. keyword whole goto yellow
  23. keyword whole if yellow
  24. keyword whole int yellow
  25. keyword whole long yellow
  26. keyword whole register yellow
  27. keyword whole return yellow
  28. keyword whole short yellow
  29. keyword whole signed yellow
  30. keyword whole sizeof yellow
  31. keyword whole static yellow
  32. keyword whole struct yellow
  33. keyword whole switch yellow
  34. keyword whole typedef yellow
  35. keyword whole union yellow
  36. keyword whole unsigned yellow
  37. keyword whole void yellow
  38. keyword whole volatile yellow
  39. keyword whole while yellow
  40. keyword whole asm yellow
  41. keyword whole catch yellow
  42. keyword whole class yellow
  43. keyword whole friend yellow
  44. keyword whole delete yellow
  45. keyword whole inline yellow
  46. keyword whole new yellow
  47. keyword whole operator yellow
  48. keyword whole private yellow
  49. keyword whole protected yellow
  50. keyword whole public yellow
  51. keyword whole this yellow
  52. keyword whole throw yellow
  53. keyword whole template yellow
  54. keyword whole try yellow
  55. keyword whole virtual yellow
  56. keyword whole bool yellow
  57. keyword whole const_cast yellow
  58. keyword whole dynamic_cast yellow
  59. keyword whole explicit yellow
  60. keyword whole false yellow
  61. keyword whole mutable yellow
  62. keyword whole namespace yellow
  63. keyword whole reinterpret_cast yellow
  64. keyword whole static_cast yellow
  65. keyword whole true yellow
  66. keyword whole typeid yellow
  67. keyword whole typename yellow
  68. keyword whole using yellow
  69. keyword whole wchar_t yellow
  70. keyword whole ... yellow
  71. keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
  72. # Function type qualifiers
  73. keyword whole __device__ white
  74. keyword whole __global__ white
  75. keyword whole __host__ white
  76. keyword whole __noinline__ white
  77. keyword whole __forceinline__ white
  78. # Variable type qualifiers
  79. keyword whole __constant__ white
  80. keyword whole __shared__ white
  81. keyword whole __managed__ white
  82. keyword whole __restrict__ white
  83. # Built-in variables
  84. keyword whole threadIdx white
  85. keyword whole blockIdx white
  86. keyword whole blockDim white
  87. keyword whole gridDim white
  88. keyword whole warpSize white
  89. # Synchronization
  90. keyword whole __syncthreads white
  91. keyword whole __threadfence white
  92. keyword /\* brown
  93. keyword \*/ brown
  94. keyword // brown
  95. keyword '\\\{"abtnvfr\}' brightgreen
  96. keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen
  97. keyword '\\'' brightgreen
  98. keyword '\\\\' brightgreen
  99. keyword '\\0' brightgreen
  100. keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~嵗╯丰戍貝物洎悖停眾斯須號獄播噶擱藏霰匸�帊昅恘倳眑婭笫崷窙嗲睧颬睼麧緗鴇膹擨闀貘覷鏷禴矙𡜍𦶠�\}' brightgreen
  101. keyword > yellow
  102. keyword < yellow
  103. keyword \+ yellow
  104. keyword - yellow
  105. keyword \* yellow
  106. keyword / yellow
  107. keyword % yellow
  108. keyword = yellow
  109. keyword != yellow
  110. keyword == yellow
  111. keyword { brightcyan
  112. keyword } brightcyan
  113. keyword ( brightcyan
  114. keyword ) brightcyan
  115. keyword [ brightcyan
  116. keyword ] brightcyan
  117. keyword , brightcyan
  118. keyword : brightcyan
  119. keyword ? brightcyan
  120. keyword ; brightmagenta
  121. context exclusive /\* \*/ brown
  122. spellcheck
  123. context exclusive // \n brown
  124. spellcheck
  125. context linestart # \n brightred
  126. keyword \\\n yellow
  127. keyword /\**\*/ brown
  128. keyword //*\n brown
  129. keyword "+" red
  130. keyword <+> red
  131. context " " green
  132. spellcheck
  133. keyword \\" brightgreen
  134. keyword %% brightgreen
  135. keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen
  136. keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen
  137. keyword %\[hl\]n brightgreen
  138. keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen
  139. keyword %[*] brightgreen
  140. keyword %c brightgreen
  141. keyword %p brightgreen
  142. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  143. keyword \\\\ brightgreen
  144. keyword \\' brightgreen
  145. keyword \\\{abtnvfr\} brightgreen