summaryrefslogtreecommitdiff
path: root/versions.properties
diff options
context:
space:
mode:
authorsom-snytt <som.snytt@gmail.com>2016-05-11 04:58:27 -0700
committerLukas Rytz <lukas.rytz@typesafe.com>2016-05-11 13:58:27 +0200
commitfec54d6bb437280e74e4ec0286e42ae757b9b691 (patch)
tree87a0d1daddcc6bcb45e574d0bc58e1ac47e2a093 /versions.properties
parenta7bc60b6aae21601c7fb16fb9218e46b9c866658 (diff)
downloadscala-fec54d6bb437280e74e4ec0286e42ae757b9b691.tar.gz
scala-fec54d6bb437280e74e4ec0286e42ae757b9b691.tar.bz2
scala-fec54d6bb437280e74e4ec0286e42ae757b9b691.zip
SI-9666: Use inline group names in Regex (#4990)
Delegate `Match group name` to the underlying `matcher`. If that fails, try explicit group names as a fall back. No attempt is made to correlate inline and explicit names. In the following case, either name is accepted: ``` new Regex("a(?<Bar>b*)c", "Bee") ``` But if names are reversed, the error is undetected: ``` new Regex("a(?<Bee>b*)(?<Bar>c)", "Bar", "Bee") ``` Throw IllegalArg on bad group name to be consistent with Java.
Diffstat (limited to 'versions.properties')
0 files changed, 0 insertions, 0 deletions