m-novikov / tree-sitter-sql

SQL syntax highlighting for tree-sitter
MIT License
110 stars 32 forks source link

DELETE command not working with exact content from test data. #70

Open alexkreidler opened 1 year ago

alexkreidler commented 1 year ago

The test corpus has this example. But I got an error when parsing the following SQL:

DELETE FROM foo;
DELETE FROM foo WHERE name = 'bar';

Error:

source_file [0, 0] - [2, 0])
  ERROR [0, 0] - [1, 35])
    ERROR [0, 12] - [0, 15])
    ERROR [1, 12] - [1, 15])
    ERROR [1, 22] - [1, 26])
    ERROR [1, 30] - [1, 33])