Skip to content

✨ Support parenthesis-delimited blocks (@article(...)) - #620

Merged
MiWeiss merged 2 commits into
mainfrom
feat/parenthesis-delimited-blocks
Sep 4, 2026
Merged

✨ Support parenthesis-delimited blocks (@article(...))#620
MiWeiss merged 2 commits into
mainfrom
feat/parenthesis-delimited-blocks

Conversation

@MiWeiss

@MiWeiss MiWeiss commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Standard BibTeX allows ( ) as block delimiters, but the splitter only recognised {, so such blocks were silently swallowed as implicit comments:

Splitter('@article(test2002, author = {A}, year = {2002})').split()
# -> 0 entries, 1 ImplicitComment

@type(...) now parses like @type{...} for entries, @string, @preamble and @comment. Brace-delimited input is parsed exactly as before, with no measurable slowdown.

Tests: new tests/splitter_tests/test_splitter_parenthesis_blocks.py; full suite green.

Supersedes #618. Fixes #533.

🤖 Generated with Claude Code

MiWeiss and others added 2 commits September 4, 2026 07:19
Standard BibTeX allows `(...)` as block delimiters, but the splitter only
recognised `{...}`, so such blocks were silently swallowed as implicit
comments (#533). They now parse like brace-delimited blocks for entries,
`@string`, `@preamble` and `@comment`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@MiWeiss
MiWeiss merged commit 8d1bb66 into main Sep 4, 2026
18 checks passed
@MiWeiss
MiWeiss deleted the feat/parenthesis-delimited-blocks branch September 4, 2026 07:59
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.

Parenthesis-delimited blocks (@article(...)) are silently parsed as implicit comments

1 participant