Update dependency pyparsing to v3.0.2
This MR contains the following updates:
Package | Update | Change |
---|---|---|
pyparsing | patch |
==3.0.1 -> ==3.0.2
|
Release Notes
pyparsing/pyparsing
v3.0.2
-
Reverted change in behavior with
LineStart
andStringStart
, which changed the interpretation of when and howLineStart
andStringStart
should match when a line starts with spaces. In 3.0.0, thexxxStart
expressions were not really treated like expressions in their own right, but as modifiers to the following expression when used likeLineStart() + expr
, so that if there were whitespace on the line beforeexpr
(which would match in versions prior to 3.0.0), the match would fail.3.0.0 implemented this by automatically promoting
LineStart() + expr
toAtLineStart(expr)
, which broke existing parsers that did not expectexpr
to necessarily be right at the start of the line, but only be the first token found on the line. This was reported as a regression in Issue #317.In 3.0.2, pyparsing reverts to the previous behavior, but will retain the new
AtLineStart
andAtStringStart
expression classes, so that parsers can chose whichever behavior applies in their specific instance. Specifically:
matches expr if it is the first token on the line
(allows for leading whitespace)
LineStart() + expr
matches only if expr is found in column 1
AtLineStart(expr)
-
Performance enhancement to
one_of
to always generate an internalRegex
, even ifcaseless
oras_keyword
args are given asTrue
(unless explicitly disabled by passinguse_regex=False
). -
IndentedBlock
class now works withrecursive
flag. By default, the results parsed by anIndentedBlock
are grouped. This can be disabled by constructing theIndentedBlock
withgrouped=False
.
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.