-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHP] The SQL keywords WITH
is not recognized a valid SQL.
#3375
Labels
T: bug
A bug in an existing language feature
Comments
and |
Maybe sync with Python. |
deathaxe
added a commit
to deathaxe/sublime-packages
that referenced
this issue
May 8, 2022
Fixes sublimehq#3375 This commit updates `sql_indicator` to detect more more kinds of SQL queries. - `IF ...` is borrowed from Python.sublime-syntax - `DECLARE` is borrowed from T-SQL
Merged
deathaxe
added a commit
that referenced
this issue
May 21, 2022
[PHP] Refactor Syntax Fixes #625 Fixes #643 Fixes #1168 Fixes #1665 Fixes #2459 Fixes #2625 Fixes #3214 Fixes #3375 Close #2789 This commit refactors PHP to... 1. solve known issues, such as huge syntax cache and compile times 2. improve maintainability and readability 3. apply some design patterns with regards to scope naming or syntax architecture Major Changes ============= - converts most contexts to named contexts - for readability reasons - to improve re-usability of contexts - to improve inheritance support - organizes all rules into - declarations (classes, functions, ...) - statements (if, else, while, ...) - expressions (arithmetic, function-calls, ...) - replaces (nearly) all `push ... with_prototype` constructs - to significantly reduce syntax cache size - gain more control over string interpolation scenarios `meta.string meta.interpolation` - significantly reduce risk of exceeding context sanity limit (see: #1665) - applies scope changes to more closely follow recently discussed scope naming - upgrades all parts to sublime-syntax version 2 - improves highlighting of incomplete statements and expressions - improve support for syntax based folding (as good as possible with regards to mixing HTML/CSS/JS with PHP) Benchmarks ========== Attribute | ST4131 | this PR | Diff --------------------------------------------------+----------+---------+-------------------- Syntax Cache Size | 38.050kB | 7.481kB | -30.569kB (-80%) Syntax Compile Time | 2,8s | 0,6s | -2,2ms (-78,6%) Syntax Test -- Performance [syntax_test_php.php] | 11,2ms | 7,9ms | -3.3ms (-29%) Syntax Test -- Performance [PHPUnit/composer.php] | 557ms | 376ms | -181ms (-32%)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
The string is not formatted as SQL
When using a string that starts with
SELECT
then syntax coloring is working, as expected, but with the keywordWITH
it stops working.This bug-report was caused by this (stackoverflow)question: How to make PHP handeling my "WITH CTE as" SQL?
The text was updated successfully, but these errors were encountered: