Skip to content

Commit

Permalink
Fix #2493: Allow spaces around division operator within PL/SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tercete committed Oct 23, 2019
1 parent 20758a4 commit 9d88603
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -364,7 +364,7 @@ protected void adjustDelimiter(ParserContext context, StatementType statementTyp
protected boolean isDelimiter(String peek, Delimiter delimiter) {
if (delimiter.isAloneOnLine()) {
return peek.startsWith(delimiter.getDelimiter())
&& (peek.length() == 1 || Character.isWhitespace(peek.charAt(1)));
&& (peek.length() == 1 || isNewline(peek.charAt(1)));
}


Expand All @@ -376,6 +376,10 @@ protected boolean isDelimiter(String peek, Delimiter delimiter) {
return super.isDelimiter(peek, delimiter);
}

private boolean isNewline(char c) {
return c == '\n' || c == '\r';
}




Expand Down

0 comments on commit 9d88603

Please sign in to comment.