mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +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