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: Add missing (postgres) operators. #211

Closed antoineB closed 1 year ago

antoineB commented 1 year ago

The operators of posix regexp, bit string, network addresses, point, full text search, range and some missing json operators have been added.

Following postgres operators precedence https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-PRECEDENCE. They have the 'binary_other' precedence rule, and to reduce the size of the parser they all produce the either token 'op_other' or 'op_unary_other'.