Skip to content

fix(opy): support continued preprocessing directives - #148

Merged
Teakowa merged 1 commit into
mainfrom
codex/issue-141-lexical-surface
Aug 31, 2026
Merged

fix(opy): support continued preprocessing directives#148
Teakowa merged 1 commit into
mainfrom
codex/issue-141-lexical-surface

Conversation

@e54-bot

@e54-bot e54-bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep backslash-newline continuations inside #! directives as one directive body.
  • Preserve the existing cross-line span tracking and add lexer regression coverage.
  • Update the real-world corpus expectations to the next preprocessing boundary after the lexical gap is cleared.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test --workspace --all-targets --all-features
  • python3 -m unittest discover -s compatibility/tests
  • Full native compatibility corpus: 61 fixtures passed

Fixes #141

@Teakowa Teakowa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Teakowa
Teakowa merged commit 4567711 into main Aug 31, 2026
5 checks passed
@Teakowa
Teakowa deleted the codex/issue-141-lexical-surface branch August 31, 2026 16:04
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.

Complete the OverPy lexical and grammar surface

2 participants