-
Notifications
You must be signed in to change notification settings - Fork 435
Open
Description
sql-formatter/src/lexer/Tokenizer.ts
Line 37 in 976f97d
| /(\/\* *sql-formatter-disable *\*\/[\s\S]*?(?:\/\* *sql-formatter-enable *\*\/|$))/uy, |
In MariaDB you can't use /* comment */ and need to use -- comment to disable formatting in mariadb sql files for queries, it would be handy to be able to use -- instead like so:
SELECT
-- sql-formatter-disable
sqlc.embed(users),
-- sql-formatter-enable
customers.id
FROM
customers
JOIN users ON users.customer_id = customers.idMy personal issue is the issue that this formatter adds a space after embed for my golang sqlc project (see #913)
--- sqlc.embed(users)
+++ sqlc.embed (users)Metadata
Metadata
Assignees
Labels
No labels