Add tests showing how comments are handled

This commit is contained in:
Michael Goulet 2023-08-27 13:18:30 -07:00 committed by Caleb Cartwright
parent df06d7eb09
commit d6d9e76240
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,31 @@
type Foo // comment1
// interlinear1
where // comment2
// interlinear2
A: B, // comment3
C: D, // comment4
// interlinear3
= E; // comment5
type Foo // comment6
// interlinear4
where// comment7
// interlinear5
A: B, // comment8
C: D, // comment9
// interlinear6
= E // comment10
// interlinear7
where // comment11
// interlinear8
F: G, // comment12
H: I; // comment13
type Foo // comment14
// interlinear9
= E // comment15
// interlinear10
where // comment16
// interlinear11
F: G,// comment17
H: I;// comment18

View File

@ -0,0 +1,39 @@
type Foo
// comment1
// interlinear1
where
// comment2
// interlinear2
A: B, // comment3
C: D, // comment4
// interlinear3
= E; // comment5
type Foo
// comment6
// interlinear4
where
// comment7
// interlinear5
A: B, // comment8
C: D, // comment9
// interlinear6
= E
// comment10
// interlinear7
where
// comment11
// interlinear8
F: G, // comment12
H: I; // comment13
type Foo // comment14
// interlinear9
= E
// comment15
// interlinear10
where
// comment16
// interlinear11
F: G, // comment17
H: I; // comment18