@@ -23,29 +23,29 @@
24; * doc string
24; * doc string
25(unary_operator
25(unary_operator
26− operator: "@" @comment.doc
26+ operator: "@" @comment.block.documentation
27 operand: (call
27 operand: (call
28− target: (identifier) @comment.doc.__attribute__
28+ target: (identifier) @comment.block.documentation.__attribute__
29 (arguments
29 (arguments
31− (string) @comment.doc
31+ (string) @comment.block.documentation
32− (charlist) @comment.doc
32+ (charlist) @comment.block.documentation
34− quoted_start: _ @comment.doc
34+ quoted_start: _ @comment.block.documentation
35− quoted_end: _ @comment.doc) @comment.doc
35+ quoted_end: _ @comment.block.documentation) @comment.block.documentation
36− (boolean) @comment.doc
36+ (boolean) @comment.block.documentation
38− (#match? @comment.doc.__attribute__ "^(moduledoc|typedoc|doc)$"))
38+ (#match? @comment.block.documentation.__attribute__ "^(moduledoc|typedoc|doc)$"))
40; * module attribute
40; * module attribute
41(unary_operator
41(unary_operator
42− operator: "@" @attribute
42+ operator: "@" @variable.property
43 operand: [
43 operand: [
44− (identifier) @attribute
44+ (identifier) @variable.property
46− target: (identifier) @attribute)
46+ target: (identifier) @variable.property)
47− (boolean) @attribute
47+ (boolean) @variable.property
48− (nil) @attribute
48+ (nil) @variable.property
51; * capture operand
51; * capture operand
@@ -69,10 +69,9 @@
72−[
72+(nil) @constant.builtin
75−] @constant
74+(boolean) @constant.builtin.boolean
@@ -85,20 +84,20 @@
85 target: (dot
84 target: (dot
86 left: (atom) @type))
85 left: (atom) @type))
88−(char) @constant
87+(char) @constant.character
90; Quoted content
89; Quoted content
92−(interpolation "#{" @punctuation.special "}" @punctuation.special) @embedded
91+(interpolation "#{" @escape "}" @escape) @embedded
94−(escape_sequence) @string.escape
93+(escape_sequence) @escape
98 (quoted_atom)
97 (quoted_atom)
100 (quoted_keyword)
99 (quoted_keyword)
@@ -182,8 +181,8 @@
183; * unused
182; * unused
185− (identifier) @comment.unused
184+ (identifier) @comment
186− (#match? @comment.unused "^_")
185+ (#match? @comment "^_")
189; * regular
188; * regular