-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
24 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
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 |
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