File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
tests/parsing/errors/scanner Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ let explain t =
70
70
" If you're trying to dereference a mutable value, use `myValue.contents` instead.\n " ^
71
71
" To concatenate strings, use `\" a\" ++ \" b\" ` instead."
72
72
| _ ->
73
- " I have no idea what this character means… "
73
+ " Not sure what to do with this character. "
74
74
end
75
75
| Expected {context; token = t } ->
76
76
let hint = match context with
Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+ exports [` badCharacter.js 1` ] = `
4
+ "=====Parsetree==========================================
5
+ let 1 = [%rescript.exprhole ]
6
+ =====Errors=============================================
7
+
8
+ Syntax error!
9
+ parsing/errors/scanner/badCharacter.js:1:5
10
+ 1 │ let $ = 1
11
+
12
+ Not sure what to do with this character.
13
+
14
+
15
+ Syntax error!
16
+ parsing/errors/scanner/badCharacter.js:1:5-7
17
+ 1 │ let $ = 1
18
+
19
+ I was expecting a name for this let-binding. Example: \` let message = \\ "hello\\ "\`
20
+
21
+
22
+ ========================================================"
23
+ ` ;
24
+
3
25
exports [` escapeSequence.js 1` ] = `
4
26
"=====Parsetree==========================================
5
27
let x = \\ "\\\\\\\\ 0\\ "
Original file line number Diff line number Diff line change
1
+ let $ = 1
You can’t perform that action at this time.
0 commit comments