Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Apr 8, 2024
1 parent 207756d commit 5476bea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
38 changes: 24 additions & 14 deletions testsuite/verona_nostdlib/spec/comments.verona
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
// Comment
class A {
/* comment
class B {
// comment
}
*/
}

class B {
// Comment
}
// Comment /* with nested comment */

// /* comment opening inside comment ignored
// Comment with "quotes"

// Comment with "quotes /* and nested comment */"

// Comment with "quotes /* and nested comment */" and more text

/* Single-line comment */
/**/
/* Single-line comment with /*Nested comment*/ */

/* Multi-line
comment */
/*

*/
/* Multi-line
comment /* with nested comment */
*/


// /* Comment opening inside comment ignored

/* // line comment inside comment ignored */

// Interaction with strings:
let a = "// not a comment!"

let b = "/* not a comment start"

let c = "not a comment end */"

/* Nested comments /* like this work */ as you would expect.*/

/* Quotes don't affect the nesting. "/*" */ */

//
// Comment doesn't need a new line to terminate it
10 changes: 0 additions & 10 deletions testsuite/verona_nostdlib/spec/comments_out/00_parse.trieste
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ parse
(top
{}
(file
(group
(class
{})
(ident 1:A)
(brace))
(group
(class
{})
(ident 1:B)
(brace))
(equals
(group
(let)
Expand Down

0 comments on commit 5476bea

Please sign in to comment.