mirror of https://github.com/tc39/test262.git
Add template for whitespace-after-regular-expression-literal tests
This commit is contained in:
parent
a7fed497c6
commit
5b1cfdd2b0
|
@ -0,0 +1,25 @@
|
|||
// Copyright (C) 2021 Richard Gibson. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/white-space/after-regular-expression-literal-
|
||||
name: after regular expression literal
|
||||
esid: sec-lexical-and-regexp-grammars
|
||||
info: |
|
||||
Input elements other than white space and comments form the terminal symbols
|
||||
for the syntactic grammar for ECMAScript and are called ECMAScript
|
||||
<em>tokens</em>. These tokens are the reserved words, identifiers, literals,
|
||||
and punctuators of the ECMAScript language. Moreover, line terminators,
|
||||
although not considered to be tokens, also become part of the stream of input
|
||||
elements and guide the process of automatic semicolon insertion
|
||||
(<emu-xref href="#sec-automatic-semicolon-insertion"></emu-xref>). Simple
|
||||
white space and single-line comments are discarded and do not appear in the
|
||||
stream of input elements for the syntactic grammar. A |MultiLineComment| (that
|
||||
is, a comment of the form `/*`…`*``/` regardless of whether it spans more
|
||||
than one line) is likewise simply discarded if it contains no line terminator;
|
||||
but if a |MultiLineComment| contains one or more line terminators, then it is
|
||||
replaced by a single line terminator, which becomes part of the stream of
|
||||
input elements for the syntactic grammar.
|
||||
---*/
|
||||
|
||||
/x/g/*{ character }*/;
|
Loading…
Reference in New Issue