Skip to content

Commit 26866eb

Browse files
committed
[GR-28693] Bump graal import and introduce ruby spec for groups in line comments.
PullRequest: truffleruby/2461
2 parents 464297e + 2cd8a7e commit 26866eb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mx.truffleruby/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "regex",
99
"subdir": True,
10-
"version": "43a4c1b16e2baaa16ed0598fa6fb59408ee71ef2",
10+
"version": "bf2c742da013f65f715dad08f58cb6a8eec1eee4",
1111
"urls": [
1212
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
1313
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
@@ -16,7 +16,7 @@
1616
{
1717
"name": "sulong",
1818
"subdir": True,
19-
"version": "43a4c1b16e2baaa16ed0598fa6fb59408ee71ef2",
19+
"version": "bf2c742da013f65f715dad08f58cb6a8eec1eee4",
2020
"urls": [
2121
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
2222
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},

spec/ruby/language/regexp/grouping_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@
2525
-> { Regexp.new("(?<1a>a)") }.should raise_error(RegexpError)
2626
-> { Regexp.new("(?<-a>a)") }.should raise_error(RegexpError)
2727
end
28+
29+
it "ignore capture groups in line comments" do
30+
/^
31+
(a) # there is a capture group on this line
32+
b # there is no capture group on this line (not even here)
33+
$/x.match("ab").to_a.should == [ "ab", "a" ]
34+
end
2835
end

0 commit comments

Comments
 (0)