AutoTest -> 39.647%
This commit is contained in:
parent
28dd9cd7b1
commit
4486a43482
1 changed files with 16 additions and 5 deletions
|
@ -214,6 +214,8 @@ public class JavaParser extends Parser<JavaElement> {
|
|||
value.then((validator) -> {
|
||||
if(validator.validate((token) -> token.getValue().equals("\""))){
|
||||
|
||||
boolean escaped = true;
|
||||
while(escaped){
|
||||
while(validator.validate(
|
||||
(token) -> !token.getValue().equals("\""),
|
||||
(bag, token) -> {
|
||||
|
@ -223,6 +225,15 @@ public class JavaParser extends Parser<JavaElement> {
|
|||
bag.set(current);
|
||||
}));
|
||||
|
||||
if(validator.validate((token) -> token.getValue().equals("\""), (bag, token) -> {
|
||||
Token current = bag.get();
|
||||
if(current == null) current = token;
|
||||
else current = current.concat(token);
|
||||
bag.set(current);
|
||||
})){
|
||||
}else escaped = false;
|
||||
}
|
||||
|
||||
return validator.validate((token) -> token.getValue().equals("\""));
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue