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
11 changes: 11 additions & 0 deletions doc/AST_FORMAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,17 @@ Format:
~~~~~ expression
~~~

### Block nil argument (Prism only)

Format:

~~~
(blocknilarg)
"&nil"
~~~ name
~~~~ expression
~~~

### Objective-C arguments

MacRuby includes a few more syntactic "arguments" whose name becomes
Expand Down
2 changes: 1 addition & 1 deletion lib/parser/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Meta
# These are node types required by `Prism::Translation::Parser`,
# which has advanced syntax support ahead of the Parser gem.
PRISM_TRANSLATION_PARSER_NODE_TYPES = %i(
itarg itblock
itarg itblock blocknilarg
).freeze
private_constant :PRISM_TRANSLATION_PARSER_NODE_TYPES

Expand Down