Skip to content

Commit

Permalink
Fix parser comment issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
malashin committed Aug 3, 2022
1 parent 368d40e commit d1612cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var pdxRule = `
scope = '{' (scopeBody|@empty) ('}'|empty);
scopeBody = (@declr|@declrScope|@comparison|@list){@declr|@declrScope|@comparison|@list};
comment = '#'#anyRune#{#!\x0a#!\x0d#!$#anyRune};
comment = '#'#{#!\x0a#!\x0d#!$#anyRune};
int = ['-']digit#{#digit};
float = ['-'][int]#'.'#int;
Expand Down Expand Up @@ -56,7 +56,7 @@ var ymlRule = `
entry = @language#':' {@pair};
pair = @key ':' [@number] @value [@comment];
comment = '#'#anyRune#{#!\x0a#!\x0d#!$#anyRune};
comment = '#'#{#!\x0a#!\x0d#!$#anyRune};
language = 'l_'#symbol#{#symbol};
key = symbol#{#symbol};
Expand Down

0 comments on commit d1612cf

Please sign in to comment.