mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 01:29:15 +02:00
move handling of strings to parser (#962)
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x | res2 = 42
|
||||
^
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x | res1 = """
|
||||
^
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"` delimiter.
|
||||
|
||||
x | res1 = "
|
||||
^
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x |
|
||||
^
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""#` delimiter.
|
||||
|
||||
x |
|
||||
^
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Invalid Unicode escape sequence `\u{12x}`.
|
||||
|
||||
Valid Unicode escape sequences are \u{0} to \u{10FFFF} (1-6 hexadecimal characters).
|
||||
|
||||
x | res1 = "\u{12x}"
|
||||
^^^^^^^
|
||||
at invalidUnicodeEscape#res1 (file:///$snippetsDir/input/errors/invalidUnicodeEscape.pkl)
|
||||
|
||||
Valid Unicode escape sequences are \u{0} to \u{10FFFF} (1-6 hexadecimal characters).
|
||||
at invalidUnicodeEscape (file:///$snippetsDir/input/errors/invalidUnicodeEscape.pkl)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x | res1 = """some string
|
||||
^
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x | res2 = 2
|
||||
^
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected end of file.
|
||||
Missing `"""` delimiter.
|
||||
|
||||
x | res1 = """some string"
|
||||
^
|
||||
|
||||
@@ -3,4 +3,4 @@ Line must match or exceed indentation of the String's last line.
|
||||
|
||||
x | mismatched indent
|
||||
^^^^^^^^^^^^^^^^^
|
||||
at parser8#res1 (file:///$snippetsDir/input/errors/parser8.pkl)
|
||||
at parser8 (file:///$snippetsDir/input/errors/parser8.pkl)
|
||||
|
||||
@@ -3,4 +3,4 @@ Line must match or exceed indentation of the String's last line.
|
||||
|
||||
x | mismatched indent
|
||||
^^^^^^^^^^^^^^^^^
|
||||
at parser9#res1 (file:///$snippetsDir/input/errors/parser9.pkl)
|
||||
at parser9 (file:///$snippetsDir/input/errors/parser9.pkl)
|
||||
|
||||
Reference in New Issue
Block a user