Skip to content

Commit 4eaf3e7

Browse files
committed
Fix example grammar to allow leading spaces so that it parses the example text
1 parent ccb9abb commit 4eaf3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/regexes.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ L<grammars|/language/grammars>:
13631363
13641364
grammar IniFormat {
13651365
token ws { <!ww> \h* }
1366-
rule header { '[' (\w+) ']' \n+ }
1366+
rule header { \s* '[' (\w+) ']' \n+ }
13671367
token identifier { \w+ }
13681368
rule kvpair { \s* <key=identifier> '=' <value=identifier> \n+ }
13691369
token section {

0 commit comments

Comments
 (0)