Debian Codegraph @

runtime/queries/gnuplot/highlights.scm

raw symbols SCIP
1 ;; Keywords (commands)
2 ;; Core commands
3 "plot" @keyword.control
4 "splot" @keyword.control
5 "fit" @keyword.control
6 "set" @keyword.control
7 "unset" @keyword.control
8 "load" @keyword.control
9 "pause" @keyword.control
10 (reset_command) @keyword.control
11 "do" @keyword.control.repeat
12 "for" @keyword.control.repeat
13
14 ;; array definition
15 "array" @type
16
17 ;; Plot / fit modifiers
18 "using" @keyword.operator
19 "with" @keyword.operator
20 "title" @keyword.operator
21 "notitle" @keyword.operator
22 "via" @keyword.operator
23
24 ;; Identifiers (variables)
25 (identifier) @variable
26
27 ;; Function calls
28 (function_call
29 (expression_list
30 (expression
31 (identifier) @variable.parameter)))
32
33 (function_call
34 name: (_) @function)
35
36 (builtin_function) @function.builtin
37
38 ;; Function definitions
39 (function_definition
40 name: (identifier) @function)
41
42 (function_definition
43 (parameter_list
44 (_) @variable.parameter))
45
46 ;; Numbers (distinct integer/float if desired):
47 (number) @constant.numeric.float
48
49 ;; Strings
50 (string) @string
51
52 ;; Comments
53 (comment) @comment
54
55 ;; Operators
56 (operator) @keyword.operator
57
58 ;; Range literal
59 (range) @constant
60
61 ;; Punctuation
62 ["(" ")" "[" "]" "," ":" "="] @punctuation.bracket