Skip to content

Commit

Permalink
Merge pull request #1245 from vincent-hugot/doc_comments
Browse files Browse the repository at this point in the history
[M:grammar.md] doc: added Python-style comments.
  • Loading branch information
erezsh authored Jan 31, 2023
2 parents 223af36 + 30b6982 commit c9b697e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ Lark grammars are composed of a list of definitions and directives, each on its
```


**Comments** start with `//` and last to the end of the line (C++ style)
**Comments** start with
either `//` (C++ style) or `#` (Python style, since version 1.1.6)
and last to the end of the line.

Lark begins the parse with the rule 'start', unless specified otherwise in the options.

Expand Down

0 comments on commit c9b697e

Please sign in to comment.