From 6efeb74e85e3b10a84c83e6af6efab98bc2c751b Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 3 Jan 2024 14:32:45 -0600 Subject: [PATCH] Update queries to match tree-sitter default paths --- package.json | 10 ++-------- queries/{just => }/folds.scm | 0 queries/{just => }/highlights.scm | 0 queries/{just => }/injections.scm | 0 queries/{just => }/locals.scm | 0 queries/{just => }/textobjects.scm | 0 6 files changed, 2 insertions(+), 8 deletions(-) rename queries/{just => }/folds.scm (100%) rename queries/{just => }/highlights.scm (100%) rename queries/{just => }/injections.scm (100%) rename queries/{just => }/locals.scm (100%) rename queries/{just => }/textobjects.scm (100%) diff --git a/package.json b/package.json index 420eac4..941cbe3 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ }, "tree-sitter": [ { + "scope": "source.just", "file-types": [ "just", ".just", @@ -38,15 +39,8 @@ ".JUSTFILE", ".Justfile" ], - "highlights": [ - "queries/highlights.scm" - ], - "first-line-regex": "#!\\S*bin\\S*[/ ]just", "injection-regex": "^(?i)just(file)?$", - "locals": [ - "queries/locals.scm" - ], - "scope": "source.just" + "first-line-regex": "#!\\S*bin\\S*[/ ]just" } ] } diff --git a/queries/just/folds.scm b/queries/folds.scm similarity index 100% rename from queries/just/folds.scm rename to queries/folds.scm diff --git a/queries/just/highlights.scm b/queries/highlights.scm similarity index 100% rename from queries/just/highlights.scm rename to queries/highlights.scm diff --git a/queries/just/injections.scm b/queries/injections.scm similarity index 100% rename from queries/just/injections.scm rename to queries/injections.scm diff --git a/queries/just/locals.scm b/queries/locals.scm similarity index 100% rename from queries/just/locals.scm rename to queries/locals.scm diff --git a/queries/just/textobjects.scm b/queries/textobjects.scm similarity index 100% rename from queries/just/textobjects.scm rename to queries/textobjects.scm