34 lines
780 B
YAML
34 lines
780 B
YAML
# by lettuce 2022, cc0
|
|
# gemini://gemini.ctrl-c.club/~lettuce
|
|
# syntax info: http://www.sublimetext.com/docs/3/syntax.html
|
|
name: Gemtext
|
|
file_extensions: [gmi]
|
|
scope: source.txt
|
|
contexts:
|
|
main:
|
|
# Line starting with #*
|
|
- match: '^\#.*'
|
|
push:
|
|
- meta_scope: meta.separator
|
|
- match: '$\n?'
|
|
pop: true
|
|
|
|
# Line starting with *
|
|
- match: '^\*.*'
|
|
push:
|
|
- meta_scope: meta.separator
|
|
- match: '$\n?'
|
|
pop: true
|
|
# Line starting with =>
|
|
- match: '^\=\>.*'
|
|
push:
|
|
- meta_scope: meta.separator
|
|
- match: '$\n?'
|
|
pop: true
|
|
# Line starting with a number
|
|
- match: '^[1-9_]+\b.*'
|
|
push:
|
|
- meta_scope: markup.heading
|
|
- match: '$\n?'
|
|
pop: true
|