From c055899dc0739fb48541365dfffda852034438c2 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Tue, 6 Oct 2020 20:03:39 +0200 Subject: 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. --- queries/typescript/folds.scm | 2 ++ queries/typescript/highlights.scm | 1 + queries/typescript/locals.scm | 2 ++ 3 files changed, 5 insertions(+) (limited to 'queries/typescript') diff --git a/queries/typescript/folds.scm b/queries/typescript/folds.scm index f08395f3..448f4d12 100644 --- a/queries/typescript/folds.scm +++ b/queries/typescript/folds.scm @@ -1,3 +1,5 @@ +; inherits: javascript + [ (interface_declaration) (internal_module) diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index fa7db9d9..87272f98 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -1,3 +1,4 @@ +; inherits: javascript [ "abstract" "declare" diff --git a/queries/typescript/locals.scm b/queries/typescript/locals.scm index cb064b82..3e05f536 100644 --- a/queries/typescript/locals.scm +++ b/queries/typescript/locals.scm @@ -1,2 +1,4 @@ +; inherits: javascript + (required_parameter (identifier) @definition) (optional_parameter (identifier) @definition) -- cgit v1.2.3