mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Add initial tests for WS positioned after RegExp literal
This commit is contained in:
parent
f1f3a2d542
commit
eecee31d05
11
src/regexp-insignificant-ws/000A-escaped.case
Normal file
11
src/regexp-insignificant-ws/000A-escaped.case
Normal file
@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2021 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: 000A (LF)
|
||||
esid: prod-RegularExpressionLiteral
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- character
|
||||
\u000A
|
11
src/regexp-insignificant-ws/000D-escaped.case
Normal file
11
src/regexp-insignificant-ws/000D-escaped.case
Normal file
@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2021 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: 000D (RF)
|
||||
esid: prod-RegularExpressionLiteral
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- character
|
||||
\u000D
|
16
src/regexp-insignificant-ws/default/after.template
Normal file
16
src/regexp-insignificant-ws/default/after.template
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2021 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/literals/regexp/
|
||||
name: WhiteSpace character positioned after
|
||||
esid: prod-RegularExpressionLiteral
|
||||
info: |
|
||||
In the ECMAScript lexical grammar, WhiteSpace is defined to include ASCII
|
||||
tab/vertical tab/form feed/space, nonbreaking space, BOM/zero-width
|
||||
nonbreaking space, and any code point with the Unicode property
|
||||
“Space_Separator”, and LineTerminator is any of U+000A LINE FEED, U+000D
|
||||
CARRIAGE RETURN, U+2028 LINE SEPARATOR, and U+2029 PARAGRAPH SEPARATOR. Both
|
||||
are required to be insignificant in between expression tokens
|
||||
---*/
|
||||
|
||||
/.//*{ character }*/;
|
Loading…
x
Reference in New Issue
Block a user