mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 21:18:49 +00:00
Add a human-readable error message for invalid char in step
This commit is contained in:
parent
cb8edd9b8f
commit
87f37e3d87
File diff suppressed because one or more lines are too long
@ -103,7 +103,8 @@ quote = '"' / "'"
|
|||||||
// ------------------ steps and cycles ---------------------------
|
// ------------------ steps and cycles ---------------------------
|
||||||
|
|
||||||
// single step definition (e.g bd)
|
// single step definition (e.g bd)
|
||||||
step_char = unicode_letter / [0-9~] / "-" / "#" / "." / "^" / "_"
|
step_char "a letter, a number, \"-\", \"#\", \".\", \"^\", \"_\"" =
|
||||||
|
unicode_letter / [0-9~] / "-" / "#" / "." / "^" / "_"
|
||||||
step = ws chars:step_char+ ws { return new AtomStub(chars.join("")) }
|
step = ws chars:step_char+ ws { return new AtomStub(chars.join("")) }
|
||||||
|
|
||||||
// define a sub cycle e.g. [1 2, 3 [4]]
|
// define a sub cycle e.g. [1 2, 3 [4]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user