Add tests for termination of "hashbang" comment (#2104)

This commit is contained in:
jugglinmike 2019-03-18 21:23:08 -04:00 committed by Leo Balter
parent 91dc2e635d
commit d5076e3e8e
3 changed files with 84 additions and 0 deletions

View File

@ -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]
---*/

View File

@ -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]
---*/

View File

@ -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]
---*/