go.syntax 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. context default
  2. # keywords
  3. keyword whole break yellow
  4. keyword whole case yellow
  5. keyword whole chan yellow
  6. keyword whole const yellow
  7. keyword whole continue yellow
  8. keyword whole default yellow
  9. keyword whole defer yellow
  10. keyword whole else yellow
  11. keyword whole fallthrough yellow
  12. keyword whole for yellow
  13. keyword whole func yellow
  14. keyword whole go yellow
  15. keyword whole goto yellow
  16. keyword whole if yellow
  17. keyword whole import yellow
  18. keyword whole interface yellow
  19. keyword whole map yellow
  20. keyword whole package yellow
  21. keyword whole range yellow
  22. keyword whole return yellow
  23. keyword whole select yellow
  24. keyword whole struct yellow
  25. keyword whole switch yellow
  26. keyword whole type yellow
  27. keyword whole var yellow
  28. # builtin types
  29. keyword whole uint8 brightgreen
  30. keyword whole uint16 brightgreen
  31. keyword whole uint32 brightgreen
  32. keyword whole uint64 brightgreen
  33. keyword whole int8 brightgreen
  34. keyword whole int16 brightgreen
  35. keyword whole int32 brightgreen
  36. keyword whole int64 brightgreen
  37. keyword whole float32 brightgreen
  38. keyword whole float64 brightgreen
  39. keyword whole byte brightgreen
  40. keyword whole uint brightgreen
  41. keyword whole int brightgreen
  42. keyword whole float brightgreen
  43. keyword whole uintptr brightgreen
  44. keyword whole string brightgreen
  45. keyword whole bool brightgreen
  46. keyword whole time brightgreen
  47. # builtin functions
  48. keyword whole nil brown
  49. keyword whole true brown
  50. keyword whole false brown
  51. keyword whole iota brown
  52. keyword whole cap brown
  53. keyword whole close brown
  54. keyword whole closed brown
  55. keyword whole len brown
  56. keyword whole make brown
  57. keyword whole new brown
  58. keyword whole panic brown
  59. keyword whole panicln brown
  60. keyword whole print brown
  61. keyword whole println brown
  62. # builtin packages
  63. keyword whole tar brightgreen
  64. keyword whole zip brightgreen
  65. keyword whole bufio brightgreen
  66. keyword whole bytes brightgreen
  67. keyword whole cmd brightgreen
  68. keyword whole compress brightgreen
  69. keyword whole container brightgreen
  70. keyword whole crypto brightgreen
  71. keyword whole database brightgreen
  72. keyword whole debug brightgreen
  73. keyword whole encoding brightgreen
  74. keyword whole errors brightgreen
  75. keyword whole expvar brightgreen
  76. keyword whole flag brightgreen
  77. keyword whole fmt brightgreen
  78. keyword whole hash brightgreen
  79. keyword whole html brightgreen
  80. keyword whole image brightgreen
  81. keyword whole suffixarray brightgreen
  82. keyword whole race brightgreen
  83. keyword whole singleflight brightgreen
  84. keyword whole syscall brightgreen
  85. keyword whole testenv brightgreen
  86. keyword whole trace brightgreen
  87. keyword whole io brightgreen
  88. keyword whole log brightgreen
  89. keyword whole math brightgreen
  90. keyword whole mime brightgreen
  91. keyword whole net brightgreen
  92. keyword whole os brightgreen
  93. keyword whole path brightgreen
  94. keyword whole reflect brightgreen
  95. keyword whole regexp brightgreen
  96. keyword whole runtime brightgreen
  97. keyword whole sort brightgreen
  98. keyword whole strconv brightgreen
  99. keyword whole strings brightgreen
  100. keyword whole sync brightgreen
  101. keyword whole testing brightgreen
  102. keyword whole text brightgreen
  103. keyword whole time brightgreen
  104. keyword whole unicode brightgreen
  105. keyword whole unsafe brightgreen
  106. keyword whole vendor brightgreen
  107. keyword whole unicode brightgreen
  108. # special functions
  109. keyword whole init brown
  110. keyword whole main brown
  111. # comment chars
  112. keyword /\* green
  113. keyword \*/ green
  114. keyword // green
  115. # punctuation, operator chars
  116. keyword <- brightmagenta
  117. keyword \+ brightcyan
  118. keyword & brightcyan
  119. keyword ( brightcyan
  120. keyword ) brightcyan
  121. keyword - brightcyan
  122. keyword | brightcyan
  123. keyword < brightcyan
  124. keyword [ brightcyan
  125. keyword ] brightcyan
  126. keyword \* brightcyan
  127. keyword ^ brightcyan
  128. keyword > brightcyan
  129. keyword { brightcyan
  130. keyword } brightcyan
  131. keyword / brightcyan
  132. keyword = brightcyan
  133. keyword , brightcyan
  134. keyword ; brightcyan
  135. keyword % brightcyan
  136. keyword ! brightcyan
  137. keyword . brightcyan
  138. keyword : brightcyan
  139. # comment
  140. context exclusive /\* \*/ brown
  141. context exclusive // \n brown
  142. # char, raw string, string
  143. context ' ' gray
  144. keyword \\\{abfnrtv\\'"\} white
  145. keyword \\\{0123\}\{01234567\}\{01234567\} white
  146. keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white
  147. keyword \\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white
  148. keyword \\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white
  149. context ` ` green
  150. context " " green
  151. spellcheck
  152. keyword \\\{abfnrtv\\'"\} brightgreen
  153. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  154. keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen
  155. keyword \\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen
  156. keyword \\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen