Skip to content

Commit

Permalink
Fix modern documentation to mention emit_arg_inside_procarg0 (#658)
Browse files Browse the repository at this point in the history
- Fix documentation of modern AST format to include
  emit_arg_inside_procarg0. This allows users to mirror what
  `Parser::Builders::Default.modernize` does.
  • Loading branch information
mbj committed Mar 16, 2020
1 parent 3a7fc43 commit e5c421b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -24,10 +24,11 @@ below for explanation of `emit_*` calls):

require 'parser/current'
# opt-in to most recent AST format:
Parser::Builders::Default.emit_lambda = true
Parser::Builders::Default.emit_procarg0 = true
Parser::Builders::Default.emit_encoding = true
Parser::Builders::Default.emit_index = true
Parser::Builders::Default.emit_lambda = true
Parser::Builders::Default.emit_procarg0 = true
Parser::Builders::Default.emit_encoding = true
Parser::Builders::Default.emit_index = true
Parser::Builders::Default.emit_arg_inside_procarg0 = true

Parse a chunk of code:

Expand Down

0 comments on commit e5c421b

Please sign in to comment.