diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-10-06 20:03:39 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-10-11 19:09:22 +0200 |
| commit | c055899dc0739fb48541365dfffda852034438c2 (patch) | |
| tree | 0ce2d6fa0cb09551ca204ebb62e6a6a609ef08b2 /queries/typescript | |
| parent | 9ad47c65bd0b939173803c8a23c9cf0dc6cff70f (diff) | |
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/typescript')
| -rw-r--r-- | queries/typescript/folds.scm | 2 | ||||
| -rw-r--r-- | queries/typescript/highlights.scm | 1 | ||||
| -rw-r--r-- | queries/typescript/locals.scm | 2 |
3 files changed, 5 insertions, 0 deletions
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) |
