Skip to content

Commit e7e35cc

Browse files
committed
distribution: require start of line, semicolon, open or close curly braces, or */ to appear before [ before treating it as metadata (references #650)
1 parent 42cd702 commit e7e35cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/src/assembly/syntaxes/AS3.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@
13401340
<key>metadata</key>
13411341
<dict>
13421342
<key>begin</key>
1343-
<string>\[\s*\b([A-Za-z_\$][A-Za-z0-9_\$]+)\b</string>
1343+
<string>(?&lt;=(?:^|;|\}|\{|\*\/)\s*)\[\s*\b([A-Za-z_\$][A-Za-z0-9_\$]+)\b</string>
13441344
<key>beginCaptures</key>
13451345
<dict>
13461346
<key>1</key>

0 commit comments

Comments
 (0)