File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
shared/src/main/scala/scala/util/parsing/combinator Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ trait JavaTokenParsers extends RegexParsers {
3737 /** An integer, without sign or with a negative sign. */
3838 def wholeNumber : Parser [String ] =
3939 """ -?\d+""" .r
40+
4041 /** Number following one of these rules:
4142 *
4243 * - An integer. For example: `13`
@@ -46,6 +47,7 @@ trait JavaTokenParsers extends RegexParsers {
4647 */
4748 def decimalNumber : Parser [String ] =
4849 """ (\d+(\.\d*)?|\d*\.\d+)""" .r
50+
4951 /** Double quotes (`"`) enclosing a sequence of:
5052 *
5153 * - Any character except double quotes, control characters or backslash (`\`)
@@ -56,6 +58,7 @@ trait JavaTokenParsers extends RegexParsers {
5658 @ migration(" `stringLiteral` allows escaping single and double quotes, but not forward slashes any longer." , " 2.10.0" )
5759 def stringLiteral : Parser [String ] =
5860 (" \" " + """ ([^"\x00-\x1F\x7F\\ ]|\\ [\\ '"bfnrt]|\\ u[a-fA-F0-9]{4})*""" + " \" " ).r
61+
5962 /** A number following the rules of `decimalNumber`, with the following
6063 * optional additions:
6164 *
You can’t perform that action at this time.
0 commit comments