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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
;; Tree-sitter highlight queries for strictdoc

;; —————————————————————————————————————————
;; Keywords “blok” del documento
;; —————————————————————————————————————————
[
  "[DOCUMENT]"
  "[DOCUMENT_FROM_FILE]"
  "[GRAMMAR]"
  "[/SECTION]"
  "[SECTION]"
  (sdoc_node_opening)
  (sdoc_composite_node_opening)
  (sdoc_composite_node_closing)
  (sdoc_composite_node_type_name)
] @keyword

[
  "AUTO_LEVELS"
  "CLASSIFICATION"
  "DATE"
  "DEFAULT_VIEW"
  "ELEMENTS"
  "ENABLE_MID"
  "FIELDS"
  "FILE"
  "FORMAT"
  "IMPORT_FROM_FILE"
  "IS_COMPOSITE"
  "LAYOUT"
  "LEVEL"
  "MARKUP"
  "METADATA"
  "MID"
  "NAME"
  "NODE_IN_TOC"
  "OBJECT_TYPE"
  "OPTIONS"
  "PLACEMENT"
  "PREFIX"
  "PROPERTIES"
  "REQ_PREFIX"
  "REQUIRED"
  "REQUIREMENT_IN_TOC"
  "REQUIREMENT_STYLE"
  "ROLE"
  "ROOT"
  "TAG"
  "TITLE"
  "TYPE"
  "UID"
  "VALUE"
  "VERSION"
  "VIEW_STYLE"
  "VISIBLE_FIELDS"
] @type.builtin

;; Operators
[
  (multiline_opening_token)
  (multiline_closing_token)
] @operator

;; Punctuation
[
  ":" @punctuation.delimiter
  "," @punctuation.delimiter
  "-" @punctuation.delimiter
]

;; Boolean literals
(boolean_choice) @constant.builtin.boolean

;; Requirement types and file formats

;; Config option values
[
  "Child"
  "Default"
  "File"
  "HTML"
  "Inline"
  "Narrative"
  "Off"
  "On"
  "Parent"
  "Plain"
  "RST"
  "Simple"
  "Table"
  "Text"
  "Website"
  "Zebra"
] @constant.builtin


;; Strings
(single_line_string) @string
[ (uid_string) (req_reference_value_id) ] @string.special.symbol
(date) @string.special

;; Fields
(document_custom_metadata_key) @type.parameter
[ "RELATIONS" (field_name) ] @variable.other.member
(choice_option) @variable.parameter

;; Anchors and links
(anchor) @label
(inline_link) @string.special.url

[
 (role_id)
] @variable