diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-10-27 06:59:25 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-10-27 06:59:25 -0500 |
commit | 6f139407384895317b552f5b83dc79756f084bd2 (patch) | |
tree | 6987e5723873446ed2e4c30d00d9b480cd831f05 /docs/HowToUsePyparsing.rst | |
parent | 280f71a9fdc8a7334551bcc1cb9d4485fa4f86e5 (diff) | |
download | pyparsing-git-pyparsing_3.0.2.tar.gz |
Update docs to reflect reverting LineStart and StringStart changes made in 3.0.0pyparsing_3.0.2
Diffstat (limited to 'docs/HowToUsePyparsing.rst')
-rw-r--r-- | docs/HowToUsePyparsing.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/HowToUsePyparsing.rst b/docs/HowToUsePyparsing.rst index 5c2b3e2..59f994c 100644 --- a/docs/HowToUsePyparsing.rst +++ b/docs/HowToUsePyparsing.rst @@ -1106,7 +1106,7 @@ Helper methods then pass ``None`` for this argument. -- ``IndentedBlock(statement_expr, recursive=True)`` - +- ``IndentedBlock(statement_expr, recursive=False, grouped=True)`` - function to define an indented block of statements, similar to indentation-based blocking in Python source code: @@ -1114,6 +1114,13 @@ Helper methods will be found in the indented block; a valid ``IndentedBlock`` must contain at least 1 matching ``statement_expr`` + - ``recursive`` - flag indicating whether the IndentedBlock can + itself contain nested sub-blocks of the same type of expression + (default=False) + + - ``grouped`` - flag indicating whether the tokens returned from + parsing the IndentedBlock should be grouped (default=True) + .. _originalTextFor: - ``original_text_for(expr)`` - helper function to preserve the originally parsed text, regardless of any |