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
// Example code that causes the issuefunctionfoo() {
// Code that fails to parse, or causes an error$sql = <<<'SQL'
CREATE TABLE dbal_1779 ( foo VARCHAR (64) , bar TEXT (100))
SQL;
}
Maybe the issue is that the tree shows heredoc_start and not nowdoc_start, if such a thing exists…
The text was updated successfully, but these errors were encountered:
greg0ire
changed the title
bug: SQL injection works with heredoc, but now with nowdoc
bug: SQL injection works with heredoc, but not with nowdoc
May 19, 2024
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.22.5
Describe the bug
SQL is not recognized as such when enclosed in nowdoc.
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
Repro
Maybe the issue is that the tree shows
heredoc_start
and notnowdoc_start
, if such a thing exists…The text was updated successfully, but these errors were encountered: