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

13 lines
308 B
Text

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