From 3b72d2e9682104723b132857eb4e7fd44bca7412 Mon Sep 17 00:00:00 2001 From: Julian Valentin Date: Thu, 5 Aug 2021 21:51:05 +0200 Subject: [PATCH] Don't ignore second argument of \setkomavar Fixes valentjn/vscode-ltex#373. --- changelog.xml | 3 +++ .../parsing/latex/LatexAnnotatedTextBuilderDefaults.kt | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changelog.xml b/changelog.xml index e8ec88d..d0034e9 100644 --- a/changelog.xml +++ b/changelog.xml @@ -28,6 +28,9 @@ Add support for `\counterwithin`, `\counterwithout`, and `\numberwithin` in LaTeX + + Don't ignore second argument of `\setkomavar` in LaTeX + Remove support for magic comments in XHTML diff --git a/src/main/kotlin/org/bsplines/ltexls/parsing/latex/LatexAnnotatedTextBuilderDefaults.kt b/src/main/kotlin/org/bsplines/ltexls/parsing/latex/LatexAnnotatedTextBuilderDefaults.kt index 29169cb..506c12f 100644 --- a/src/main/kotlin/org/bsplines/ltexls/parsing/latex/LatexAnnotatedTextBuilderDefaults.kt +++ b/src/main/kotlin/org/bsplines/ltexls/parsing/latex/LatexAnnotatedTextBuilderDefaults.kt @@ -660,10 +660,10 @@ object LatexAnnotatedTextBuilderDefaults { LatexCommandSignature("\\setglossarystyle{}"), LatexCommandSignature("\\setitemize{}"), LatexCommandSignature("\\setkomafont{}{}"), - LatexCommandSignature("\\setkomavar{}{}"), - LatexCommandSignature("\\setkomavar{}[]{}"), - LatexCommandSignature("\\setkomavar*{}{}"), - LatexCommandSignature("\\setkomavar*{}[]{}"), + LatexCommandSignature("\\setkomavar{}"), + LatexCommandSignature("\\setkomavar{}[]"), + LatexCommandSignature("\\setkomavar*{}"), + LatexCommandSignature("\\setkomavar*{}[]"), LatexCommandSignature("\\setlength{}{}"), LatexCommandSignature("\\setlist{}"), LatexCommandSignature("\\setlist[]{}"),