Indirection for collections
@@ -470,16 +470,22 @@ module.exports = grammar({
list: $ =>
$._list,
- vector: $ =>
+ _vector: $ =>
seq('[',
repeat($._form),
']'),
+ vector: $ =>
+ $._vector,
+
// https://clojure.org/reference/reader#_maps
map: $ =>
choice($._simple_map,
$._namespaced_map),
+ _map: $ =>
+ $.map,
+
_simple_map: $ =>
seq('{',
repeat($._form),
@@ -555,11 +561,14 @@ module.exports = grammar({
'"')),
// at repl: #{:a} != # {:a}
- set: $ =>
+ _set: $ =>
seq('#{',
repeat($._form),
'}'),
+ set: $ =>
+ $._set,
+
splicing_reader_conditional: $ =>
seq('#?@',
$._list),
