Skip to content

Commit

Permalink
Merge pull request lalrpop#636 from skius/patch-1
Browse files Browse the repository at this point in the history
Fix /* */ multiline comment lexer example
  • Loading branch information
Marwes authored Nov 22, 2021
2 parents 1c6df7e + ebef162 commit 20832c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/lexer_tutorial/001_lexer_gen.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ To this end `ignore patterns` can be specified.
match {
r"\s*" => { }, // The default whitespace skipping is disabled an `ignore pattern` is specified
r"//[^\n\r]*[\n\r]*" => { }, // Skip `// comments`
r"/\*([^\*]*\*+[^\*/])*([^\*]*\*+|[^\*])*\*/" => { }, // Skip `/* comments */`
r"/\*[^*]*\*+(?:[^/*][^*]*\*+)*/" => { }, // Skip `/* comments */`
}
```

Expand Down

0 comments on commit 20832c3

Please sign in to comment.