-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1754 from voodoos/test-issue-1753
Test and fix wrong error with string literal in comment
- Loading branch information
Showing
3 changed files
with
94 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
should be accepted | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {%ext|babar|} *) | ||
> EOF | ||
null | ||
|
||
should fail | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {%ext id|babar|} *) | ||
> EOF | ||
{ | ||
"start": { | ||
"line": 1, | ||
"col": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"col": 2 | ||
}, | ||
"type": "typer", | ||
"sub": [ | ||
{ | ||
"start": { | ||
"line": 1, | ||
"col": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"col": 2 | ||
}, | ||
"message": "String literal begins here" | ||
} | ||
], | ||
"valid": true, | ||
"message": "This comment contains an unterminated string literal" | ||
} | ||
|
||
should accept | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {%ext id|babar|id} *) | ||
> EOF | ||
null | ||
|
||
should accept | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {id|babar|id} *) | ||
> EOF | ||
null | ||
|
||
should accept | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {|babar|} *) | ||
> EOF | ||
null | ||
|
||
should fail | ||
$ $MERLIN single errors -filename main.ml <<'EOF' | \ | ||
> jq '.value[0]' | ||
> (* {id|babar|} *) | ||
> EOF | ||
{ | ||
"start": { | ||
"line": 1, | ||
"col": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"col": 2 | ||
}, | ||
"type": "typer", | ||
"sub": [ | ||
{ | ||
"start": { | ||
"line": 1, | ||
"col": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"col": 2 | ||
}, | ||
"message": "String literal begins here" | ||
} | ||
], | ||
"valid": true, | ||
"message": "This comment contains an unterminated string literal" | ||
} |