Skip to content

Commit

Permalink
regenerate test + support sql query with direct newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Larcheveque committed Oct 30, 2019
1 parent ea12825 commit 5b6de1e
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 67 deletions.
10 changes: 8 additions & 2 deletions PowerBuilder-Parser-Core/PWBCommonGrammar.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ Class {
'sqlVariable',
'prepareSQL',
'destroyStatement',
'eventInvocation'
'eventInvocation',
'blanks'
],
#category : #'PowerBuilder-Parser-Core'
}
Expand Down Expand Up @@ -126,6 +127,11 @@ PWBCommonGrammar >> behaviouralOption [
^ behaviouralAlias / behaviouralLibrary
]

{ #category : #accessing }
PWBCommonGrammar >> blanks [
^ (#blank parser / #newline parser) plus
]

{ #category : #accessing }
PWBCommonGrammar >> case [
^ singleLineCase / multiLineCase
Expand Down Expand Up @@ -390,7 +396,7 @@ PWBCommonGrammar >> sqlCommitStatement [

{ #category : #accessing }
PWBCommonGrammar >> sqlQuery [
^ (self parserCaseInsensitiveFor: #('select' 'update' 'delete' 'insert' 'fetch')) , spaces
^ (self parserCaseInsensitiveFor: #('select' 'update' 'delete' 'insert' 'fetch')) , blanks
, (string / $; parser negate) plus , $; parser
]

Expand Down
Loading

0 comments on commit 5b6de1e

Please sign in to comment.