barklan / inline_sql_syntax

Highlight and lint inline SQL strings.
https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax
MIT License
58 stars 25 forks source link

Support for PHP #10

Closed aszenz closed 2 years ago

aszenz commented 2 years ago

In php files multi line sql is often written as

  $query = <<<SQL
      SELECT * FROM FOO WHERE FOO.bar = '1'
  SQL;
barklan commented 2 years ago

Thanks for opening issue, @aszenz! Added syntax highlighting for PHP strings and multiline PHP (using the format above) in v2.9.0. Leaving it open for now - please tell me if it works for your needs or if something seems weird.

aszenz commented 2 years ago

The built in vs code php plugin already supported syntax highlighting of sql strings for php. What is missing is diagnostics, I see u added https://github.com/barklan/inline_sql_syntax/issues/22, so feel free to close this issue

barklan commented 2 years ago

Should work starting from 2.13.1