Skip to content

Lexer: Preserve paired quoted parameters. - #8

Merged
JJJ merged 1 commit into
masterfrom
jjj/nbbc-quoted-parameter-pairs
Nov 18, 2026
Merged

JJJ merged 1 commit into
masterfrom
jjj/nbbc-quoted-parameter-pairs

Conversation

@JJJ

@JJJ JJJ commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Consume a quoted value after a quoted parameter name as one complete tag token. Closing tag markers inside both quoted fields now remain part of the parameter, including when spaces surround the equals sign.

Regenerate nbbc.php and add regressions for single and double quotes in both builds.

Validation

  • sh tests/run.sh
  • composer analyse

Consume a quoted value after a quoted parameter name as one complete tag token. This keeps closing tag markers inside both quoted fields from splitting the token and preserves converter output.

Add regression coverage for single and double quotes in the source and generated builds.
Copilot AI balanced review requested due to automatic review settings November 18, 2026 23:10
@JJJ
JJJ merged commit a871f84 into master Nov 18, 2026
17 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The review reports no active issues with the quoted-parameter tokenization fix.

No open issues 🎉

What changed in this PR

Fixes BBCode tag tokenization so quoted parameter names and values remain one complete tag token, preserving embedded closing brackets.

Changes:

  • Handles paired quoted fields with optional spaces around =.
  • Regenerates the bundled build with the lexer fix.
  • Adds single- and double-quote regressions covering tokenization, decoding, and parsing.
File Description
tests/​review_regressions.php Adds regression cases for quoted names and values containing brackets.
src/​nbbc_lex.php Extends token matching to consume paired quoted fields.
nbbc.php Synchronizes the bundled lexer with the source change.

Review effort: Balanced

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.

2 participants