Fix -- line comments for MariaSQL / MySQL #8

Merged
neon-dev merged 1 commit from patch-2 into main 2022-08-23 15:39:39 +02:00
neon-dev commented 2022-08-23 15:37:38 +02:00 (Migrated from github.com)

The required space after two dashes was checked at the wrong index.

The required space after two dashes was checked at the wrong index.
FreeWall commented 2022-10-17 18:02:01 +02:00 (Migrated from github.com)

@neon-dev
I think SQL comments with double dashes are still problematic, it detect comments only with double spaces after double dashes for me.
I'm using lang-sql v6.3.0, dialect MySQL.

select * from table; -- not parsed as comment
select * from table; --  parsed as comment

screenshot from codemirror:
image

@neon-dev I think SQL comments with double dashes are still problematic, it detect comments only with double spaces after double dashes for me. I'm using lang-sql v6.3.0, dialect MySQL. ```sql select * from table; -- not parsed as comment select * from table; -- parsed as comment ``` screenshot from codemirror: ![image](https://user-images.githubusercontent.com/12121074/196226516-6418beea-f3d9-46dd-9e5d-3402b11fd1fc.png)
neon-dev commented 2022-10-17 18:04:55 +02:00 (Migrated from github.com)

@FreeWall this fix has not been released yet.

@FreeWall this fix has not been released yet.
marijnh commented 2022-10-17 18:32:15 +02:00 (Migrated from github.com)

My bad. Released 6.3.1

My bad. Released 6.3.1
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-sql!8
No description provided.