Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
; tags and labels
(label) @label
(tag (identifier) @commment)
(tag) @comment

; values
(identifier) @function
(string) @string
(boolean) @constant
(number) @constant.numeric

; headers
(knot_header) @keyword
(stitch_header) @keyword
(function_header) @keyword

; marks (ink)
(option_mark) @keyword.directive
(gather_mark) @type.builtin
(glue) @type.builtin

; calls
(divert_or_thread) @function

; operators
(assignment) @operator

; special marks/operators (ink)
(arrow) @special
(double_arrow) @special
(back_arrow) @constant
(dot) @special
(mark_start) @special
(mark_end) @special
(hide_start) @special
(hide_end) @special

; declarations
(var_line) @attribute
(const_line) @constant
(list_line) @type

; comments
(line_comment) @comment
(block_comment) @comment

; unparsed code
(inline_block) @keyword
(condition_block) @keyword
(code_text) @keyword

; support injection
(program) @ui.text