Debian Codegraph @

js/src/tests/test262/language/white-space/after-regular-expression-literal-line-feed.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/insignificant-input-elements/line-feed.case
3 // - src/insignificant-input-elements/expression/after-regular-expression-literal.template
4 /*---
5 description: U+000A LINE FEED <LF> (after regular expression literal)
6 esid: sec-lexical-and-regexp-grammars
7 flags: [generated]
8 info: |
9 Input elements other than white space and comments form the terminal symbols
10 for the syntactic grammar for ECMAScript and are called ECMAScript
11 <em>tokens</em>. These tokens are the reserved words, identifiers, literals,
12 and punctuators of the ECMAScript language. Moreover, line terminators,
13 although not considered to be tokens, also become part of the stream of input
14 elements and guide the process of automatic semicolon insertion
15 (<emu-xref href="#sec-automatic-semicolon-insertion"></emu-xref>). Simple
16 white space and single-line comments are discarded and do not appear in the
17 stream of input elements for the syntactic grammar. A |MultiLineComment| (that
18 is, a comment of the form `/*`&hellip;`*``/` regardless of whether it spans more
19 than one line) is likewise simply discarded if it contains no line terminator;
20 but if a |MultiLineComment| contains one or more line terminators, then it is
21 replaced by a single line terminator, which becomes part of the stream of
22 input elements for the syntactic grammar.
23
24 <tr>
25 <td>
26 `U+000A`
27 </td>
28 <td>
29 LINE FEED (LF)
30 </td>
31 <td>
32 &lt;LF&gt;
33 </td>
34 </tr>
35
36 LineTerminator ::
37 &lt;LF&gt;
38 &lt;CR&gt;
39 &lt;LS&gt;
40 &lt;PS&gt;
41 ---*/
42
43
44 /x/g
45 ;
46
47 reportCompare(0, 0);