Skip to content

Commit

Permalink
fix: Whitespace contains EOL in Json lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuliquan committed Apr 15, 2024
1 parent 5f7aef9 commit acff598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/json/main.go
Expand Up @@ -20,7 +20,7 @@ var (
{Name: "True", Pattern: "true"},
{Name: "False", Pattern: "false"},
{Name: "EOL", Pattern: `[\n\r]+`},
{Name: "Whitespace", Pattern: `[ \t\n\r]+`},
{Name: "Whitespace", Pattern: `[ \t]+`},
})

jsonParser = participle.MustBuild[Json](
Expand Down

0 comments on commit acff598

Please sign in to comment.