Skip to content

Commit

Permalink
Improve Batch iterator variable recognizing
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenjoiner committed Jun 30, 2021
1 parent b9ea8dc commit 2d2fe4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scintilla/lexers/LexBatch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ void ColouriseBatchDoc(Sci_PositionU startPos, Sci_Position length, int initStyl
}
} else if (sc.ch == '^' || sc.ch == '%' || sc.ch == '!') {
const bool begin = logicalVisibleChars == sc.LengthCurrent();
const bool handled = (sc.ch == '^') ? DetectBatchVariable(sc, outerStyle, varQuoteChar, parenCount)
: DetectBatchEscapeChar(sc, outerStyle, command);
const bool handled = (sc.ch == '^') ? DetectBatchEscapeChar(sc, outerStyle, command)
: DetectBatchVariable(sc, outerStyle, varQuoteChar, parenCount);
if (handled) {
if (begin && command == Command::None) {
command = Command::Argument;
Expand Down

0 comments on commit 2d2fe4c

Please # to comment.