File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package dotty.tools.dotc
2
2
package config
3
3
4
4
import scala .annotation .tailrec
5
+ import dotty .tools .sharable
5
6
6
7
/** A simple (overly so) command line parser.
7
8
* !!! This needs a thorough test suite to make sure quoting is
@@ -30,7 +31,7 @@ object CommandLineParser {
30
31
}
31
32
private object DoubleQuoted extends QuotedExtractor ('"' )
32
33
private object SingleQuoted extends QuotedExtractor ('\' ' )
33
- private val Word = """ (\S+)(.*)""" .r
34
+ @ sharable private val Word = """ (\S+)(.*)""" .r
34
35
35
36
// parse `in` for an argument, return it and the remainder of the input (or an error message)
36
37
// (argument may be in single/double quotes, taking escaping into account, quotes are stripped)
You can’t perform that action at this time.
0 commit comments