You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
251 B
Plaintext
18 lines
251 B
Plaintext
4 years ago
|
import { Newline } from "../peg-newline"
|
||
|
|
||
|
SameLine
|
||
|
= whitespace:$(" " / "\t")+ {
|
||
|
return whitespace;
|
||
|
}
|
||
|
|
||
|
AcrossLines
|
||
|
= whitespace:$(SameLine / Newline)+ {
|
||
|
return whitespace;
|
||
|
}
|
||
|
|
||
|
SameLineOptional
|
||
|
= SameLine?
|
||
|
|
||
|
AcrossLinesOptional
|
||
|
= AcrossLines?
|