Skip to content

Make recursive cache grammar raw#1595

Draft
Mirochill wants to merge 1 commit into
lark-parser:masterfrom
Mirochill:fix-1564-raw-recursive-cache-grammar
Draft

Make recursive cache grammar raw#1595
Mirochill wants to merge 1 commit into
lark-parser:masterfrom
Mirochill:fix-1564-raw-recursive-cache-grammar

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

Mark the recursive-pattern grammar in tests/test_cache.py as a raw triple-quoted string.

Python 3.14 warns about the \w and \d escapes in that test grammar before Lark sees the text. The grammar itself is intended to pass those backslashes through to Lark, so using a raw string removes the warning without changing the grammar content.

Fixes #1564.

Validation

Local tests were not run because my collaboration workspace policy forbids running third-party project tests, builds, linters, installers, or dev servers on this machine.

Static validation run:

  • git diff --check HEAD~1..HEAD

I opened this as a draft so the repository's GitHub Actions matrix can provide remote validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"\w" is an invalid escape sequence

1 participant