DerekStride / tree-sitter-sql

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

feat: postgresql expression subscripts #230

Closed DerekStride closed 11 months ago

DerekStride commented 11 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