Skip to content

Avoid matching \iff in syntax highlighting comment matching #2748

@user202729

Description

@user202729

Basically currently if there's some \iffalse ... \fi it will highlight the block as a comment, but \iffalse $ a \iff b $ \fi more content will also highlight more content as comment because it thought \iff needs to be matched.

Remark: generally TeX is not deterministically parsable anyway, but \iff is a very common case. Looking around, some less common ones are \ifcurrfiledir etc. (currfile package) or ifnot@nil (macros2e) .

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions