Debian Codegraph @

runtime/queries/scheme/highlights.scm

raw symbols SCIP
1 (number) @constant.numeric
2 (character) @constant.character
3 (boolean) @constant.builtin.boolean
4
5 (string) @string
6
7 (escape_sequence) @constant.character.escape
8
9 (comment) @comment.line
10 (block_comment) @comment.block
11 (directive) @keyword.directive
12
13 ; variables
14
15 ((symbol) @variable.builtin
16 (#eq? @variable.builtin "..."))
17
18 ((symbol) @variable.builtin
19 (#eq? @variable.builtin "."))
20
21 (symbol) @variable
22
23 ["(" ")" "[" "]" "{" "}"] @punctuation.bracket
24
25 (quote "'") @operator
26 (unquote_splicing ",@") @operator
27 (unquote ",") @operator
28 (quasiquote "`") @operator
29
30 ; procedure
31
32 (list
33 .
34 (symbol) @function)
35
36 (list
37 .
38 (symbol) @function.builtin
39 (#any-of? @function.builtin
40 "caar" "cadr" "call-with-input-file" "call-with-output-file" "cdar" "cddr" "list"
41 "open-input-file" "open-output-file" "with-input-from-file" "with-output-to-file" "*" "+" "-"
42 "/" "<" "<=" "=" ">" ">=" "abs" "acos" "angle" "append" "apply" "asin" "assoc" "assq" "assv"
43 "atan" "boolean?" "caaaar" "caaadr" "caaar" "caadar" "caaddr" "caadr" "cadaar" "cadadr" "cadar"
44 "caddar" "cadddr" "caddr" "call-with-current-continuation" "call-with-values" "car" "cdaaar"
45 "cdaadr" "cdaar" "cdadar" "cdaddr" "cdadr" "cddaar" "cddadr" "cddar" "cdddar" "cddddr" "cdddr"
46 "cdr" "ceiling" "char->integer" "char-alphabetic?" "char-ci<=?" "char-ci<?" "char-ci=?"
47 "char-ci>=?" "char-ci>?" "char-downcase" "char-lower-case?" "char-numeric?" "char-ready?"
48 "char-upcase" "char-upper-case?" "char-whitespace?" "char<=?" "char<?" "char=?" "char>=?"
49 "char>?" "char?" "close-input-port" "close-output-port" "complex?" "cons" "cos"
50 "current-error-port" "current-input-port" "current-output-port" "denominator" "display"
51 "dynamic-wind" "eof-object?" "eq?" "equal?" "eqv?" "eval" "even?" "exact->inexact" "exact?" "exp"
52 "expt" "floor" "flush-output" "for-each" "force" "gcd" "imag-part" "inexact->exact" "inexact?"
53 "input-port?" "integer->char" "integer?" "interaction-environment" "lcm" "length" "list->string"
54 "list->vector" "list-ref" "list-tail" "list?" "load" "log" "magnitude" "make-polar"
55 "make-rectangular" "make-string" "make-vector" "map" "max" "member" "memq" "memv" "min" "modulo"
56 "negative?" "newline" "not" "null-environment" "null?" "number->string" "number?" "numerator"
57 "odd?" "output-port?" "pair?" "peek-char" "positive?" "procedure?" "quotient" "rational?"
58 "rationalize" "read" "read-char" "real-part" "real?" "remainder" "reverse" "round"
59 "scheme-report-environment" "set-car!" "set-cdr!" "sin" "sqrt" "string" "string->list"
60 "string->number" "string->symbol" "string-append" "string-ci<=?" "string-ci<?" "string-ci=?"
61 "string-ci>=?" "string-ci>?" "string-copy" "string-fill!" "string-length" "string-ref"
62 "string-set!" "string<=?" "string<?" "string=?" "string>=?" "string>?" "string?" "substring"
63 "symbol->string" "symbol?" "tan" "transcript-off" "transcript-on" "truncate" "values" "vector"
64 "vector->list" "vector-fill!" "vector-length" "vector-ref" "vector-set!" "vector?" "write"
65 "write-char" "zero?"))
66
67 ; special forms
68
69 (list
70 "["
71 (symbol)+ @variable
72 "]")
73
74 (list
75 .
76 (symbol) @_f
77 .
78 (list
79 (symbol) @variable)
80 (#any-of? @_f "lambda" "λ" "define-values"))
81
82 (list
83 .
84 (symbol) @_f
85 (list
86 .
87 (list
88 (symbol) @variable))
89 (#eq? @_f "case-lambda"))
90
91 (list
92 .
93 (symbol) @_f
94 .
95 (list
96 (list
97 (symbol) @variable.parameter))
98 (#any-of? @_f
99 "let" "let*" "let-syntax" "let-values" "let*-values" "letrec" "letrec*" "letrec-syntax" "do"))
100
101 ; operators
102
103 ((symbol) @operator
104 (#any-of? @operator "+" "-" "*" "/" "=" ">" "<" ">=" "<="))
105
106 ; library
107
108 (list
109 .
110 (symbol) @_lib
111 .
112 (symbol) @namespace
113
114 (#eq? @_lib "library"))
115
116 ; quote
117
118 (list
119 .
120 (symbol) @_f
121 (#eq? @_f "quote")) @string.symbol
122
123 ; keywords
124
125 (list
126 .
127 ((symbol) @keyword.control.conditional
128 (#any-of? @keyword.control.conditional "if" "cond" "case" "when" "unless")))
129
130 (list
131 .
132 (symbol) @keyword
133 (#any-of? @keyword
134 "define-syntax" "let*" "lambda" "λ" "case-lambda" "case" "=>" "quote-splicing" "unquote-splicing"
135 "set!" "let" "letrec" "letrec-syntax" "let-values" "let*-values" "do" "else" "define" "cond"
136 "syntax-rules" "unquote" "begin" "quote" "let-syntax" "and" "if" "quasiquote" "letrec" "delay"
137 "or" "when" "unless" "identifier-syntax" "assert" "library" "export" "import" "rename" "only"
138 "except" "prefix" "define-values"))