Skip to content

fix(org): leftover object-lex steals src_ after word-underscore - #416

Closed
HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-xbrk-lex
Closed

HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-xbrk-lex

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

org-element 9.7.11 org-element--object-lex matches [_^] before src_.
foo_src_python{print(1. 2)} is two bare subscripts (_src + _python).
Leftover {print(1. 2)} is prose, so wrap 20 may cut on 1. 2.
Next sentence. still splits. foo_call_name(1. 2) is the same leftover.
H_{2. 0} is unchanged. After space, _src_python{...} and
foo-src_python{...} stay objects.

GitHub #408.

org-element--object-lex matches [_^] first, so foo_src_python{print(1. 2)}
is two bare subscripts. Leftover braces stay prose and wrap 20 may cut
on 1. 2. Next sentence. still splits. foo_call_name(1. 2) is the same
leftover. H_{2. 0} is unchanged. After space, _src_python and
foo-src_python stay objects.

GitHub #408.
@HaoZeke

HaoZeke commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #482. Same leftover was re-landed on leftover/sota-native-parsers and squash-merged. Not a second release queue.

@HaoZeke HaoZeke closed this Sep 15, 2026
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