Skip to content

Commit

Permalink
fix: add getLocationObject function in redshift
Browse files Browse the repository at this point in the history
  • Loading branch information
taozhi8833998 committed May 13, 2024
1 parent 53b2c99 commit 902326c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pegjs/redshift.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
'PERSIST_ONLY': true,
};

function getLocationObject() {
return options.includeLocations ? {loc: location()} : {}
}

function createUnaryExpr(op, e) {
return {
type: 'unary_expr',
Expand Down

0 comments on commit 902326c

Please sign in to comment.