jlelong / vscode-latex-basics

LaTeX grammars for Visual Studio Code
MIT License
19 stars 10 forks source link

Syntax issue in usepackage with linebreaks #36

Closed jlelong closed 1 year ago

jlelong commented 2 years ago

Originally posted by @fathi0amir in James-Yu/LaTeX-Workshop#3446

The syntax highlighting changes when there is line break. e.g. you use "\usepackage" command without line break the color is purple same as the "\documentclass" command (in my theme). But if you go to new line to continue the options for a package, the "\usepackage" command changes color to yellow (same color as "\begin" command). Of course this is not a big issue but it will nice if its consistent with all the command calls without the line break. I will include a screenshot as well.

Steps to reproduce the behavior: \usepackage[perpage, para, symbol]{footmisc}

\usepackage[ backend=biber, style=nature]{biblatex}

compare the syntax highlighting of the above inputs.

image