diff --git a/README.rst b/README.rst index 4cf0a048..169fcfe0 100644 --- a/README.rst +++ b/README.rst @@ -103,6 +103,9 @@ same parameters as `g:rainbow-delimiters`. query = { -- ... }, + priority = { + -- ... + }, highlight = { -- ... }, diff --git a/TODO.rst b/TODO.rst index 3fba3a70..0fb469b3 100644 --- a/TODO.rst +++ b/TODO.rst @@ -5,15 +5,6 @@ ####################### -Built-in queries -################ - -As of version 0.8.3 Neovim can only match one node per query. This is a -limitation of Neovim and there is nothing that can be done on this end. - -The global query does not updated the highlighting of injected languages. - - Queries which I cannot port =========================== @@ -21,10 +12,8 @@ I do not know enough about the following languages in order to write good queries. Contributions are welcome. - devicetree -- elm - gdscript - graphql -- kotlin - meson - ocaml - ocaml_interface diff --git a/doc/rainbow-delimiters.txt b/doc/rainbow-delimiters.txt index 1e3509b3..6204df65 100644 --- a/doc/rainbow-delimiters.txt +++ b/doc/rainbow-delimiters.txt @@ -160,6 +160,10 @@ available as part of a Lua module. [''] = 'rainbow-delimiters', latex = 'rainbow-blocks', }, + priority = { + [''] = 110, + lua = 210, + }, highlight = { 'RainbowDelimiterRed', 'RainbowDelimiterYellow', @@ -617,7 +621,7 @@ In HTML the terminating slash in a self-closing tag is optional. Instead of (element (start_tag "<" @delimiter - (tag_name) @delimiter @_tag_name + (tag_name) @delimiter ">" @delimiter @sentinel)) @container < However, this query also matches the opening tag of regular tags like `