aboutsummaryrefslogtreecommitdiffstats
path: root/queries/toml
diff options
context:
space:
mode:
authorBrian Shu <littlebubu.shu@gmail.com>2021-01-09 10:27:27 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-12 07:21:11 +0100
commit39968ca258c89b796fc9ce5f3643ca8781150dd8 (patch)
treee8477cd1f5fbfe104bc5f4c6c06cf989a86710f4 /queries/toml
parentC++ highlights: Fix destructor highlighting (diff)
downloadnvim-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
Diffstat (limited to 'queries/toml')
-rw-r--r--queries/toml/folds.scm1
-rw-r--r--queries/toml/locals.scm6
2 files changed, 5 insertions, 2 deletions
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