Parse semicolons inside BEGIN/END block without ending statement #10

Closed
sfc-gh-nchen wants to merge 1 commit from upstream-main into main
sfc-gh-nchen commented 2022-11-09 21:04:15 +01:00 (Migrated from github.com)

Right now, semicolons indicate the end of statement. If there is a BEGIN/END block with a semicolon, the outer statement is prematurely ended inside of the block.

Right now, semicolons indicate the end of statement. If there is a BEGIN/END block with a semicolon, the outer statement is prematurely ended inside of the block.
marijnh commented 2022-11-10 10:12:55 +01:00 (Migrated from github.com)

I don't think this is a very promising way to solve this—it doesn't produce a meaningful syntactic structure for the content of the begin/end block, doesn't handle indentation, and doesn't cover similar constructs like if and loop. What kind of construct are you using the begin/end notation in?

I don't think this is a very promising way to solve this—it doesn't produce a meaningful syntactic structure for the content of the begin/end block, doesn't handle indentation, and doesn't cover similar constructs like `if` and `loop`. What kind of construct are you using the `begin`/`end` notation in?
sfc-gh-nchen commented 2022-11-15 20:05:47 +01:00 (Migrated from github.com)

Closing since this varies so much between dialects

Closing since this varies so much between dialects

Pull request closed

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!10
No description provided.