Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/jjconfig/injections.scm')
-rw-r--r--runtime/queries/jjconfig/injections.scm25
1 files changed, 0 insertions, 25 deletions
diff --git a/runtime/queries/jjconfig/injections.scm b/runtime/queries/jjconfig/injections.scm
deleted file mode 100644
index 4cc78fde..00000000
--- a/runtime/queries/jjconfig/injections.scm
+++ /dev/null
@@ -1,25 +0,0 @@
-((comment) @injection.content
- (#set! injection.language "comment"))
-
-(table
- (bare_key) @table-name (#any-of? @table-name "templates" "template-aliases")
- [(pair (_) ((string) @injection.content (#set! injection.language "jjtemplate"))) (comment)])
-
-(table
- (bare_key) @table-name (#any-of? @table-name "revsets" "revset-aliases")
- [(pair (_) ((string) @injection.content (#set! injection.language "jjrevset"))) (comment)])
-
-; Injections for aliases that contain inline scripts. (see `jj util exec --help`)
-; This pattern currently relies on the language having the same name as its
-; interpreter, which is often the case (sh, bash, python, fish, nu...)
-; It also assumes the interpreter accepts the inline script with the "-c" flag.
-(table
- (bare_key) @table-name (#eq? @table-name "aliases")
- (pair (_) (array .
- (string) @util (#eq? @util "\"util\"") . (string) @exec (#eq? @exec "\"exec\"") . (string) @dd (#eq? @dd "\"--\"") .
- (string) @injection.language .
- ; There are many possibilities to combine "-c" with other short flags, but by
- ; far the most common one should be the "-e" flag, which makes the script
- ; return early when an error occurs.
- (string) @dc (#any-of? @dc "\"-c\"" "\"-ce\"" "\"-ec\"") .
- (string) @injection.content)))