Debian Codegraph @

runtime/queries/batch/highlights.scm

raw symbols SCIP
1 (echo_off) @keyword
2 (comment) @comment
3 (label) @label
4
5 (set_keyword) @keyword
6 (variable_name) @variable
7 (set_option) @constant
8 (assignment_literal) @string
9 (arithmetic_expression) @string
10
11 ; IF/FOR/GOTO/CALL statements
12 (if_stmt) @keyword.control.conditional
13 (for_stmt) @keyword.control.repeat
14 (goto_stmt) @keyword
15 (call_stmt) @keyword.function
16 (setlocal_stmt) @keyword
17 (endlocal_stmt) @keyword
18 (exit_stmt) @keyword
19
20 (comparison_op) @operator
21 (redirect_op) @operator
22 (fd_redirect) @operator
23
24 (command_name) @function
25
26 ; CMD pseudo/dynamic environment variables
27 ((variable_reference) @variable.builtin
28 (#match? @variable.builtin "(?i)^[%!](CD|ERRORLEVEL|DATE|TIME|RANDOM|CMDCMDLINE|CMDEXTVERSION|HIGHESTNUMANODENUMBER|__APPDIR__|__CD__)[%!]$"))
29
30 (variable_reference) @variable
31
32 (for_set_literal) @string
33 (for_variable) @variable.parameter
34 (for_options) @constant
35
36 (string) @string
37 (integer) @constant.numeric
38 (command_option) @constant
39 (argument_value) @string
40 (redirect_target) @string.special
41
42 ; e.g. `set INSTALL_AS_SERVICE=true`
43 (variable_assignment
44 (assignment_value
45 (assignment_literal) @constant.builtin.boolean)
46 (#any-of? @constant.builtin.boolean "true" "false" "TRUE" "FALSE" "yes" "no"))
47
48 ; e.g. `set PORT_MSGROUTER=10100`
49 (variable_assignment
50 (assignment_value
51 (assignment_literal) @constant.numeric)
52 (#match? @constant.numeric "^\\d+$"))
53