mirror of https://github.com/helix-editor/helix
Compare commits
No commits in common. "0720b0eafa998b826492cac3fdf2b8dfb629885f" and "d0f048d514afdc46c49a305357b893b1e3ee7fde" have entirely different histories.
0720b0eafa
...
d0f048d514
|
@ -4323,4 +4323,4 @@ indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "pug"
|
name = "pug"
|
||||||
source = { git = "https://github.com/zealot128/tree-sitter-pug", rev = "13e9195370172c86a8b88184cc358b23b677cc46" }
|
source = { git = "https://github.com/codepen/tree-sitter-pug", rev = "60a463fd725afd034045496b9018fa4a081469fd" }
|
||||||
|
|
|
@ -6,7 +6,20 @@
|
||||||
((doctype_name) @type.enum.variant)
|
((doctype_name) @type.enum.variant)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
; Tags
|
||||||
(tag_name) @constant
|
(tag_name) @constant
|
||||||
|
(
|
||||||
|
link_tag
|
||||||
|
("link" @constant)
|
||||||
|
)
|
||||||
|
(
|
||||||
|
script_tag
|
||||||
|
("script" @constant)
|
||||||
|
)
|
||||||
|
(
|
||||||
|
style_tag
|
||||||
|
("style" @constant)
|
||||||
|
)
|
||||||
|
|
||||||
; Attributes
|
; Attributes
|
||||||
(id) @attribute
|
(id) @attribute
|
||||||
|
@ -16,10 +29,7 @@
|
||||||
(quoted_attribute_value) @string
|
(quoted_attribute_value) @string
|
||||||
|
|
||||||
; Controls
|
; Controls
|
||||||
(
|
; NOTE: The grammar currently seems to be missing the "if" conditional
|
||||||
conditional
|
|
||||||
((keyword) @keyword.control.conditional)
|
|
||||||
)
|
|
||||||
(
|
(
|
||||||
case
|
case
|
||||||
((keyword) @keyword.control)
|
((keyword) @keyword.control)
|
||||||
|
@ -31,10 +41,12 @@
|
||||||
(
|
(
|
||||||
each
|
each
|
||||||
((keyword) @keyword.control.repeat)
|
((keyword) @keyword.control.repeat)
|
||||||
)
|
((iteration_variable) @variable)
|
||||||
(
|
((keyword) @keyword.operator)
|
||||||
else
|
(
|
||||||
((keyword) @keyword.control.conditional)
|
else
|
||||||
|
((keyword) @keyword.control.conditional)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
(
|
(
|
||||||
while
|
while
|
||||||
|
@ -74,11 +86,13 @@
|
||||||
(
|
(
|
||||||
block_append
|
block_append
|
||||||
((keyword) @keyword.directive)
|
((keyword) @keyword.directive)
|
||||||
|
((keyword) @keyword.directive)
|
||||||
((block_name) @function.method)
|
((block_name) @function.method)
|
||||||
)
|
)
|
||||||
(
|
(
|
||||||
block_prepend
|
block_prepend
|
||||||
((keyword) @keyword.directive)
|
((keyword) @keyword.directive)
|
||||||
|
((keyword) @keyword.directive)
|
||||||
((block_name) @function.method)
|
((block_name) @function.method)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -93,5 +107,5 @@
|
||||||
; Inline JavaScript
|
; Inline JavaScript
|
||||||
(
|
(
|
||||||
unbuffered_code
|
unbuffered_code
|
||||||
(("-") @special)
|
(("-") @operator)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue