From 27596798d65a2bd68755f25a97067b02e306db53 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 6 Jul 2023 23:45:49 +0000 Subject: [PATCH] enable minimal syntax highlighting --- package.json | 3 ++- queries/highlights.scm | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 queries/highlights.scm diff --git a/package.json b/package.json index 259dfeb..57c8b59 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "first-line-regex": "^#!.*\\bnix-shell\\b.*$", "content-regex": "^\b$nix-shell wraps other languages so intentionally fail against (and yield to) those other language matches", "injection-regex": "^(nix[-_]?shell)$", - "scope": "source.nix_shell" + "scope": "source.nix_shell", + "highlights": [ "queries/highlights.scm" ] } ] } diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..118d38e --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1 @@ +(nix_shell_directive) @keyword