Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/compiler/parser/to_s_spec.cr
Original file line number Diff line number Diff line change
@@ -72,4 +72,5 @@ describe "ASTNode#to_s" do
expect_to_s %({"foo bar": 1})
expect_to_s %(def foo("bar baz" qux)\nend)
expect_to_s "foo()"
expect_to_s "/a/x"
end
1 change: 1 addition & 0 deletions src/compiler/crystal/syntax/to_s.cr
Original file line number Diff line number Diff line change
@@ -941,6 +941,7 @@ module Crystal
@str << "i" if node.options.includes? Regex::Options::IGNORE_CASE
@str << "m" if node.options.includes? Regex::Options::MULTILINE
@str << "x" if node.options.includes? Regex::Options::EXTENDED
false
end

def visit(node : TupleLiteral)

0 comments on commit 10ce3d1

Please sign in to comment.