Skip to content

Commit

Permalink
Merge pull request #1904 from taozhi8833998/fix-get-location-func-red…
Browse files Browse the repository at this point in the history
…shift

fix: add getLocationObject function in redshift
  • Loading branch information
taozhi8833998 authored May 13, 2024
2 parents 252c21e + 902326c commit d02ff40
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 d02ff40

Please sign in to comment.