diff options
| author | Brian Shu <littlebubu.shu@gmail.com> | 2021-01-09 10:27:27 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-01-12 07:21:11 +0100 |
| commit | 39968ca258c89b796fc9ce5f3643ca8781150dd8 (patch) | |
| tree | e8477cd1f5fbfe104bc5f4c6c06cf989a86710f4 | |
| parent | C++ highlights: Fix destructor highlighting (diff) | |
| download | nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar.gz nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar.bz2 nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar.lz nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar.xz nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.tar.zst nvim-treesitter-39968ca258c89b796fc9ce5f3643ca8781150dd8.zip | |
added query enhancements
added toml
added alternation
| -rw-r--r-- | queries/json/locals.scm | 4 | ||||
| -rw-r--r-- | queries/toml/folds.scm | 1 | ||||
| -rw-r--r-- | queries/toml/locals.scm | 6 |
3 files changed, 9 insertions, 2 deletions
diff --git a/queries/json/locals.scm b/queries/json/locals.scm new file mode 100644 index 000000000..6609a2d22 --- /dev/null +++ b/queries/json/locals.scm @@ -0,0 +1,4 @@ +[ + (object) + (array) +] @scope diff --git a/queries/toml/folds.scm b/queries/toml/folds.scm index 90b4ec222..a58aae4ca 100644 --- a/queries/toml/folds.scm +++ b/queries/toml/folds.scm @@ -1,4 +1,5 @@ [ (table) (array) + (table_array_element) ] @fold diff --git a/queries/toml/locals.scm b/queries/toml/locals.scm index cd79101cf..d3dda77b4 100644 --- a/queries/toml/locals.scm +++ b/queries/toml/locals.scm @@ -1,2 +1,4 @@ -(table) @scope -(table_array_element) @scope +[ + (table) + (table_array_element) +] @scope |
