aboutsummaryrefslogtreecommitdiffstats
path: root/queries/tsx
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-10-06 20:03:39 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-10-11 19:09:22 +0200
commitc055899dc0739fb48541365dfffda852034438c2 (patch)
tree0ce2d6fa0cb09551ca204ebb62e6a6a609ef08b2 /queries/tsx
parentUse utils get_node_text to get line content and trim all whitespaces. (diff)
downloadnvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar.gz
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar.bz2
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar.lz
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar.xz
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.tar.zst
nvim-treesitter-c055899dc0739fb48541365dfffda852034438c2.zip
feat(queries): modeline mechanism for base langs
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
Diffstat (limited to 'queries/tsx')
-rw-r--r--queries/tsx/folds.scm1
-rw-r--r--queries/tsx/highlights.scm1
-rw-r--r--queries/tsx/locals.scm1
3 files changed, 3 insertions, 0 deletions
diff --git a/queries/tsx/folds.scm b/queries/tsx/folds.scm
new file mode 100644
index 000000000..07391231c
--- /dev/null
+++ b/queries/tsx/folds.scm
@@ -0,0 +1 @@
+; inherits: typescript,jsx
diff --git a/queries/tsx/highlights.scm b/queries/tsx/highlights.scm
new file mode 100644
index 000000000..07391231c
--- /dev/null
+++ b/queries/tsx/highlights.scm
@@ -0,0 +1 @@
+; inherits: typescript,jsx
diff --git a/queries/tsx/locals.scm b/queries/tsx/locals.scm
new file mode 100644
index 000000000..07391231c
--- /dev/null
+++ b/queries/tsx/locals.scm
@@ -0,0 +1 @@
+; inherits: typescript,jsx