rust.syntax 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. context default
  2. # keywords
  3. keyword whole as yellow
  4. keyword whole break yellow
  5. keyword whole const yellow
  6. keyword whole continue yellow
  7. keyword whole crate yellow
  8. keyword whole else yellow
  9. keyword whole enum yellow
  10. keyword whole extern yellow
  11. keyword whole fn yellow
  12. keyword whole for yellow
  13. keyword whole if yellow
  14. keyword whole impl yellow
  15. keyword whole in yellow
  16. keyword whole let yellow
  17. keyword whole loop yellow
  18. keyword whole match yellow
  19. keyword whole mod yellow
  20. keyword whole move yellow
  21. keyword whole mut yellow
  22. keyword whole pub yellow
  23. keyword whole ref yellow
  24. keyword whole return yellow
  25. keyword whole Self yellow
  26. keyword whole self brightgreen
  27. keyword whole static yellow
  28. keyword whole struct yellow
  29. keyword whole super yellow
  30. keyword whole trait yellow
  31. keyword whole type yellow
  32. keyword whole unsafe yellow
  33. keyword whole use yellow
  34. keyword whole where yellow
  35. keyword whole while yellow
  36. # keywords reserved for future use
  37. keyword whole abstract red
  38. keyword whole alignof red
  39. keyword whole become red
  40. keyword whole box red
  41. keyword whole do red
  42. keyword whole final red
  43. keyword whole macro red
  44. keyword whole offsetof red
  45. keyword whole override red
  46. keyword whole priv red
  47. keyword whole proc red
  48. keyword whole pure red
  49. keyword whole sizeof red
  50. keyword whole typeof red
  51. keyword whole unsized red
  52. keyword whole virtual red
  53. keyword whole yield red
  54. # common types
  55. keyword whole bool brightcyan
  56. keyword whole char brightcyan
  57. keyword whole isize brightcyan
  58. keyword whole usize brightcyan
  59. keyword whole i8 brightcyan
  60. keyword whole i16 brightcyan
  61. keyword whole i32 brightcyan
  62. keyword whole i64 brightcyan
  63. keyword whole u8 brightcyan
  64. keyword whole u16 brightcyan
  65. keyword whole u32 brightcyan
  66. keyword whole u64 brightcyan
  67. keyword whole isize brightcyan
  68. keyword whole usize brightcyan
  69. keyword whole f32 brightcyan
  70. keyword whole f64 brightcyan
  71. keyword whole str brightcyan
  72. keyword whole String brightcyan
  73. keyword whole Vec brightcyan
  74. keyword whole Option brightcyan
  75. keyword whole Result brightcyan
  76. # constants
  77. keyword whole false brightgreen
  78. keyword whole true brightgreen
  79. keyword whole Some brightgreen
  80. keyword whole None brightgreen
  81. keyword whole Ok brightgreen
  82. keyword whole Err brightgreen
  83. # macros
  84. keyword whole +! brightmagenta
  85. keyword whole $+ brightblue
  86. # numbers
  87. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.
  88. keyword whole 0x\{0123456789abcdefABCDEF_\}\[0123456789abcdefABCDEF_\] brightgreen
  89. keyword whole 0o\{01234567_\}\[01234567_\] brightgreen
  90. keyword whole 0b\{01_\}\[01_\] brightgreen
  91. keyword whole \{0123456789_\}\[0123456789_\] brightgreen
  92. keyword whole \[0123456789_\]\.\{0123456789_\}\[0123456789_\] brightgreen
  93. keyword whole \{0123456789_\}\[0123456789_\]\.\[0123456789_\] brightgreen
  94. keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\] brightgreen
  95. keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\] brightgreen
  96. keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\] brightgreen
  97. keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\] brightgreen
  98. # char
  99. keyword '\\'' brightgreen
  100. keyword '*' brightgreen
  101. # comments
  102. context /\* \*/ brown
  103. spellcheck
  104. keyword whole BUG brightred
  105. keyword whole FixMe brightred
  106. keyword whole FIXME brightred
  107. keyword whole Note brightred
  108. keyword whole NOTE brightred
  109. keyword whole ToDo brightred
  110. keyword whole TODO brightred
  111. keyword !!\[!\] brightred
  112. keyword ??\[?\] brightred
  113. context // \n brown
  114. spellcheck
  115. keyword whole BUG brightred
  116. keyword whole FixMe brightred
  117. keyword whole FIXME brightred
  118. keyword whole Note brightred
  119. keyword whole NOTE brightred
  120. keyword whole ToDo brightred
  121. keyword whole TODO brightred
  122. keyword !!\[!\] brightred
  123. keyword ??\[?\] brightred
  124. # strings
  125. context " " green
  126. spellcheck
  127. keyword \\" brightgreen
  128. keyword \\' brightgreen
  129. keyword \\\\ brightgreen
  130. keyword \\\{abtnvfr0\} brightgreen
  131. context r#" "# green
  132. spellcheck
  133. context #[ ] white
  134. context #![ ] white