mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add tests for termination of "hashbang" comment (#2104)
This commit is contained in:
parent
91dc2e635d
commit
d5076e3e8e
@ -0,0 +1,28 @@
|
|||||||
|
#! this comment ends with a Carriage Return (U+000D)
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copyright (C) 2019 Mike Pennisi. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: pending
|
||||||
|
description: >
|
||||||
|
Hashbang comments are terminated by the first LineTerminator: Carriage Return
|
||||||
|
info: |
|
||||||
|
HashbangComment::
|
||||||
|
#! SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChars::
|
||||||
|
SingleLineCommentChar SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChar::
|
||||||
|
SourceCharacter but not LineTerminator
|
||||||
|
|
||||||
|
LineTerminator::
|
||||||
|
<LF>
|
||||||
|
<CR>
|
||||||
|
<LS>
|
||||||
|
<PS>
|
||||||
|
flags: [raw]
|
||||||
|
features: [hashbang]
|
||||||
|
---*/
|
@ -0,0 +1,28 @@
|
|||||||
|
#! this comment ends with a Line Separator (U+2028)
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copyright (C) 2019 Mike Pennisi. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: pending
|
||||||
|
description: >
|
||||||
|
Hashbang comments are terminated by the first LineTerminator: Line Separator
|
||||||
|
info: |
|
||||||
|
HashbangComment::
|
||||||
|
#! SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChars::
|
||||||
|
SingleLineCommentChar SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChar::
|
||||||
|
SourceCharacter but not LineTerminator
|
||||||
|
|
||||||
|
LineTerminator::
|
||||||
|
<LF>
|
||||||
|
<CR>
|
||||||
|
<LS>
|
||||||
|
<PS>
|
||||||
|
flags: [raw]
|
||||||
|
features: [hashbang]
|
||||||
|
---*/
|
@ -0,0 +1,28 @@
|
|||||||
|
#! this comment ends with a Paragraph Separator (U+2029)
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copyright (C) 2019 Mike Pennisi. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: pending
|
||||||
|
description: >
|
||||||
|
Hashbang comments are terminated by the first LineTerminator: Paragraph Separator
|
||||||
|
info: |
|
||||||
|
HashbangComment::
|
||||||
|
#! SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChars::
|
||||||
|
SingleLineCommentChar SingleLineCommentChars[opt]
|
||||||
|
|
||||||
|
SingleLineCommentChar::
|
||||||
|
SourceCharacter but not LineTerminator
|
||||||
|
|
||||||
|
LineTerminator::
|
||||||
|
<LF>
|
||||||
|
<CR>
|
||||||
|
<LS>
|
||||||
|
<PS>
|
||||||
|
flags: [raw]
|
||||||
|
features: [hashbang]
|
||||||
|
---*/
|
Loading…
x
Reference in New Issue
Block a user