Skip to content

Commit

Permalink
OPTIONAL_DO_TOKENS should be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Dec 31, 2012
1 parent b6bd281 commit 6d0b6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/indent.rb
Expand Up @@ -55,7 +55,7 @@ class UnparseableNestingError < StandardError; end
SINGLELINE_TOKENS = %w(if while until unless rescue) SINGLELINE_TOKENS = %w(if while until unless rescue)


# Which tokens can be followed by an optional "do" keyword. # Which tokens can be followed by an optional "do" keyword.
OPTIONAL_DO_TOKENS = %(for while until) OPTIONAL_DO_TOKENS = %w(for while until)


# Collection of token types that should be ignored. Without this list # Collection of token types that should be ignored. Without this list
# keywords such as "class" inside strings would cause the code to be # keywords such as "class" inside strings would cause the code to be
Expand Down

0 comments on commit 6d0b6b9

Please sign in to comment.