Skip to content

Commit

Permalink
Revert "LexBatch: quotes are general text for ECHO and TITLE"
Browse files Browse the repository at this point in the history
This reverts commit b9ea8dc.


Single quote is general text; paired are "escaped" text.
Examples:
echo ": %%"
Vs
echo for /f "tokens=3,6,7 delims=<> " %%%%1 in ('findstr /r "abc" ip.txt') do
  • Loading branch information
lifenjoiner committed Jun 30, 2021
1 parent 2d2fe4c commit efe331b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scintilla/lexers/LexBatch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,7 @@ void ColouriseBatchDoc(Sci_PositionU startPos, Sci_Position length, int initStyl
if (logicalVisibleChars == 0 && command == Command::None) {
command = Command::Argument;
}
if (command != Command::Echo) {
sc.SetState(SCE_BAT_STRINGDQ);
}
sc.SetState(SCE_BAT_STRINGDQ);
} else if ((sc.ch == '\'' || sc.ch == '`') && (chPrevNonWhite == '(' && stylePrevNonWhite == SCE_BAT_OPERATOR)) {
parenBefore = parenCount;
sc.SetState((sc.ch == '\'') ? SCE_BAT_STRINGSQ : SCE_BAT_STRINGBT);
Expand Down

0 comments on commit efe331b

Please # to comment.