aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/gemini
diff options
context:
space:
mode:
authorSol Fisher Romanoff2023-08-26 22:43:18 +0000
committerGitHub2023-08-26 22:43:18 +0000
commitaeaeb09f486c2bc7f8c563bceece03a0954576b9 (patch)
tree2d6ea594f518e593389dd95a3bf952c4b653c90a /runtime/queries/gemini
parentc9694f680f97823ac9b893239a78bf45bfee0403 (diff)
add gemini language support (#8070)
Diffstat (limited to 'runtime/queries/gemini')
-rw-r--r--runtime/queries/gemini/highlights.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime/queries/gemini/highlights.scm b/runtime/queries/gemini/highlights.scm
new file mode 100644
index 00000000..f98c8532
--- /dev/null
+++ b/runtime/queries/gemini/highlights.scm
@@ -0,0 +1,26 @@
+(link) @punctuation.bracket
+(link
+ label: (text) @markup.link.label)
+(link
+ uri: (uri) @markup.link.url)
+
+[
+ (start_pre)
+ (pre)
+ (end_pre)
+] @markup.raw.block
+(start_pre
+ alt: (text) @label)
+
+(heading1
+ (text) @markup.heading.1) @markup.heading.marker
+(heading2
+ (text) @markup.heading.2) @markup.heading.marker
+(heading3
+ (text) @markup.heading.3) @markup.heading.marker
+
+(ulist
+ (indicator) @markup.list.unnumbered)
+(quote
+ (indicator) @markup.quote
+ (text) @markup.italic)