Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions spec/compiler/parser/parser_spec.cr
Original file line number Diff line number Diff line change
@@ -1223,6 +1223,8 @@ describe "Parser" do
Path.global("Nil"),
] of ASTNode)

it_parses "{1 => 2 / 3}", HashLiteral.new([HashLiteral::Entry.new(1.int32, Call.new(2.int32, "/", 3.int32))])

assert_syntax_error "return do\nend", "unexpected token: do"

%w(def macro class struct module fun alias abstract include extend lib).each do |keyword|
2 changes: 0 additions & 2 deletions src/compiler/crystal/syntax/parser.cr
Original file line number Diff line number Diff line change
@@ -2187,8 +2187,6 @@ module Crystal
end

def parse_hash_literal(first_key, location, allow_of)
slash_is_regex!

line = @line_number
column = @token.column_number
end_location = nil

0 comments on commit 38f156f

Please sign in to comment.