DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
147 stars 47 forks source link

feat: postgresql expression subscripts #230

Closed DerekStride closed 8 months ago

DerekStride commented 9 months ago

What

closes #213

Adds new subscript node to expression. I had to update some precedence rules to avoid conflicts, review ignoring whitespace to easily see the diffs related to that change.

ref: https://www.postgresql.org/docs/current/sql-expressions.html#SQL-EXPRESSIONS-SUBSCRIPTS