Skip to content

Adding suport for AUTOINCREMENT keyword from SQLite #299

Description

@andreRaposo91

When creating a table in SQLite, the AUTOINCREMENT keyword can be used as a column constraint when it is the primary key.

In the current implementation, this keyword does not exist, as the MySQL implementation uses AUTO_INCREMENT, with an underscore.

I'm new to Treesitter but I think it comes down to adding a new keyword in line 154

keyword_autoincrement: _ => make_keyword("autoincrement"),

and replacing line 2717 with a choice for the keywords in the _column_constraint function

choice($.keyword_auto_increment, $.keyword_autoincrement),

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions