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

Xkeyval + round brackets in named argument -> error #3575

Open
tmczar opened this issue Jun 3, 2024 · 0 comments
Open

Xkeyval + round brackets in named argument -> error #3575

tmczar opened this issue Jun 3, 2024 · 0 comments
Labels
bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified.

Comments

@tmczar
Copy link
Contributor

tmczar commented Jun 3, 2024

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2024.1.1 (Community Edition)
Build #IC-241.15989.150, built on May 1, 2024

Operating System

Arch Linux

TeXiFy IDEA version

0.9.5

What I did (steps to reproduce)

Just use xkeyval package, and try to use named argument that has round braces inside curly ones. It will be reported as <parameter text>, LatexTokenType.&, LatexTokenType.*, LatexTokenType.CLOSE_BRACE, LatexTokenType.CLOSE_BRACKET, LatexTokenType.COMMA, LatexTokenType.COMMAND_TOKEN, LatexTokenType.EQUALS, LatexTokenType.EXCLAMATION_MARK, LatexTokenType.NORMAL_TEXT_WORD, LatexTokenType.OPEN_BRACE, LatexTokenType.OPEN_BRACKET, LatexTokenType.PIPE or LatexTokenType.QUOTATION_MARK expected, got '(' error, while it should not.

Minimal example to reproduce the problem

\documentclass{article}
\usepackage{xkeyval}
\begin{document}
\anycommand{
  test = {Some thext with (Round Brackets)}
}
\end{document}

Expected behavior

No errors - this is perfectly valid code. I have no idea whether xkeyval is "truly" supported, but it seems to normally work, so breaking like that is surprising.
Interesting note: if (Round Brackets) is surrounded by additional curly braces, to form: test = {Some thext with {(Round Brackets)}}, error goes away.

Actual behavior

image
image

(if applicable) The full stacktrace of the exception thrown


@tmczar tmczar added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified.
Projects
None yet
Development

No branches or pull requests

1 participant