Skip to content

Commit

Permalink
Rename {array,hash}_like nodes and their fields
Browse files Browse the repository at this point in the history
Don't disable GC for tests as it doesn't seem to have an impact here
  • Loading branch information
nobodywasishere committed Dec 31, 2024
1 parent 8a09c7c commit 6aed092
Show file tree
Hide file tree
Showing 6 changed files with 6,598 additions and 6,596 deletions.
4 changes: 2 additions & 2 deletions Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ module.exports = grammar({
alias($.comparison_operator, $.call),
alias($.index_operator, $.index_call),
$.index_call,
$.array_like_type_literal,
$.hash_like_type_literal,
$.array_like,
$.hash_like,
$.assign,
alias($.operator_assign, $.op_assign),

Expand Down Expand Up @@ -1938,14 +1938,14 @@ module.exports = grammar({

macro_verbatim: $ => seq('verbatim', 'do'),

array_like_type_literal: $ => seq(
field('receiver', choice($.constant, $.generic_instance_type)),
field('arguments', $.tuple),
array_like: $ => seq(
field('name', choice($.constant, $.generic_instance_type)),
field('values', $.tuple),
),

hash_like_type_literal: $ => seq(
field('receiver', choice($.constant, $.generic_instance_type)),
field('arguments', $.hash),
hash_like: $ => seq(
field('name', choice($.constant, $.generic_instance_type)),
field('values', $.hash),
),

// Represents a macro call prefixed with private/protected, e.g.
Expand Down
16 changes: 8 additions & 8 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6aed092

Please sign in to comment.