mirror of https://github.com/helix-editor/helix
feat(languages): Support markdoc (#6432)
Add basic support for [markdoc](https://markdoc.dev/). For language server, see: https://github.com/markdoc-extra/markdoc-ls For tree sitter, see: https://github.com/markdoc-extra/tree-sitter-markdocpull/6473/head^2
parent
fed5e6e646
commit
70de5026b8
@ -0,0 +1,16 @@
|
||||
tag_name: (identifier) @tag
|
||||
(tag_self_closing "/" @tag)
|
||||
(tag_close "/" @tag)
|
||||
([(tag_start) (tag_end) "="] @tag)
|
||||
(attribute [key : (identifier)] @attribute)
|
||||
(attribute [shorthand : (identifier)] @attribute)
|
||||
(variable [variable : (identifier) (variable_sigil)] @variable)
|
||||
(variable_tail property : (identifier) @variable.other.member)
|
||||
(function function_name : (identifier) @function)
|
||||
(function_parameter_named parameter : (identifier) @variable.parameter)
|
||||
|
||||
(hash_key key: (identifier) @variable.other.member)
|
||||
(string) @string
|
||||
(number) @constant.numeric
|
||||
(boolean) @constant.builtin.boolean
|
||||
(null) @constant.builtin
|
@ -0,0 +1,2 @@
|
||||
((markdown) @injection.content
|
||||
(#set! injection.language "markdown"))
|
Loading…
Reference in New Issue