mirror of https://github.com/helix-editor/helix
YAML support (#667)
* added submodule * remove wrong one * added highlights * use property * add indents * shallowpull/665/head^2
parent
ce7ad2beb5
commit
1586b0eec7
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 0e36bed171768908f331ff7dff9d956bae016efb
|
@ -0,0 +1,33 @@
|
|||||||
|
(block_mapping_pair key: (_) @property)
|
||||||
|
(flow_mapping (_ key: (_) @property))
|
||||||
|
(boolean_scalar) @boolean
|
||||||
|
(null_scalar) @constant.builtin
|
||||||
|
(double_quote_scalar) @string
|
||||||
|
(single_quote_scalar) @string
|
||||||
|
(escape_sequence) @string.escape
|
||||||
|
(integer_scalar) @number
|
||||||
|
(float_scalar) @number
|
||||||
|
(comment) @comment
|
||||||
|
(anchor_name) @type
|
||||||
|
(alias_name) @type
|
||||||
|
(tag) @type
|
||||||
|
(yaml_directive) @keyword
|
||||||
|
(ERROR) @error
|
||||||
|
|
||||||
|
[
|
||||||
|
","
|
||||||
|
"-"
|
||||||
|
":"
|
||||||
|
">"
|
||||||
|
"?"
|
||||||
|
"|"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
["*" "&"] @punctuation.special
|
@ -0,0 +1,3 @@
|
|||||||
|
indent = [
|
||||||
|
"block_mapping_pair",
|
||||||
|
]
|
Loading…
Reference in New Issue