Skip to content

Commit

Permalink
add gemini language support (helix-editor#8070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sol Fisher Romanoff authored and mtoohey31 committed Jun 2, 2024
1 parent 05119af commit c701b38
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
| fortran || || `fortls` |
| fsharp || | | `fsautocomplete` |
| gdscript |||| |
| gemini || | | |
| git-attributes || | | |
| git-commit ||| | |
| git-config || | | |
Expand Down
10 changes: 10 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2794,3 +2794,13 @@ roots = []
[[grammar]]
name = "strace"
source = { git = "https://github.com/sigmaSd/tree-sitter-strace", rev = "a0f6c50ae4087a9299f055d0f30fe94fd98189a4" }

[[language]]
name = "gemini"
scope = "source.gmi"
file-types = ["gmi"]
roots = []

[[grammar]]
name = "gemini"
source = { git = "https://git.sr.ht/~sfr/tree-sitter-gemini", rev = "3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3" }
26 changes: 26 additions & 0 deletions runtime/queries/gemini/highlights.scm
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit c701b38

Please sign in to comment.