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: ($) => insert_items: ($) =>
choice( choice(
seq(kw("default"), kw("values")), seq(kw("default"), kw("values")),
seq(kw("values"), $.insert_values, repeat(seq(",", $.insert_values))), seq(kw("values"), commaSep1($.insert_values)),
$.select_statement, $.select_statement,
seq("(", $.select_statement, ")") seq("(", $.select_statement, ")")
), ),

View file

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