Skip to content

Commit

Permalink
Add support for COMMENT keyword (#271)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Reynolds <[email protected]>
  • Loading branch information
joereynolds and Joe Reynolds authored Aug 15, 2024
1 parent f6339c6 commit b66546a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/syntax/keywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export enum Keyword {
Alter = "alter",
Begin = "begin",
Call = "call",
Comment = "comment",
Commit = "commit",
Create = "create",
Declare = "declare",
Expand Down
3 changes: 3 additions & 0 deletions test/test-files/bad-spaces.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT AVG(Price), Manufacturer
FROM Products
GROUP BY Manufacturer;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions test/test-files/postgres/comment.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COMMENT ON COLUMN user_id IS 'test comment';

0 comments on commit b66546a

Please sign in to comment.