You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(javascript) fix regex inside parens after a non-regex (#2531)
* make the object attr container smarter
* deal with multi-line comments also
* comments in any order, spanning multiple lines
Essentially makes the object attr container much more sensitive by allowing it to look-ahead thru comments to find object keys - and therefore prevent them from being incorrectly matched by the "value container" rule.
<span class="hljs-attr">key5</span>: value, <span class="hljs-comment">/* with a multiline comment */</span>
8
+
<span class="hljs-attr">key6</span>: value,
9
+
<span class="hljs-attr">key7</span>: value, <span class="hljs-comment">/* with a multiline comment */</span> <span class="hljs-comment">// another comment</span>
10
+
<span class="hljs-attr">key8</span>: value,
11
+
<span class="hljs-attr">key9</span>: value, <span class="hljs-comment">/* with a REAL multiline
0 commit comments