diff --git a/dot_config/nvim/queries/php/injections.scm b/dot_config/nvim/queries/php/injections.scm new file mode 100644 index 0000000..71ac9c6 --- /dev/null +++ b/dot_config/nvim/queries/php/injections.scm @@ -0,0 +1,11 @@ +;; extends + +(heredoc + (heredoc_start) @_start + (heredoc_body) @sql + (#lua-match? @_start SQL)) + +(heredoc + (heredoc_start) @_start + (heredoc_body) @html + (#lua-match? @_start HTML)) diff --git a/dot_config/nvim/queries/xml/highlights.scm b/dot_config/nvim/queries/xml/highlights.scm new file mode 100644 index 0000000..f37cac1 --- /dev/null +++ b/dot_config/nvim/queries/xml/highlights.scm @@ -0,0 +1,30 @@ +[ + "<" + ">" + "" + ] @tag.delimiter + +"=" @operator +[ + (start_tag) + (end_tag) + (xml_decl) + ] @tag +(empty_elem_tag) @tag + +[(doctype_decl) (xml_decl)] @keyword +(doctype) @string +(system_literal) @string + +["encoding" "standalone" "version" ] @tag.attribute +[ + (version_info) + (encoding_decl) + (standalone_decl) + ] @string + + +(attribute_name) @tag.attribute +(attribute_value) @string +(comment) @comment diff --git a/dot_config/nvim/queries/xml/indents.scm b/dot_config/nvim/queries/xml/indents.scm new file mode 100644 index 0000000..5f2902d --- /dev/null +++ b/dot_config/nvim/queries/xml/indents.scm @@ -0,0 +1,9 @@ + +(prolog) @indent.zero + +[ + (start_tag) + (element) +] @indent.begin + +[ (end_tag) ">" "/>"] @indent.branch