chore: some cosmetic changes

This commit is contained in:
Dmitriy Pleshevskiy 2023-01-05 23:46:19 +03:00
parent 02b7e697a4
commit 75e081f335
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 23 additions and 18 deletions

View file

@ -132,7 +132,7 @@ module.exports = grammar({
insert_items: ($) =>
choice(
seq(kw("default"), kw("values")),
seq(kw("values"), $.insert_values, repeat(seq(",", $.insert_values))),
seq(kw("values"), commaSep1($.insert_values)),
$.select_statement,
seq("(", $.select_statement, ")")
),

View file

@ -842,24 +842,29 @@
"value": "values"
},
{
"type": "SYMBOL",
"name": "insert_values"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "SYMBOL",
"name": "insert_values"
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "insert_values"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "SYMBOL",
"name": "insert_values"
}
]
}
]
}
}
]
}
]
},