Debian Codegraph @

runtime/queries/elisp/highlights.scm

raw symbols SCIP
1 ;; Special forms
2 [
3 "and"
4 "catch"
5 "cond"
6 "condition-case"
7 "defconst"
8 "defvar"
9 "function"
10 "if"
11 "interactive"
12 "lambda"
13 "let"
14 "let*"
15 "or"
16 "prog1"
17 "prog2"
18 "progn"
19 "quote"
20 "save-current-buffer"
21 "save-excursion"
22 "save-restriction"
23 "setq"
24 "setq-default"
25 "unwind-protect"
26 "while"
27 ] @keyword
28
29 (string) @string
30
31 ;; Function definitions
32 [
33 "defun"
34 "defsubst"
35 ] @keyword
36 (function_definition name: (symbol) @function)
37 (function_definition parameters: (list (symbol) @variable.parameter))
38 (function_definition docstring: (string) @comment)
39
40 ;; Highlight macro definitions the same way as function definitions.
41 "defmacro" @keyword
42 (macro_definition name: (symbol) @function)
43 (macro_definition parameters: (list (symbol) @variable.parameter))
44 (macro_definition docstring: (string) @comment)
45
46 (comment) @comment
47
48 (integer) @constant.numeric.integer
49 (float) @constant.numeric.float
50 (char) @constant.character
51
52 [
53 "("
54 ")"
55 "#["
56 "["
57 "]"
58 ] @punctuation.bracket
59
60 [
61 "`"
62 "#'"
63 "'"
64 ","
65 ",@"
66 ] @operator
67
68 ;; Highlight nil and t as constants, unlike other symbols
69 [
70 "nil"
71 "t"
72 ] @constant.builtin