Unnamed repository; edit this file 'description' to name the repository.
queries: update highlights/injections for jjconfig (#14308)
Bryce Berger 6 months ago
parent 8ab2072 · commit a5bf7c0
-rw-r--r--runtime/queries/jjconfig/injections.scm4
-rw-r--r--runtime/queries/jjtemplate/highlights.scm2
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/queries/jjconfig/injections.scm b/runtime/queries/jjconfig/injections.scm
index 7add1613..c553c3b4 100644
--- a/runtime/queries/jjconfig/injections.scm
+++ b/runtime/queries/jjconfig/injections.scm
@@ -3,8 +3,8 @@
(table
(bare_key) @table-name (#any-of? @table-name "templates" "template-aliases")
- [(pair (_) ((string) @injection.content (#set! injection.language "jjtemplate"))) (comment)]*)
+ [(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)]*)
+ [(pair (_) ((string) @injection.content (#set! injection.language "jjrevset"))) (comment)])
diff --git a/runtime/queries/jjtemplate/highlights.scm b/runtime/queries/jjtemplate/highlights.scm
index cb75a7f9..29ed75e6 100644
--- a/runtime/queries/jjtemplate/highlights.scm
+++ b/runtime/queries/jjtemplate/highlights.scm
@@ -12,3 +12,5 @@
[(infix_ops) "++"] @operator
[(string_literal) (raw_string_literal)] @string
+
+(integer_literal) @constant.numeric.integer