m-novikov / tree-sitter-sql

SQL syntax highlighting for tree-sitter
MIT License
112 stars 33 forks source link

Is a plan to support "map_element_access" #60

Open imotai opened 2 years ago

imotai commented 2 years ago

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] - [0, 15])
      ERROR [0, 7] - [0, 12])
        dotted_name [0, 7] - [0, 11])
          identifier [0, 7] - [0, 9])
          identifier [0, 10] - [0, 11])
      select_clause_body [0, 12] - [0, 15])
        string [0, 12] - [0, 15])
    ERROR [0, 15] - [0, 16])
    from_clause [0, 17] - [0, 24])
      identifier [0, 22] - [0, 24])