We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac2fbc commit 88e70acCopy full SHA for 88e70ac
compiler/src/dotty/tools/dotc/config/CommandLineParser.scala
@@ -2,6 +2,7 @@ package dotty.tools.dotc
2
package config
3
4
import scala.annotation.tailrec
5
+import dotty.tools.sharable
6
7
/** A simple (overly so) command line parser.
8
* !!! This needs a thorough test suite to make sure quoting is
@@ -30,7 +31,7 @@ object CommandLineParser {
30
31
}
32
private object DoubleQuoted extends QuotedExtractor('"')
33
private object SingleQuoted extends QuotedExtractor('\'')
- private val Word = """(\S+)(.*)""".r
34
+ @sharable private val Word = """(\S+)(.*)""".r
35
36
// parse `in` for an argument, return it and the remainder of the input (or an error message)
37
// (argument may be in single/double quotes, taking escaping into account, quotes are stripped)
0 commit comments