Creates a dummy node for import_selectors
Problem
When Neovim encounters an unknown node type in the highlight query it
not only not highlight, but it displays confusing error message to the
buffer.
Solution
For now, we should create a dummy node.
@@ -214,6 +214,9 @@ module.exports = grammar({
'}'
),
+ // deprecated: Remove when highlight query is updated for Neovim
+ _import_selectors: $ => alias($.namespace_selectors, $.import_selectors),
+
renamed_identifier: $ => seq(
field('name', $.identifier),
choice('=>', 'as'),
@@ -1055,7 +1058,7 @@ module.exports = grammar({
),
)),
- symbol_literal: $ => '__no_longer_used',
+ symbol_literal: $ => '__no_longer_used_symbol_literal_',
/**
* id ::= plainid
