File tree 3 files changed +4
-3
lines changed
main/scala/scala/util/parsing/combinator
test/scala/scala/util/parsing/combinator
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ language: scala
3
3
before_install :
4
4
- cat /etc/hosts # optionally check the content *before*
5
5
- sudo hostname "$(hostname | cut -c1-63)"
6
- - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
6
+ - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
7
+ - sudo mv /tmp/hosts /etc/hosts
7
8
- cat /etc/hosts # optionally check the content *after*
8
9
9
10
env :
Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ trait Parsers {
565
565
* @return a `tParser` that succeeds if `e` is the next available input.
566
566
*/
567
567
568
- implicit def accept (e : Elem ): Parser [Elem ] = acceptIf(_ == e)(" ` " + e+ " ' expected but " + _ + " found" )
568
+ implicit def accept (e : Elem ): Parser [Elem ] = acceptIf(_ == e)(" ' " + e+ " ' expected but " + _ + " found" )
569
569
570
570
/** A parser that matches only the given list of element `es`.
571
571
*
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class PackratParsersTest {
122
122
val failure = parseResult.asInstanceOf [Failure ]
123
123
assertEquals(expectedFailureMsg, failure.msg)
124
124
}
125
- assertFailure(" ` `b'' expected but `c' found" , " a a a a b b b c c c c" )
125
+ assertFailure(" ' `b'' expected but `c' found" , " a a a a b b b c c c c" )
126
126
assertFailure(" end of input" , " a a a a b b b b c c c" )
127
127
}
128
128
You can’t perform that action at this time.
0 commit comments