Prerequisites
Description
Optional chaining is currently supported in Javascript files, but not in embedded script (<script> tag in HTML). It is currently treated as a ternary operator which breaks the detection of the closing tag </script> since a colon is expected.
I first reported the issue to language-vue to finally realized it was the case for all embedded scripts:
hedefalk/atom-vue#97

Steps to Reproduce
- Open a HTML file
- Within a
<script> tag, use the optional chaining operator (i.e. window.test?.something)
Expected behavior: Closing script tag detected
Actual behavior: Closing script tag not detected
Reproduces how often: Always
Versions
Atom: 1.32.2 upgraded to 1.34.0
OS: macOS Mojave version 10.14.3 (18D109)
Prerequisites
Description
Optional chaining is currently supported in Javascript files, but not in embedded script (
<script>tag in HTML). It is currently treated as a ternary operator which breaks the detection of the closing tag</script>since a colon is expected.I first reported the issue to
language-vueto finally realized it was the case for all embedded scripts:hedefalk/atom-vue#97
Steps to Reproduce
<script>tag, use the optional chaining operator (i.e.window.test?.something)Expected behavior: Closing script tag detected
Actual behavior: Closing script tag not detected
Reproduces how often: Always
Versions
Atom:
1.32.2upgraded to 1.34.0OS: macOS Mojave version 10.14.3 (18D109)