Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong matching of \fi to \iffalse #166

Open
jdujava opened this issue Sep 9, 2024 · 0 comments
Open

Wrong matching of \fi to \iffalse #166

jdujava opened this issue Sep 9, 2024 · 0 comments

Comments

@jdujava
Copy link
Contributor

jdujava commented Sep 9, 2024

Consider following file

\iffalse
    \iftrue
        test test
    \fi
    test test
\fi

with corresponding tree

(source_file ; [0, 0] - [6, 0]
  (block_comment ; [0, 0] - [3, 7]
    comment: (comment)) ; [0, 8] - [3, 4]
  (text ; [4, 4] - [5, 3]
    word: (word) ; [4, 4] - [4, 8]
    word: (word) ; [4, 9] - [4, 13]
    word: (generic_command ; [5, 0] - [5, 3]
      command: (command_name)))) ; [5, 0] - [5, 3]

The \iffalse is wrongly matched with the first \fi, resulting in a too early exit from (block_comment) node.

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

No branches or pull requests

1 participant