mirror of https://github.com/tc39/test262.git
Add tests for `-->` in the first line
This commit is contained in:
parent
49e56acc67
commit
98938f4c0a
|
@ -0,0 +1,22 @@
|
||||||
|
--> a comment
|
||||||
|
|
||||||
|
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-html-like-comments
|
||||||
|
description: >
|
||||||
|
A SingleLineHTMLCloseComment is allowed in the first line
|
||||||
|
flags: [raw]
|
||||||
|
info: |
|
||||||
|
InputElementHashbangOrRegExp ::
|
||||||
|
WhiteSpace
|
||||||
|
LineTerminator
|
||||||
|
Comment
|
||||||
|
CommonToken
|
||||||
|
HashbangComment
|
||||||
|
RegularExpressionLiteral
|
||||||
|
HTMLCloseComment
|
||||||
|
|
||||||
|
HTMLCloseComment ::
|
||||||
|
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
|
||||||
|
---*/
|
|
@ -0,0 +1,22 @@
|
||||||
|
--> a comment
|
||||||
|
|
||||||
|
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-html-like-comments
|
||||||
|
description: >
|
||||||
|
A SingleLineHTMLCloseComment is allowed in the first line when preceeded by spaces
|
||||||
|
flags: [raw]
|
||||||
|
info: |
|
||||||
|
InputElementHashbangOrRegExp ::
|
||||||
|
WhiteSpace
|
||||||
|
LineTerminator
|
||||||
|
Comment
|
||||||
|
CommonToken
|
||||||
|
HashbangComment
|
||||||
|
RegularExpressionLiteral
|
||||||
|
HTMLCloseComment
|
||||||
|
|
||||||
|
HTMLCloseComment ::
|
||||||
|
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
|
||||||
|
---*/
|
|
@ -0,0 +1,22 @@
|
||||||
|
/* a comment */ /*another comment*/--> a comment
|
||||||
|
|
||||||
|
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-html-like-comments
|
||||||
|
description: >
|
||||||
|
A SingleLineHTMLCloseComment is allowed in the first line when preceeded by spaces and single-line block comments
|
||||||
|
flags: [raw]
|
||||||
|
info: |
|
||||||
|
InputElementHashbangOrRegExp ::
|
||||||
|
WhiteSpace
|
||||||
|
LineTerminator
|
||||||
|
Comment
|
||||||
|
CommonToken
|
||||||
|
HashbangComment
|
||||||
|
RegularExpressionLiteral
|
||||||
|
HTMLCloseComment
|
||||||
|
|
||||||
|
HTMLCloseComment ::
|
||||||
|
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
|
||||||
|
---*/
|
Loading…
Reference in New Issue