tree-sitter-sql icon indicating copy to clipboard operation
tree-sitter-sql copied to clipboard

SQL syntax highlighting for tree-sitter

Results 41 tree-sitter-sql issues
Sort by recently updated
recently updated
newest added

First, thanks for `tree-sitter-sql`, I've just started using it. This PR, expand the semver range for `tree-sitter` in `Cargo.toml`. Using this exampled range avoids the Rust compiler error, ``` expected...

When using mac m1 and building playground it just fails ``` tree-sitter build-wasm ``` commit hash when it failed for me: `218b672499729ef71e4d66a949e4a1614488aeaa` Here is full logs: https://gist.github.com/vjerci/19d2166a14c15aaf66663ff5c1937dbb It seems as...

Given the SQL: ``` ALTER TABLE geoheader ADD COLUMN geom geometry(MultiPolygon, 4269); ``` The parser produces: ``` source_file (0, 3) - (2, 0) alter_statement (0, 3) - (1, 25) ALTER...

Given the following SQL: ``` CREATE OR REPLACE VIEW geo_state AS SELECT geom FROM geoheader; ``` the parser produces: ``` source_file (0, 3) - (3, 0) create_view_statement (0, 3) -...

With all PRs merged, tree-sitter will generate a very large parser.c file (about 83M). And it takes about 1 min to load the parser by tree-sitter python binding. Unfortunately I...

Improved the FROM clause in SELECT statement to make it more general, ref: https://www.postgresql.org/docs/current/sql-select.html#SQL-FROM

Error when parsing the following SQL: ``` select t1.a[0] from t1 ``` Error: ``` source_file [0, 0] - [2, 0]) select_statement [0, 0] - [0, 22]) select_clause [0, 0] -...

Error when parsing the following SQL: ``` select t1.a['b'] from t1; ``` Error: ``` source_file [0, 0] - [1, 0]) select_statement [0, 0] - [0, 24]) select_clause [0, 0] -...