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
Does not properly end SQL language injection in tagged template literals. The npm package sql-template-strings supports a .append function that can be used to chain together a complex sql query. If a parenthesis is opened in one tagged template literal where the injected grammar is sql, the language injection doesn't stop when the template string is terminated.
Steps to Reproduce
Open a .js file
create a a tagged template literal with SQL``
Do something like
constsql=SQL`SELECT * FROM ( SELECT *`...writemorejavascript
The javascript will not be parsed correctly until the parens is closed.
Expected behavior: terminated language injection when template literal is closed
Actual behavior: javascript below will be parsed incorrectly
Prerequisites
Description
Does not properly end SQL language injection in tagged template literals. The npm package sql-template-strings supports a .append function that can be used to chain together a complex sql query. If a parenthesis is opened in one tagged template literal where the injected grammar is sql, the language injection doesn't stop when the template string is terminated.
Steps to Reproduce
The javascript will not be parsed correctly until the parens is closed.
Expected behavior: terminated language injection when template literal is closed
Actual behavior: javascript below will be parsed incorrectly
Reproduces how often: 100%
Versions
Atom : 1.31.1
Electron: 2.0.7
Chrome : 61.0.3163.100
Node : 8.9.3
OS: Ubuntu 16.04
The text was updated successfully, but these errors were encountered: