scheme.json 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "illegal": "\\S",
  3. "contains": [
  4. {
  5. "className": "meta",
  6. "begin": "^#!",
  7. "end": "$"
  8. },
  9. {
  10. "className": "number",
  11. "variants": [
  12. {
  13. "begin": "(\\-|\\+)?\\d+([.\/]\\d+)?",
  14. "relevance": 0
  15. },
  16. {
  17. "begin": "(\\-|\\+)?\\d+([.\/]\\d+)?[+\\-](\\-|\\+)?\\d+([.\/]\\d+)?i",
  18. "relevance": 0
  19. },
  20. {
  21. "begin": "#b[0-1]+(\/[0-1]+)?"
  22. },
  23. {
  24. "begin": "#o[0-7]+(\/[0-7]+)?"
  25. },
  26. {
  27. "begin": "#x[0-9a-f]+(\/[0-9a-f]+)?"
  28. }
  29. ]
  30. },
  31. {
  32. "className": "string",
  33. "begin": "\"",
  34. "end": "\"",
  35. "illegal": "\\n",
  36. "contains": [
  37. {
  38. "begin": "\\\\[\\s\\S]",
  39. "relevance": 0
  40. }
  41. ]
  42. },
  43. {
  44. "className": "symbol",
  45. "begin": "'[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+"
  46. },
  47. {
  48. "variants": [
  49. {
  50. "begin": "'"
  51. },
  52. {
  53. "begin": "`"
  54. }
  55. ],
  56. "contains": [
  57. {
  58. "begin": "\\(",
  59. "end": "\\)",
  60. "contains": [
  61. "self",
  62. {
  63. "className": "literal",
  64. "begin": "(#t|#f|#\\\\[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+|#\\\\.)"
  65. },
  66. {
  67. "$ref": "#contains.2"
  68. },
  69. {
  70. "$ref": "#contains.1"
  71. },
  72. {
  73. "begin": "[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",
  74. "relevance": 0
  75. },
  76. {
  77. "$ref": "#contains.3"
  78. }
  79. ]
  80. }
  81. ]
  82. },
  83. {
  84. "variants": [
  85. {
  86. "begin": "\\(",
  87. "end": "\\)"
  88. },
  89. {
  90. "begin": "\\[",
  91. "end": "\\]"
  92. }
  93. ],
  94. "contains": [
  95. {
  96. "begin": "lambda",
  97. "endsWithParent": true,
  98. "returnBegin": true,
  99. "contains": [
  100. {
  101. "className": "name",
  102. "begin": "[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",
  103. "lexemes": "[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",
  104. "keywords": {
  105. "builtin-name": "case-lambda call\/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let\/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit\/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... \/ ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"
  106. }
  107. },
  108. {
  109. "begin": "\\(",
  110. "end": "\\)",
  111. "endsParent": true,
  112. "contains": [
  113. {
  114. "$ref": "#contains.4.contains.0.contains.4"
  115. }
  116. ]
  117. }
  118. ]
  119. },
  120. {
  121. "$ref": "#contains.5.contains.0.contains.0"
  122. },
  123. {
  124. "endsWithParent": true,
  125. "relevance": 0,
  126. "contains": [
  127. {
  128. "$ref": "#contains.4.contains.0.contains.1"
  129. },
  130. {
  131. "$ref": "#contains.1"
  132. },
  133. {
  134. "$ref": "#contains.2"
  135. },
  136. {
  137. "$ref": "#contains.4.contains.0.contains.4"
  138. },
  139. {
  140. "$ref": "#contains.3"
  141. },
  142. {
  143. "$ref": "#contains.4"
  144. },
  145. {
  146. "$ref": "#contains.5"
  147. },
  148. {
  149. "className": "comment",
  150. "begin": ";",
  151. "end": "$",
  152. "contains": [
  153. {
  154. "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
  155. },
  156. {
  157. "className": "doctag",
  158. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  159. "relevance": 0
  160. }
  161. ],
  162. "relevance": 0
  163. },
  164. {
  165. "className": "comment",
  166. "begin": "#\\|",
  167. "end": "\\|#",
  168. "contains": [
  169. {
  170. "$ref": "#contains.5.contains.2.contains.7.contains.0"
  171. },
  172. {
  173. "className": "doctag",
  174. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  175. "relevance": 0
  176. }
  177. ]
  178. }
  179. ]
  180. }
  181. ]
  182. },
  183. {
  184. "$ref": "#contains.5.contains.2.contains.7"
  185. },
  186. {
  187. "$ref": "#contains.5.contains.2.contains.8"
  188. }
  189. ]
  190. }