mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #1219: accept any whitespace after double-minus comment in MySQL/MariaDB mode
This commit is contained in:
@@ -1641,7 +1641,7 @@ end;
|
||||
procedure TSynSQLSyn.MinusProc;
|
||||
begin
|
||||
Inc(Run);
|
||||
if (FLine[Run] = '-') and ((FDialect <> sqlMySQL) or (FLine[Run+1] = ' ')) then
|
||||
if (FLine[Run] = '-') and ((FDialect <> sqlMySQL) or IsWhiteChar(FLine[Run+1])) then
|
||||
begin
|
||||
FTokenID := tkComment;
|
||||
repeat
|
||||
|
||||
Reference in New Issue
Block a user