1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-19 00:18:09 +00:00
quot/app/syntax/quot.grammar
2022-09-17 16:38:41 +09:00

14 lines
344 B
Text

@top Document { heading line* }
heading { Heading? "\n" }
line { Indent* ((AutoLink | word) space*)* "\n" }
@tokens {
space { $[ \t] }
letter { ![ \t\n] }
word { letter+ }
Heading { (letter | space)+ }
Indent { space }
AutoLink { ("http" | "https") "://" word }
@precedence { AutoLink, word }
}