]> git.lizzy.rs Git - micro.git/commitdiff
Add Gemini syntax file (#2016)
authorNikolay Korotkiy <sikmir@gmail.com>
Thu, 18 Feb 2021 03:27:56 +0000 (06:27 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 03:27:56 +0000 (22:27 -0500)
runtime/syntax/gemini.yaml [new file with mode: 0644]

diff --git a/runtime/syntax/gemini.yaml b/runtime/syntax/gemini.yaml
new file mode 100644 (file)
index 0000000..b3ea7bf
--- /dev/null
@@ -0,0 +1,19 @@
+filetype: gemini
+
+detect:
+    filename: "\\.(gmi|gemini)$"
+
+rules:
+      # link lines
+    - constant: "^=>[[:space:]].*"
+      # preformatted text lines
+    - special:
+        start: "^```"
+        end: "^```"
+        rules: []
+      # heading lines
+    - special:  "^#{1,3}.*"
+      # unordered list items
+    - identifier: "^\\*[[:space:]]"
+      # quote lines
+    - statement:  "^>.*"