mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix!(parser): handling of line breaks in enclosures
This commit is contained in:
parent
a33f9ab928
commit
25d143b04a
10 changed files with 155 additions and 94 deletions
|
@ -1,3 +1,7 @@
|
|||
arr = [
|
||||
1,
|
||||
2
|
||||
]
|
||||
dict = {
|
||||
"a": 1,
|
||||
"b": 2
|
||||
|
@ -10,7 +14,37 @@ tuple = (
|
|||
1,
|
||||
2
|
||||
)
|
||||
rec = {
|
||||
.a = 1;
|
||||
.b = 2;
|
||||
.c = 3
|
||||
}
|
||||
|
||||
print! dict
|
||||
print! set
|
||||
print! tuple
|
||||
print! arr, dict, set, tuple, rec
|
||||
|
||||
arr2 = [
|
||||
1,
|
||||
2,
|
||||
]
|
||||
|
||||
dict2 = {
|
||||
"a": 1,
|
||||
"b": 2,
|
||||
}
|
||||
|
||||
set2 = {
|
||||
1,
|
||||
2,
|
||||
}
|
||||
|
||||
tuple2 = (
|
||||
1,
|
||||
2,
|
||||
)
|
||||
|
||||
rec2 = {
|
||||
.foo = 1;
|
||||
.bar = 2;
|
||||
}
|
||||
|
||||
print! arr2, dict2, set2, tuple2, rec2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue