Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change the parser to require a semicolon in function_body of 1 s… #216

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ module.exports = grammar({
$.keyword_as,
alias($._dollar_quoted_string_start_tag, $.dollar_quote),
$._function_body_statement,
optional(';'),
';',
alias($._dollar_quoted_string_end_tag, $.dollar_quote),
),
),
Expand Down
2 changes: 1 addition & 1 deletion test/corpus/functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Function details, specified after string body

create or replace function public.fn()
returns int
as $$select 1$$
as $$select 1;$$
language sql
volatile
parallel restricted
Expand Down