-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should never fold with line comments
- Loading branch information
1 parent
3b647e2
commit 2de8a57
Showing
12 changed files
with
264 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
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,31 @@ | ||
#let f( // aaa | ||
a // bbb | ||
) = {} | ||
|
||
#let f(// aaa | ||
a // bbb | ||
) = {} | ||
|
||
#let g = ( // ccc | ||
a // ddd | ||
) => { } | ||
|
||
#let g = (// ccc | ||
a // ddd | ||
) => { } | ||
|
||
#let g = (a// ccc | ||
// ddd | ||
) => { } | ||
|
||
#let f( (// aaa | ||
a // bbb | ||
)) = {} | ||
|
||
#let g = ((// ccc | ||
a // ddd | ||
)) => { } | ||
|
||
#let g = ((a// ccc | ||
// ddd | ||
)) => { } |
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 |
---|---|---|
|
@@ -85,3 +85,13 @@ snapshot_kind: text | |
d: 5, | ||
), | ||
) | ||
|
||
#let ( | ||
// b | ||
/* 2 */ | ||
( | ||
a | ||
), /* 3 */ | ||
) = ( | ||
(), | ||
) |
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 |
---|---|---|
|
@@ -41,3 +41,8 @@ snapshot_kind: text | |
a: 1, | ||
b: (c: 4, d: 5), | ||
) | ||
|
||
#let ( | ||
// b | ||
/* 2 */ (a), /* 3 */ | ||
) = ((),) |
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,48 @@ | ||
--- | ||
source: tests/assets.rs | ||
expression: doc_string | ||
input_file: tests/assets/unit/comment/comment-in-params.typ | ||
snapshot_kind: text | ||
--- | ||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
a, // ccc | ||
// ddd | ||
) => { } | ||
|
||
#let f( | ||
(// aaa | ||
a // bbb | ||
), | ||
) = { } | ||
|
||
#let g = ( | ||
(// ccc | ||
a // ddd | ||
), | ||
) => { } | ||
|
||
#let g = ( | ||
(a// ccc | ||
// ddd | ||
), | ||
) => { } |
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,48 @@ | ||
--- | ||
source: tests/assets.rs | ||
expression: doc_string | ||
input_file: tests/assets/unit/comment/comment-in-params.typ | ||
snapshot_kind: text | ||
--- | ||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
a, // ccc | ||
// ddd | ||
) => { } | ||
|
||
#let f( | ||
(// aaa | ||
a // bbb | ||
), | ||
) = { } | ||
|
||
#let g = ( | ||
(// ccc | ||
a // ddd | ||
), | ||
) => { } | ||
|
||
#let g = ( | ||
(a// ccc | ||
// ddd | ||
), | ||
) => { } |
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,48 @@ | ||
--- | ||
source: tests/assets.rs | ||
expression: doc_string | ||
input_file: tests/assets/unit/comment/comment-in-params.typ | ||
snapshot_kind: text | ||
--- | ||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
a, // ccc | ||
// ddd | ||
) => { } | ||
|
||
#let f( | ||
(// aaa | ||
a // bbb | ||
), | ||
) = { } | ||
|
||
#let g = ( | ||
(// ccc | ||
a // ddd | ||
), | ||
) => { } | ||
|
||
#let g = ( | ||
(a// ccc | ||
// ddd | ||
), | ||
) => { } |
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,48 @@ | ||
--- | ||
source: tests/assets.rs | ||
expression: doc_string | ||
input_file: tests/assets/unit/comment/comment-in-params.typ | ||
snapshot_kind: text | ||
--- | ||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let f( | ||
// aaa | ||
a, // bbb | ||
) = { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
// ccc | ||
a, // ddd | ||
) => { } | ||
|
||
#let g = ( | ||
a, // ccc | ||
// ddd | ||
) => { } | ||
|
||
#let f( | ||
(// aaa | ||
a // bbb | ||
), | ||
) = { } | ||
|
||
#let g = ( | ||
(// ccc | ||
a // ddd | ||
), | ||
) => { } | ||
|
||
#let g = ( | ||
(a// ccc | ||
// ddd | ||
), | ||
) => { } |