m-novikov / tree-sitter-sql

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

Error parsing SQL #61

Open imotai opened 2 years ago

imotai commented 2 years ago

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] - [0, 11])
      select_clause_body [0, 7] - [0, 11])
        dotted_name [0, 7] - [0, 11])
          identifier [0, 7] - [0, 9])
          identifier [0, 10] - [0, 11])
    ERROR [0, 11] - [0, 14])
    from_clause [0, 15] - [0, 22])
      identifier [0, 20] - [0, 22])