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
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
A browser will find the first closing script tag regardless of what Javascript syntax is surrounding it. In Atom, the javascript syntax seems to take precedence over the HTML, such that a terminating script tag within quotes doesn't render properly. This can lead to confusion when it doesn't work as shown in a browser.
Steps to Reproduce
Create an HTML file
Add an inline script tag
Write some string in the javascript containing an unescaped </script>
Expected behavior:
HTML syntax highlighting should resume immediately after the first closing script tag
Actual behavior:
Javascript syntax highlighting continues as if a closing script tag is valid in a string
Prerequisites
Description
A browser will find the first closing script tag regardless of what Javascript syntax is surrounding it. In Atom, the javascript syntax seems to take precedence over the HTML, such that a terminating script tag within quotes doesn't render properly. This can lead to confusion when it doesn't work as shown in a browser.
Steps to Reproduce
</script>
Expected behavior:
HTML syntax highlighting should resume immediately after the first closing script tag
Actual behavior:
Javascript syntax highlighting continues as if a closing script tag is valid in a string
Reproduces how often:
Consistently, but only when #242 doesn't occur.
Versions
Atom : 1.53.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0
Additional Information
The text was updated successfully, but these errors were encountered: