Skip to content

Commit 81dc040

Browse files
periabzbarsky
authored andcommitted
Disallow underscore or hyphen only identifiers (#633)
1 parent 1fa8c43 commit 81dc040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13562,7 +13562,7 @@ expression syntax [[!PERLRE]]) as follows:
1356213562
<tr>
1356313563
<td id="prod-identifier"><emu-t class="regex">identifier</emu-t></td>
1356413564
<td><code>=</code></td>
13565-
<td><code class="regex"><span class="mute">/</span>_?[A-Za-z-][0-9A-Z_a-z-]*<span class="mute">/</span></code></td>
13565+
<td><code class="regex"><span class="mute">/</span>[_-]?[A-Za-z][0-9A-Z_a-z-]*<span class="mute">/</span></code></td>
1356613566
</tr>
1356713567
<tr>
1356813568
<td id="prod-string"><emu-t class="regex">string</emu-t></td>

0 commit comments

Comments
 (0)