Skip to content

Commit 1b7a2dd

Browse files
committed
significant whitespace -> significant indentation
1 parent 20494d2 commit 1b7a2dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/recipes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ def parse_with_progress(parser: Lark, text: str, start=None):
196196
Keep in mind that this implementation relies on the `InteractiveParser` and, therefore, only works with the `LALR(1)` parser, and not `Earley`.
197197

198198

199-
## Parsing a Language with Significant Whitespace
199+
## Parsing a Language with Significant Indentation
200200

201-
If your grammar needs to support significant whitespace, you will need to use the `Indenter` class.
202-
Take a look at the [indented tree example][indent] as well as the [Python grammar][python] for
203-
inspiration.
201+
If your grammar needs to support significant indentation (e.g. Python, YAML), you will need to use
202+
the `Indenter` class. Take a look at the [indented tree example][indent] as well as the
203+
[Python grammar][python] for inspiration.
204204

205205
[indent]: examples/indented_tree.html
206206
[python]: https://github.com/lark-parser/lark/blob/master/lark/grammars/python.lark

0 commit comments

Comments
 (0)