Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,8 @@ module.exports = grammar({
optional($._flag_equals_value),
),

short_flag_identifier: (_$) => token.immediate(/[\p{XID_Continue}?@!%_-]+/),
short_flag_identifier: (_$) =>
token.immediate(/[\p{XID_Continue}:?@!%_-]+/),

long_flag: ($) =>
seq(
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -16011,7 +16011,7 @@
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "PATTERN",
"value": "[\\p{XID_Continue}?@!%_-]+"
"value": "[\\p{XID_Continue}:?@!%_-]+"
}
},
"long_flag": {
Expand Down
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -11103,7 +11103,7 @@ static const TSCharacterRange aux_sym__record_key_token1_character_set_1[] = {
};

static const TSCharacterRange sym_short_flag_identifier_character_set_1[] = {
{'!', '!'}, {'%', '%'}, {'-', '-'}, {'0', '9'}, {'?', 'Z'}, {'_', '_'}, {'a', 'z'}, {0xaa, 0xaa},
{'!', '!'}, {'%', '%'}, {'-', '-'}, {'0', ':'}, {'?', 'Z'}, {'_', '_'}, {'a', 'z'}, {0xaa, 0xaa},
{0xb5, 0xb5}, {0xb7, 0xb7}, {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4},
{0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x300, 0x374}, {0x376, 0x377}, {0x37b, 0x37d}, {0x37f, 0x37f}, {0x386, 0x38a}, {0x38c, 0x38c},
{0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481}, {0x483, 0x487}, {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588},
Expand Down
Loading