Skip to content

Commit 500e3e2

Browse files
committed
ignore two letter commands for reinterpretation
1 parent 576d911 commit 500e3e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/latexdocument.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ void LatexDocument::interpretCommandArguments(QDocumentLineHandle *dlh, const in
620620
// work on general commands
621621
if (tk.type != Token::command && tk.type != Token::commandUnknown)
622622
continue; // not a command
623-
if(tk.type == Token::commandUnknown && tk.length>1){
624-
// work around '\ ' command
623+
if(tk.type == Token::commandUnknown && tk.length>2){
624+
// ignore all 2 letter commands like '\ ',\\,\& etc.
625625
parsingComplete=false; // most likely not all commands parsed
626626
}
627627
Token tkCmd;

0 commit comments

Comments
 (0)