Skip to content

Fix using escape chars#1312

Merged
jaapio merged 1 commit intomainfrom
escape-fixes
Feb 27, 2026
Merged

Fix using escape chars#1312
jaapio merged 1 commit intomainfrom
escape-fixes

Conversation

@jaapio
Copy link
Member

@jaapio jaapio commented Feb 26, 2026

The lexer did have too many different patterns which caused various issues in the interpretation of escape chars. With this patch we are better compatible with sphinx. The results are validated with sphinx 7.

The lexer now has a separate BACKSLASH char, which allows parsers and rules to handle them as they need. by skipping the \ in most rules we do never have conflicts and rules are not interpreting the char after the \.

The lexer did have too many different patterns which caused various issues in the interpretation of escape chars.
With this patch we are better compatible with sphinx. The results are validated with sphinx 7.

The lexer now has a separate BACKSLASH char, which allows parsers and rules to handle them as they need.
by skipping the `\` in most rules we do never have conflicts and rules are not interpreting the char after the `\`.
@jaapio jaapio enabled auto-merge February 27, 2026 16:00
@jaapio jaapio merged commit 5c51355 into main Feb 27, 2026
58 checks passed
@jaapio jaapio deleted the escape-fixes branch February 27, 2026 16:05
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.

1 participant