diff options
| author | 2020-09-06 11:27:16 -0400 | |
|---|---|---|
| committer | 2020-09-06 11:27:16 -0400 | |
| commit | ac3587b1e6581296b4e2cbd0a93964685a286cdb (patch) | |
| tree | 4483b7819cb2651ff31a7c15e1d376c12e049872 /dot_config/micro | |
| parent | add gemini syntax highlighting (diff) | |
micro: add gemini highlighting
Diffstat (limited to '')
| -rw-r--r-- | dot_config/micro/.keep | 0 | ||||
| -rw-r--r-- | dot_config/micro/syntax/.keep | 0 | ||||
| -rw-r--r-- | dot_config/micro/syntax/gemini.yaml | 23 |
3 files changed, 23 insertions, 0 deletions
diff --git a/dot_config/micro/.keep b/dot_config/micro/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/dot_config/micro/.keep diff --git a/dot_config/micro/syntax/.keep b/dot_config/micro/syntax/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/dot_config/micro/syntax/.keep diff --git a/dot_config/micro/syntax/gemini.yaml b/dot_config/micro/syntax/gemini.yaml new file mode 100644 index 0000000..40ba789 --- /dev/null +++ b/dot_config/micro/syntax/gemini.yaml @@ -0,0 +1,23 @@ +filetype: gemini + +detect: + filename: "(\\.gmi$|\\.gemini$)" + +rules: + # links + - constant: "^=>" + + # preformatted toggles/lines + - special: + start: "^```" + end: "^```" + rules: [] + + # headings + - special: "^#{1,3}.*$" + + # unordered lists + - identifier: "^\\* " + + # quotes + - statement: "^>.*$" |
