This repository was archived by the owner on Sep 3, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/scala/scala/tools/refactoring Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ trait SourceUtils {
46
46
def currentCharsAreMultilineCommentCommentStart = current2CharsAre('/' , '*' )
47
47
def currentCharsAreMultilineCommentCommentEnd = current2CharsAre('*' , '/' )
48
48
def currentCharIsRegularQuote = currentCharIs('"' )
49
- def currentCharsAreSingleQuotedSingleQuote = current3CharsAre(''' , ''' , ''' )
50
- def currentCharsAreEscapedSingleQuote = current2CharsAre('\\ ' , ''' )
51
- def currentCharIsSingleQuote = currentCharIs(''' )
49
+ def currentCharsAreSingleQuotedSingleQuote = current3CharsAre('\ ' ' , '\ ' ' , '\ ' ' )
50
+ def currentCharsAreEscapedSingleQuote = current2CharsAre('\\ ' , '\ ' ' )
51
+ def currentCharIsSingleQuote = currentCharIs('\ ' ' )
52
52
def currentCharsAreEscapedRegularQuote = current2CharsAre('\\ ' , '"' )
53
53
def currentCharIsNewline = currentCharIs('\n ' )
54
54
def currentCharIsBackTick = currentCharIs('`' )
Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ object SourceWithMarker {
605
605
}
606
606
607
607
val delimiter = charOfClass { c =>
608
- c == '`' || c == ''' || c == '"' || c == '.' || c == ';' || c == ','
608
+ c == '`' || c == '\ ' ' || c == '"' || c == '.' || c == ';' || c == ','
609
609
}
610
610
611
611
val opChar = charOfClass { c =>
@@ -620,10 +620,10 @@ object SourceWithMarker {
620
620
}
621
621
622
622
val characterLiteral = {
623
- val charEscape = character('b' ) | 't' | 'n' | 'f' | 'r' | '"' | ''' | '\\ '
623
+ val charEscape = character('b' ) | 't' | 'n' | 'f' | 'r' | '"' | '\ ' ' | '\\ '
624
624
val octEscape = octalDigit ~ octalDigit.atMostNtimes(2 )
625
625
626
- ''' ~ ((any.butNot('\\ ' ) | ('\\ ' ~ (charEscape | octEscape)))) ~ '''
626
+ '\ ' ' ~ ((any.butNot('\\ ' ) | ('\\ ' ~ (charEscape | octEscape)))) ~ '\ ' '
627
627
}
628
628
629
629
val stringLiteral = {
@@ -680,7 +680,7 @@ object SourceWithMarker {
680
680
681
681
val plainid = (upper ~ idrest) | varid | op
682
682
683
- val symbolLiteral = ''' ~ plainid
683
+ val symbolLiteral = '\ ' ' ~ plainid
684
684
685
685
val literalIdentifier = '`' ~ any.butNot('`' ).atLeastOnce ~ '`'
686
686
You can’t perform that action at this time.
0 commit comments