Skip to content

Allow balanced braces inside inline tag descriptions#455

Open
lacatoire wants to merge 2 commits intophpDocumentor:6.xfrom
lacatoire:fix/nested-braces-inline-tag
Open

Allow balanced braces inside inline tag descriptions#455
lacatoire wants to merge 2 commits intophpDocumentor:6.xfrom
lacatoire:fix/nested-braces-inline-tag

Conversation

@lacatoire
Copy link
Copy Markdown

The inline-tag tokenizer in DescriptionFactory::lex recognised nested inline tags and hanging {, but a bare balanced pair such as {braces} inside an inline tag body made the outer tag truncate at the first closing brace. The tokenizer now accepts a balanced {...} pair alongside the existing alternatives.

Fixes #255

The inline-tag tokenizer used in DescriptionFactory recognised nested inline tags and hanging '{', but not a bare balanced pair such as '{braces}' used as part of an inline tag body. Matching such a pair now preserves the surrounding inline tag instead of truncating it at the first closing brace.

Refs phpDocumentor#255
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.

Inline tag handling with nested braces is not working as expected

1 participant