add gemini language support (#8070)
commitaeaeb09f486c2bc7f8c563bceece03a0954576b9
authorSol Fisher Romanoff <sol@solfisher.com>
dateSun 27 Aug 2023, 01:43 (3 years ago)
parentc9694f6
book/src/generated/lang-support.md+1
@@ -45,6 +45,7 @@
4545| fortran | ✓ | | ✓ | `fortls` |
4646| fsharp | ✓ | | | `fsautocomplete` |
4747| gdscript | ✓ | ✓ | ✓ | |
48+| gemini | ✓ | | | |
4849| git-attributes | ✓ | | | |
4950| git-commit | ✓ | ✓ | | |
5051| git-config | ✓ | | | |
languages.toml+10
@@ -2794,3 +2794,13 @@ roots = []
27942794[[grammar]]
27952795name = "strace"
27962796source = { git = "https://github.com/sigmaSd/tree-sitter-strace", rev = "a0f6c50ae4087a9299f055d0f30fe94fd98189a4" }
2797+
2798+[[language]]
2799+name = "gemini"
2800+scope = "source.gmi"
2801+file-types = ["gmi"]
2802+roots = []
2803+
2804+[[grammar]]
2805+name = "gemini"
2806+source = { git = "https://git.sr.ht/~sfr/tree-sitter-gemini", rev = "3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3" }
runtime/queries/gemini/highlights.scmnew file+26
@@ -0,0 +1,26 @@
1+(link) @punctuation.bracket
2+(link
3+ label: (text) @markup.link.label)
4+(link
5+ uri: (uri) @markup.link.url)
6+
7+[
8+ (start_pre)
9+ (pre)
10+ (end_pre)
11+] @markup.raw.block
12+(start_pre
13+ alt: (text) @label)
14+
15+(heading1
16+ (text) @markup.heading.1) @markup.heading.marker
17+(heading2
18+ (text) @markup.heading.2) @markup.heading.marker
19+(heading3
20+ (text) @markup.heading.3) @markup.heading.marker
21+
22+(ulist
23+ (indicator) @markup.list.unnumbered)
24+(quote
25+ (indicator) @markup.quote
26+ (text) @markup.italic)