-
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
[SQL] use inheritance to support different dialects #3046
base: master
Are you sure you want to change the base?
Commits on Oct 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 09f5a6e - Browse repository at this point
Copy the full SHA 09f5a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 841225c - Browse repository at this point
Copy the full SHA 841225cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 666c89e - Browse repository at this point
Copy the full SHA 666c89eView commit details
Commits on Oct 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2227515 - Browse repository at this point
Copy the full SHA 2227515View commit details -
Configuration menu - View commit details
-
Copy full SHA for daca95f - Browse repository at this point
Copy the full SHA daca95fView commit details
Commits on Oct 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2536946 - Browse repository at this point
Copy the full SHA 2536946View commit details
Commits on Oct 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 91b2f89 - Browse repository at this point
Copy the full SHA 91b2f89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 245c748 - Browse repository at this point
Copy the full SHA 245c748View commit details -
Configuration menu - View commit details
-
Copy full SHA for 696bc38 - Browse repository at this point
Copy the full SHA 696bc38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f6060 - Browse repository at this point
Copy the full SHA 82f6060View commit details
Commits on Oct 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a527926 - Browse repository at this point
Copy the full SHA a527926View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea42460 - Browse repository at this point
Copy the full SHA ea42460View commit details
Commits on Oct 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e92279b - Browse repository at this point
Copy the full SHA e92279bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9067ab5 - Browse repository at this point
Copy the full SHA 9067ab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9ffa2d - Browse repository at this point
Copy the full SHA e9ffa2dView commit details -
- remove redundant lines - convert indentation to tabs
Configuration menu - View commit details
-
Copy full SHA for c283637 - Browse repository at this point
Copy the full SHA c283637View commit details -
Configuration menu - View commit details
-
Copy full SHA for 700f8f8 - Browse repository at this point
Copy the full SHA 700f8f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7224d18 - Browse repository at this point
Copy the full SHA 7224d18View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff347d1 - Browse repository at this point
Copy the full SHA ff347d1View commit details
Commits on Oct 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 076427b - Browse repository at this point
Copy the full SHA 076427bView commit details -
Merge pull request #10 from jrappen/sql
[SQL] fix tmPreferences and tests
Configuration menu - View commit details
-
Copy full SHA for 0d66768 - Browse repository at this point
Copy the full SHA 0d66768View commit details
Commits on Oct 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6e3c84c - Browse repository at this point
Copy the full SHA 6e3c84cView commit details
Commits on Oct 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for adaaf66 - Browse repository at this point
Copy the full SHA adaaf66View commit details
Commits on Oct 23, 2021
-
Apply suggestions from code review
Co-authored-by: deathaxe <deathaxe@web.de>
Configuration menu - View commit details
-
Copy full SHA for 488ee10 - Browse repository at this point
Copy the full SHA 488ee10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73c8870 - Browse repository at this point
Copy the full SHA 73c8870View commit details -
Apply suggestions from code review
Co-authored-by: deathaxe <deathaxe@web.de>
Configuration menu - View commit details
-
Copy full SHA for caa1cb7 - Browse repository at this point
Copy the full SHA caa1cb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c4ffea - Browse repository at this point
Copy the full SHA 6c4ffeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c3df74 - Browse repository at this point
Copy the full SHA 0c3df74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 843f708 - Browse repository at this point
Copy the full SHA 843f708View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16e9e12 - Browse repository at this point
Copy the full SHA 16e9e12View commit details
Commits on Oct 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 545ddcb - Browse repository at this point
Copy the full SHA 545ddcbView commit details
Commits on Nov 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for edb2e68 - Browse repository at this point
Copy the full SHA edb2e68View commit details
Commits on Nov 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a305dc7 - Browse repository at this point
Copy the full SHA a305dc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8940b18 - Browse repository at this point
Copy the full SHA 8940b18View commit details
Commits on Nov 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ae58314 - Browse repository at this point
Copy the full SHA ae58314View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4754f4 - Browse repository at this point
Copy the full SHA a4754f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd4b7e - Browse repository at this point
Copy the full SHA bdd4b7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e246202 - Browse repository at this point
Copy the full SHA e246202View commit details
Commits on Nov 14, 2021
-
[SQL] fix Cassandra and TSQL syntax tests after context-specific type…
… awareness changes
Configuration menu - View commit details
-
Copy full SHA for ee8a3f5 - Browse repository at this point
Copy the full SHA ee8a3f5View commit details
Commits on Nov 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 22a8677 - Browse repository at this point
Copy the full SHA 22a8677View commit details -
Merge pull request #11 from forkeith/more_sql
[SQL] work on PostgreSQL
Configuration menu - View commit details
-
Copy full SHA for d3357e8 - Browse repository at this point
Copy the full SHA d3357e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac08fc6 - Browse repository at this point
Copy the full SHA ac08fc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5350f07 - Browse repository at this point
Copy the full SHA 5350f07View commit details
Commits on Dec 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9f56575 - Browse repository at this point
Copy the full SHA 9f56575View commit details
Commits on Dec 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3c4eeaf - Browse repository at this point
Copy the full SHA 3c4eeafView commit details
Commits on Dec 18, 2021
-
[SQL] Enable variable interpolations
This commit turns SQL.sublime-syntax into an inherited syntax of MySQL.sublime-syntax in order to properly support variable interpolation in Ruby HEREDOCs. The Ruby package contains a SQL (for Ruby).sublime-syntax, which inherits from SQL.sublime-syntax in order to inject variable interpolation via `prototype`. This mechanism does only work if SQL.sublime-syntax inherits from the desired dialect as well.
Configuration menu - View commit details
-
Copy full SHA for fdcbe5e - Browse repository at this point
Copy the full SHA fdcbe5eView commit details -
Merge pull request #12 from deathaxe/sql
[SQL] Enable variable interpolations
Configuration menu - View commit details
-
Copy full SHA for 478d1ac - Browse repository at this point
Copy the full SHA 478d1acView commit details
Commits on Feb 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7e72cf5 - Browse repository at this point
Copy the full SHA 7e72cf5View commit details
Commits on Feb 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3470a3d - Browse repository at this point
Copy the full SHA 3470a3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 454877f - Browse repository at this point
Copy the full SHA 454877fView commit details
Commits on Feb 13, 2022
-
Apply suggestions from code review
Co-authored-by: deathaxe <deathaxe@web.de>
Configuration menu - View commit details
-
Copy full SHA for 67f8cb5 - Browse repository at this point
Copy the full SHA 67f8cb5View commit details
Commits on Feb 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bc9e021 - Browse repository at this point
Copy the full SHA bc9e021View commit details
Commits on Mar 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0dfb869 - Browse repository at this point
Copy the full SHA 0dfb869View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ef35ee - Browse repository at this point
Copy the full SHA 2ef35eeView commit details -
Merge pull request #13 from deathaxe/sql
[SQL] Merge master and update PHP's SQL syntaxes
Configuration menu - View commit details
-
Copy full SHA for 6f903b5 - Browse repository at this point
Copy the full SHA 6f903b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e130b9 - Browse repository at this point
Copy the full SHA 5e130b9View commit details
Commits on Apr 13, 2022
-
[SQL] Rename PostgresSQL to PostgreSQL
* The official site rarely refers to is as "PostgresSQL". * The name "PostgreSQL" has way more results in search engines. * The Wikipedia page never uses "PostgresSQL".
Configuration menu - View commit details
-
Copy full SHA for ee39f29 - Browse repository at this point
Copy the full SHA ee39f29View commit details
Commits on Apr 14, 2022
-
Merge pull request #14 from azizk/aziz/postgres
[SQL] Rename PostgresSQL to PostgreSQL
Configuration menu - View commit details
-
Copy full SHA for a49f534 - Browse repository at this point
Copy the full SHA a49f534View commit details
Commits on Apr 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c6d4ccc - Browse repository at this point
Copy the full SHA c6d4cccView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7ada36 - Browse repository at this point
Copy the full SHA c7ada36View commit details
Commits on Apr 21, 2022
-
Merge pull request #15 from azizk/psql-contributions
Renamed scope suffix and added psql file extension
Configuration menu - View commit details
-
Copy full SHA for 4c207bc - Browse repository at this point
Copy the full SHA 4c207bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29cb4a9 - Browse repository at this point
Copy the full SHA 29cb4a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad5e59f - Browse repository at this point
Copy the full SHA ad5e59fView commit details
Commits on May 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aac3833 - Browse repository at this point
Copy the full SHA aac3833View commit details
Commits on May 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for acfbeeb - Browse repository at this point
Copy the full SHA acfbeebView commit details
Commits on May 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5868db6 - Browse repository at this point
Copy the full SHA 5868db6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 511206a - Browse repository at this point
Copy the full SHA 511206aView commit details -
Merge pull request #16 from deathaxe/sql
[SQL] Resolve merge commits
Configuration menu - View commit details
-
Copy full SHA for 548752d - Browse repository at this point
Copy the full SHA 548752dView commit details
Commits on Jun 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f586ddc - Browse repository at this point
Copy the full SHA f586ddcView commit details -
1. renames context to plural as it doesn't pop 2. move after strings context
Configuration menu - View commit details
-
Copy full SHA for 7d7fe03 - Browse repository at this point
Copy the full SHA 7d7fe03View commit details -
Required for variable interpolation by inheriting syntaxes.
Configuration menu - View commit details
-
Copy full SHA for 29320a9 - Browse repository at this point
Copy the full SHA 29320a9View commit details -
Reorganize number/consant/string literals
1. Rename `numbers-variables-and-strings` to `literals-and-variables`. 2. Create a context for each literal type. 3. Organize all literal contexts next to each other.
Configuration menu - View commit details
-
Copy full SHA for ef8716b - Browse repository at this point
Copy the full SHA ef8716bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4e0456 - Browse repository at this point
Copy the full SHA b4e0456View commit details -
... and move pattern to `numbers` context.
Configuration menu - View commit details
-
Copy full SHA for 301bddf - Browse repository at this point
Copy the full SHA 301bddfView commit details -
Reorganize inside-... contexts
inside-... contexts should directly follow their begin- counter parts, especially if there's only one or two.
Configuration menu - View commit details
-
Copy full SHA for e8eee03 - Browse repository at this point
Copy the full SHA e8eee03View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf0bed6 - Browse repository at this point
Copy the full SHA cf0bed6View commit details
Commits on Jun 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4ca8ec5 - Browse repository at this point
Copy the full SHA 4ca8ec5View commit details
Commits on Jun 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9f10f81 - Browse repository at this point
Copy the full SHA 9f10f81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27a6a5f - Browse repository at this point
Copy the full SHA 27a6a5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for db1faa0 - Browse repository at this point
Copy the full SHA db1faa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2de580 - Browse repository at this point
Copy the full SHA e2de580View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f82531 - Browse repository at this point
Copy the full SHA 3f82531View commit details -
Configuration menu - View commit details
-
Copy full SHA for 998f7a1 - Browse repository at this point
Copy the full SHA 998f7a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b941956 - Browse repository at this point
Copy the full SHA b941956View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3b4290 - Browse repository at this point
Copy the full SHA a3b4290View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86ac1c4 - Browse repository at this point
Copy the full SHA 86ac1c4View commit details
Commits on Jun 22, 2022
-
Use more efficient lookahead to skip whitespace
Allow comments in between.
Configuration menu - View commit details
-
Copy full SHA for 6d68d53 - Browse repository at this point
Copy the full SHA 6d68d53View commit details -
Refactor
cast
as builtin function-callCAST and CONVERT are both listed as related functions in TSQL specs.
Configuration menu - View commit details
-
Copy full SHA for 6f32bbe - Browse repository at this point
Copy the full SHA 6f32bbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0c8b41 - Browse repository at this point
Copy the full SHA e0c8b41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02123eb - Browse repository at this point
Copy the full SHA 02123ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for c25d4dd - Browse repository at this point
Copy the full SHA c25d4ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6965b9 - Browse repository at this point
Copy the full SHA f6965b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6c269 - Browse repository at this point
Copy the full SHA ad6c269View commit details
Commits on Jun 26, 2022
-
Refactor/fix identifier boundaries
Old implementation caused whitespace in front of identifiers being included into identifier scope. That's fixed by this commit.
Configuration menu - View commit details
-
Copy full SHA for c6e3dcd - Browse repository at this point
Copy the full SHA c6e3dcdView commit details -
Add support for interpolated identifiers
This commit refactors `identifier` related contexts by setting dedicated `inside-...identifier-part` contexts on stack, which may be extended by variable interpolation patterns. PHP makes use of it, currently.
Configuration menu - View commit details
-
Copy full SHA for db7dad4 - Browse repository at this point
Copy the full SHA db7dad4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 472603b - Browse repository at this point
Copy the full SHA 472603bView commit details -
Refactor table-name-or-subquery
- move `join-on` and `set` upwards before `table-name-or-subquery` - reuse `group` context - a branch is like a push, so `table-valued-function-call` should have never popped `table-name-or-subquery` before. No idea why it worked anyway without a final `pop: 2`. `table-name-or-subquery` is now popped off stack before evaluating branches, so any normal `pop: 1` causes to continue with the next parent context of `table-name-or-subquery`. Note: The limitation of `push` only in branches has been fixed 409x dev builds, so `table-name-not-function-call` can safely be set away from. - remove `pop-on-top-level-reserved-word` from `maybe-table-alias` and leave handling fallback up to `single-identifer` ... It may require some more round trips for incomplete code scenarios, but saves some if code is complete and valid.
Configuration menu - View commit details
-
Copy full SHA for e73d683 - Browse repository at this point
Copy the full SHA e73d683View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6087e1 - Browse repository at this point
Copy the full SHA a6087e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f11859 - Browse repository at this point
Copy the full SHA 7f11859View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0a5c05 - Browse repository at this point
Copy the full SHA b0a5c05View commit details
Commits on Jul 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f6f10ef - Browse repository at this point
Copy the full SHA f6f10efView commit details -
It doesn't look like `LIKE "something"` is supported within `SET something` statements. Thus a dedicated like-expressions context is created to organize them.
Configuration menu - View commit details
-
Copy full SHA for 23708c7 - Browse repository at this point
Copy the full SHA 23708c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc14941 - Browse repository at this point
Copy the full SHA bc14941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1471890 - Browse repository at this point
Copy the full SHA 1471890View commit details -
Moves statement related contexts around
Configuration menu - View commit details
-
Copy full SHA for bc056c9 - Browse repository at this point
Copy the full SHA bc056c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b23344c - Browse repository at this point
Copy the full SHA b23344cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c84c20 - Browse repository at this point
Copy the full SHA 4c84c20View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed8cb47 - Browse repository at this point
Copy the full SHA ed8cb47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5597b02 - Browse repository at this point
Copy the full SHA 5597b02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c56e2e - Browse repository at this point
Copy the full SHA 9c56e2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d539e1 - Browse repository at this point
Copy the full SHA 9d539e1View commit details
Commits on Jul 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ae27fa1 - Browse repository at this point
Copy the full SHA ae27fa1View commit details -
Replace capture groups by contexts with simple patterns.
Configuration menu - View commit details
-
Copy full SHA for 49d6ad8 - Browse repository at this point
Copy the full SHA 49d6ad8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26a1ea5 - Browse repository at this point
Copy the full SHA 26a1ea5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0607a8b - Browse repository at this point
Copy the full SHA 0607a8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4e0bc2 - Browse repository at this point
Copy the full SHA e4e0bc2View commit details -
Reorganize T-SQL "with" expressions
- also moves some other expressions related contexts
Configuration menu - View commit details
-
Copy full SHA for 45a616d - Browse repository at this point
Copy the full SHA 45a616dView commit details -
Reorganize T-SQL table-names-or-subquery
Just move the whole set of contexts to logical position of SQL (basic).
Configuration menu - View commit details
-
Copy full SHA for 0711ff9 - Browse repository at this point
Copy the full SHA 0711ff9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ee6154 - Browse repository at this point
Copy the full SHA 7ee6154View commit details -
1. adjust code style 2. move word boundary checks to the `match` rules
Configuration menu - View commit details
-
Copy full SHA for 543c1eb - Browse repository at this point
Copy the full SHA 543c1ebView commit details -
Convert all case-insensitive patterns to lower-case
Remove mixed cased patterns.
Configuration menu - View commit details
-
Copy full SHA for e6ee23f - Browse repository at this point
Copy the full SHA e6ee23fView commit details -
Current implementation skipped `ddl-alter-common` by prepending (?=\S)
Configuration menu - View commit details
-
Copy full SHA for 6d913dc - Browse repository at this point
Copy the full SHA 6d913dcView commit details
Commits on Jul 6, 2022
-
Rename expressions-or-column-names to plural
Indicate non-popping behavior
Configuration menu - View commit details
-
Copy full SHA for 9e4dbf3 - Browse repository at this point
Copy the full SHA 9e4dbf3View commit details -
Fix last computed column in group
Missing `)` in bailout caused closing parentheses to be highlighted illegal.
Configuration menu - View commit details
-
Copy full SHA for 0ed3589 - Browse repository at this point
Copy the full SHA 0ed3589View commit details -
Configuration menu - View commit details
-
Copy full SHA for a58db1d - Browse repository at this point
Copy the full SHA a58db1dView commit details
Commits on Jul 7, 2022
-
Merge pull request #18 from deathaxe/sql
Reorganization of contexts and some fixes
Configuration menu - View commit details
-
Copy full SHA for 286372c - Browse repository at this point
Copy the full SHA 286372cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e58cb8 - Browse repository at this point
Copy the full SHA 3e58cb8View commit details
Commits on Jul 8, 2022
-
Refactor column declaration lists
Inspired by a missing bailout in `ddl-table-creation-columns` context this commit separates it into `column-declaration-list` and a `column-reference-list` in order to 1. properly scope column definitions and references different 2. fix/prevent possible syntax highlighting issues caused by the overridden context in T-SQL. Column references don't appear to support type information or file-groups following the reference list. As a `column-modifiers` section exists already, it is re-used to organize all column related contexts. Related contexts are moved to the relative position in all dialects.
Configuration menu - View commit details
-
Copy full SHA for 0799802 - Browse repository at this point
Copy the full SHA 0799802View commit details -
Even probably unlikely with SQL, the `main` context may be overridden by an inheriting syntax in order to prepend stuff like shebang or frontmatter. Thus it should never be included in the middle of the syntax.
Configuration menu - View commit details
-
Copy full SHA for 10e4c1e - Browse repository at this point
Copy the full SHA 10e4c1eView commit details
Commits on Jul 9, 2022
-
Merge pull request #19 from deathaxe/sql
Separate column declaration and reference lists
Configuration menu - View commit details
-
Copy full SHA for 4cc98a3 - Browse repository at this point
Copy the full SHA 4cc98a3View commit details
Commits on Jul 10, 2022
-
source: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/control-of-flow?view=sql-server-ver16 Note: RETURN seems not supported by Casandra and is therefore removed from `reserved_words in SQL (basic). RETURN is defined in MySQL, thus not needed in PostresSQL, which is inherit from MySQL.
Configuration menu - View commit details
-
Copy full SHA for f8c096d - Browse repository at this point
Copy the full SHA f8c096dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7006e54 - Browse repository at this point
Copy the full SHA 7006e54View commit details -
Cassandra: Reorganize partition key contexts
Moves `inside-partition-key` context to COLUMN DECLARATIONS section, because `inside-column-declaration-list` is the only context which uses it.
Configuration menu - View commit details
-
Copy full SHA for 3ea6eb0 - Browse repository at this point
Copy the full SHA 3ea6eb0View commit details
Commits on Jul 12, 2022
-
This commit designs ddl statement context structure to more closely following syntax sql architecture. Each ddl statement starts just with its CREATE/DROP/ALTER keyword, to avoid capture groups and introduce a `...-target` context which is used to implement dedicated code paths for each target as needed. Goal is to increase flexibility in adding new statements of different structure and to reduce risk of conflicts between dialects. Removes `meta.toc-list` to avoid mix of single-/multi-scopes in identifiers. Indexing is handled via `entity.name` and tmPreferences.
Configuration menu - View commit details
-
Copy full SHA for 5369bbb - Browse repository at this point
Copy the full SHA 5369bbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 969fcd1 - Browse repository at this point
Copy the full SHA 969fcd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4278b99 - Browse repository at this point
Copy the full SHA 4278b99View commit details
Commits on Jul 16, 2022
-
Remove
ddl-
from context namesThere are so many statements which don't fit into ddl- vs. dml- scheme (see T-SQL) and many of them need dedicated code paths to get highlighted accurately. Hence a naming scheme like `<keyword>-statements` seems enought.
Configuration menu - View commit details
-
Copy full SHA for 257cba7 - Browse repository at this point
Copy the full SHA 257cba7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9476e36 - Browse repository at this point
Copy the full SHA 9476e36View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad140af - Browse repository at this point
Copy the full SHA ad140afView commit details
Commits on Jul 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bb5d3e9 - Browse repository at this point
Copy the full SHA bb5d3e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f7daf6 - Browse repository at this point
Copy the full SHA 7f7daf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a03ac2f - Browse repository at this point
Copy the full SHA a03ac2fView commit details -
Accounts may consist of `user@host` with `%` being a wildcard host name.
Configuration menu - View commit details
-
Copy full SHA for d2dd962 - Browse repository at this point
Copy the full SHA d2dd962View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb17a71 - Browse repository at this point
Copy the full SHA cb17a71View commit details -
Configuration menu - View commit details
-
Copy full SHA for da874e9 - Browse repository at this point
Copy the full SHA da874e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5be4c - Browse repository at this point
Copy the full SHA df5be4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dae0ec0 - Browse repository at this point
Copy the full SHA dae0ec0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7ab07f - Browse repository at this point
Copy the full SHA d7ab07fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d21f06 - Browse repository at this point
Copy the full SHA 1d21f06View commit details -
Configuration menu - View commit details
-
Copy full SHA for d324986 - Browse repository at this point
Copy the full SHA d324986View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5707b4f - Browse repository at this point
Copy the full SHA 5707b4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f9e8cb - Browse repository at this point
Copy the full SHA 6f9e8cbView commit details -
MySQL: Reorganize test categories
Prepare for DDL tests. User/Role related account management statements are a sub-group of data definition language.
Configuration menu - View commit details
-
Copy full SHA for 90096a5 - Browse repository at this point
Copy the full SHA 90096a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9e2f22 - Browse repository at this point
Copy the full SHA d9e2f22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3e28a - Browse repository at this point
Copy the full SHA 5e3e28aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59641a2 - Browse repository at this point
Copy the full SHA 59641a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd8a9bd - Browse repository at this point
Copy the full SHA dd8a9bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4268bb6 - Browse repository at this point
Copy the full SHA 4268bb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 866e570 - Browse repository at this point
Copy the full SHA 866e570View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b02297 - Browse repository at this point
Copy the full SHA 3b02297View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dce643 - Browse repository at this point
Copy the full SHA 3dce643View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9341b0 - Browse repository at this point
Copy the full SHA e9341b0View commit details -
MySQL: Add CREATE FUNCTION/PROCEDURE statements
Looks pretty much different from what exists in T-SQL and SQL (basic). As MySQL seems to follow SQL-99 syntax more closely, implementation in SQL (basic) is adjusted. Rename contexts from `procedure` to `function` as it is the more common name used across syntaxes.
Configuration menu - View commit details
-
Copy full SHA for a13c93d - Browse repository at this point
Copy the full SHA a13c93dView commit details -
MySQL: Reorganize DEFINER expressions
Move to global `create/alter-target` as they are not dedicated to events.
Configuration menu - View commit details
-
Copy full SHA for ae8b1ce - Browse repository at this point
Copy the full SHA ae8b1ceView commit details
Commits on Jul 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ff5f685 - Browse repository at this point
Copy the full SHA ff5f685View commit details
Commits on Jul 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b6960a6 - Browse repository at this point
Copy the full SHA b6960a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e4e60c - Browse repository at this point
Copy the full SHA 9e4e60cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59c0d87 - Browse repository at this point
Copy the full SHA 59c0d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ac3b2d - Browse repository at this point
Copy the full SHA 3ac3b2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 253037d - Browse repository at this point
Copy the full SHA 253037dView commit details
Commits on Aug 6, 2022
-
SQL: Common scheme of DDL statement arguments
Introduce dedicated `create/drop/alter-...-args` comments to let dialects support keywords/expressions per statement. Nearly each statement supports a dedicated set of keywords and/or expressions.
Configuration menu - View commit details
-
Copy full SHA for 412bf15 - Browse repository at this point
Copy the full SHA 412bf15View commit details
Commits on Aug 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0fdce03 - Browse repository at this point
Copy the full SHA 0fdce03View commit details
Commits on Aug 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5fe0636 - Browse repository at this point
Copy the full SHA 5fe0636View commit details
Commits on Jul 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f7cd539 - Browse repository at this point
Copy the full SHA f7cd539View commit details
Commits on Jul 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for dab0197 - Browse repository at this point
Copy the full SHA dab0197View commit details -
Configuration menu - View commit details
-
Copy full SHA for f88d5a8 - Browse repository at this point
Copy the full SHA f88d5a8View commit details -
- regarding users and permissions/roles - fix bug with declaring multiple variables in one statement in TSQL - support for double colon accessor in TSQL - support for object oriented function calls in TSQL - fix scoping of `MAX` as a size parameter to a variable length data type - support unquoted strings and generic identifiers as `WITH` values in TSQL - scope "datepart" units in TSQL
Configuration menu - View commit details
-
Copy full SHA for 9b67bd8 - Browse repository at this point
Copy the full SHA 9b67bd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebca675 - Browse repository at this point
Copy the full SHA ebca675View commit details -
Configuration menu - View commit details
-
Copy full SHA for b26f93d - Browse repository at this point
Copy the full SHA b26f93dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33c5a06 - Browse repository at this point
Copy the full SHA 33c5a06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fef6f9 - Browse repository at this point
Copy the full SHA 1fef6f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 990b166 - Browse repository at this point
Copy the full SHA 990b166View commit details
Commits on Aug 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fb8ef15 - Browse repository at this point
Copy the full SHA fb8ef15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 733265f - Browse repository at this point
Copy the full SHA 733265fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d67c718 - Browse repository at this point
Copy the full SHA d67c718View commit details -
Configuration menu - View commit details
-
Copy full SHA for a99b7ea - Browse repository at this point
Copy the full SHA a99b7eaView commit details
Commits on Aug 12, 2023
-
[SQL] improve postgresql syntax slightly
with scoping for: - $$ - for loops
Configuration menu - View commit details
-
Copy full SHA for edb2cc7 - Browse repository at this point
Copy the full SHA edb2cc7View commit details
Commits on Aug 17, 2023
-
[SQL] Move user identifier to SQL (Basic)
This commit... 1. moves user-name related contexts to SQL (Basic) 2. adds a `builtin_user_functions` variable, which can be modified by MySQL to re-use `built-in-user-function-call(s)` contexts from SQL (Basic) 3. fixes scope name of user functions => `support.function.user` 4. adjusts MySQL's user name meta scope to `meta.username.sql`
Configuration menu - View commit details
-
Copy full SHA for dc1185a - Browse repository at this point
Copy the full SHA dc1185aView commit details -
[SQL] Add variable for builtin scalar functions
Same as for builtin user functions before.
Configuration menu - View commit details
-
Copy full SHA for 128b16f - Browse repository at this point
Copy the full SHA 128b16fView commit details -
[SQL] Reorganize grant/revoke statements & expressions
This commit... 1. adds a `grant-statements` context to SQL (basic) to follow MySQL's scheme 2. reorganizes existing `grant` contexts under a "user management expressions" section by moving them in order to fulfill following context architecture: All syntaxes are organized like: 1. DDL statements 2. DML statements 3. UML statements (user management) 4. other statements 5. expressions - contexts for re-use in statements 6. names & identifiers (tables, users, ...) 8. operators & literals
Configuration menu - View commit details
-
Copy full SHA for fce8721 - Browse repository at this point
Copy the full SHA fce8721View commit details -
[SQL] merge MySQL and T-SQL user privileges
- adds `grant` and `revoke` to the list of reserved top-level keywords, which terminate statements. - adds "ALL PERMISSIONS" to T-SQL see: https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-database-permissions-transact-sql - share `user-privileges` context across dialects
Configuration menu - View commit details
-
Copy full SHA for a1337d7 - Browse repository at this point
Copy the full SHA a1337d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c92f79a - Browse repository at this point
Copy the full SHA c92f79aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5628ec1 - Browse repository at this point
Copy the full SHA 5628ec1View commit details -
The other GRANT statements at learn.microsoft.com/.../ indicate there are various more class types to consider for highlighting.
Configuration menu - View commit details
-
Copy full SHA for 436ba5a - Browse repository at this point
Copy the full SHA 436ba5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for aeb3ce6 - Browse repository at this point
Copy the full SHA aeb3ce6View commit details
Commits on Aug 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 42b187c - Browse repository at this point
Copy the full SHA 42b187cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 649b960 - Browse repository at this point
Copy the full SHA 649b960View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02161ef - Browse repository at this point
Copy the full SHA 02161efView commit details
Commits on Aug 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7e834cd - Browse repository at this point
Copy the full SHA 7e834cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59d96d8 - Browse repository at this point
Copy the full SHA 59d96d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 880068a - Browse repository at this point
Copy the full SHA 880068aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8073d9d - Browse repository at this point
Copy the full SHA 8073d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f7fffad - Browse repository at this point
Copy the full SHA f7fffadView commit details
Commits on Aug 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cf6f640 - Browse repository at this point
Copy the full SHA cf6f640View commit details -
Configuration menu - View commit details
-
Copy full SHA for a107580 - Browse repository at this point
Copy the full SHA a107580View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc5af53 - Browse repository at this point
Copy the full SHA bc5af53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 272041d - Browse repository at this point
Copy the full SHA 272041dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b1f29d - Browse repository at this point
Copy the full SHA 5b1f29dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b2d73d - Browse repository at this point
Copy the full SHA 5b2d73dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d22bf3 - Browse repository at this point
Copy the full SHA 8d22bf3View commit details
Commits on Aug 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 42ea97d - Browse repository at this point
Copy the full SHA 42ea97dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b574398 - Browse repository at this point
Copy the full SHA b574398View commit details
Commits on Oct 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cc2a871 - Browse repository at this point
Copy the full SHA cc2a871View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f5edee - Browse repository at this point
Copy the full SHA 1f5edeeView commit details
Commits on Oct 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d55ba7c - Browse repository at this point
Copy the full SHA d55ba7cView commit details -
This commit... 1. refactors JOIN syntax and table-name-or-subquery - fixes nested table references with advanced join expressions 2. restricts table-samples to T-SQL syntax as MySQL doesn't support it. 3. introduces common alias contexts for both, column/table aliases.
Configuration menu - View commit details
-
Copy full SHA for 071f96b - Browse repository at this point
Copy the full SHA 071f96bView commit details -
This commit... 1. renames `on-tables` context to `on-table-names` to be more explicit. Maybe there will be an `on-tables` which uses `table-name-or-subquery` in the future. 2.
Configuration menu - View commit details
-
Copy full SHA for 1cf5566 - Browse repository at this point
Copy the full SHA 1cf5566View commit details -
[SQL] Rename column-reference-list
This commit renames column reference contexts to `column-name-list` and arranges their section alphabetically within expressions.
Configuration menu - View commit details
-
Copy full SHA for 9176138 - Browse repository at this point
Copy the full SHA 9176138View commit details -
The `+` operator pattern in MySQL is redundant as it is already part of `expressions`.
Configuration menu - View commit details
-
Copy full SHA for 2c29093 - Browse repository at this point
Copy the full SHA 2c29093View commit details -
[SQL] Move stray brackets into separate contexts
Embedding syntaxes may want or require to disable invalid stray highlighting to avoid false positives after interrupted expressions or interpolation.
Configuration menu - View commit details
-
Copy full SHA for ec6fdc6 - Browse repository at this point
Copy the full SHA ec6fdc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2f0da - Browse repository at this point
Copy the full SHA ae2f0daView commit details -
[SQL] Add globally reserved words
This commit prevents globally reserved keywords to be matched as identifiers (column names, table names, ...).
Configuration menu - View commit details
-
Copy full SHA for f04117c - Browse repository at this point
Copy the full SHA f04117cView commit details -
[SQL] Simplify literal constants
Literal constants belong to reserved words and thus can be matched globally.
Configuration menu - View commit details
-
Copy full SHA for 245a439 - Browse repository at this point
Copy the full SHA 245a439View commit details -
This commit scopes variables such as `@var` in MySQL.
Configuration menu - View commit details
-
Copy full SHA for 3205950 - Browse repository at this point
Copy the full SHA 3205950View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcc2a93 - Browse repository at this point
Copy the full SHA dcc2a93View commit details -
Configuration menu - View commit details
-
Copy full SHA for d79bcbe - Browse repository at this point
Copy the full SHA d79bcbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ced5671 - Browse repository at this point
Copy the full SHA ced5671View commit details -
Configuration menu - View commit details
-
Copy full SHA for d837ea3 - Browse repository at this point
Copy the full SHA d837ea3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ab469d - Browse repository at this point
Copy the full SHA 9ab469dView commit details -
[SQL] reintroduce distinction between table aliases and column aliases
for more customizable highlighting between the two
Configuration menu - View commit details
-
Copy full SHA for 6dcaafe - Browse repository at this point
Copy the full SHA 6dcaafeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24583c3 - Browse repository at this point
Copy the full SHA 24583c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a0de68 - Browse repository at this point
Copy the full SHA 6a0de68View commit details
Commits on Nov 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c49b7f8 - Browse repository at this point
Copy the full SHA c49b7f8View commit details
Commits on Nov 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5d51874 - Browse repository at this point
Copy the full SHA 5d51874View commit details
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a4bad73 - Browse repository at this point
Copy the full SHA a4bad73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 734d51d - Browse repository at this point
Copy the full SHA 734d51dView commit details
Commits on Nov 26, 2023
-
[SQL] fix ALTER TABLE ... ADD sequence TYPE not being scoped correctly
ADD SEQUENCE isn't valid inside an ALTER TABLE context, so `sequence` here needs to be treated as a column name
Configuration menu - View commit details
-
Copy full SHA for b639a41 - Browse repository at this point
Copy the full SHA b639a41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7477d3f - Browse repository at this point
Copy the full SHA 7477d3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88751b5 - Browse repository at this point
Copy the full SHA 88751b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7c0650 - Browse repository at this point
Copy the full SHA d7c0650View commit details
Commits on Jun 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f05d8fa - Browse repository at this point
Copy the full SHA f05d8faView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2205e9 - Browse repository at this point
Copy the full SHA a2205e9View commit details
Commits on Jul 14, 2024
-
Merge remote-tracking branch 'sublimehq/master' into sql
Keith Hall committedJul 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 827b729 - Browse repository at this point
Copy the full SHA 827b729View commit details -
Keith Hall committed
Jul 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 1c49ea3 - Browse repository at this point
Copy the full SHA 1c49ea3View commit details
Commits on Sep 5, 2024
-
Merge remote-tracking branch 'sublimehq/master' into sql
Keith Hall committedSep 5, 2024 Configuration menu - View commit details
-
Copy full SHA for e4923a6 - Browse repository at this point
Copy the full SHA e4923a6View commit details
Commits on Sep 29, 2024
-
[MySQL] scope built in variables, parameters and duplicate key behavior
Keith Hall committedSep 29, 2024 Configuration menu - View commit details
-
Copy full SHA for 7abb7f4 - Browse repository at this point
Copy the full SHA 7abb7f4View commit details -
Merge branch 'master' into sql
Keith Hall committedSep 29, 2024 Configuration menu - View commit details
-
Copy full SHA for ed66b5e - Browse repository at this point
Copy the full SHA ed66b5eView commit details -
[MySQL] support LIKE expressions with # as an escape character
- default to slash if unspecified
Keith Hall committedSep 29, 2024 Configuration menu - View commit details
-
Copy full SHA for b571b85 - Browse repository at this point
Copy the full SHA b571b85View commit details
Commits on Nov 17, 2024
-
[SQL] more improvements to MySQL syntax
Keith Hall committedNov 17, 2024 Configuration menu - View commit details
-
Copy full SHA for fd38f1e - Browse repository at this point
Copy the full SHA fd38f1eView commit details -
Merge remote-tracking branch 'sublimehq/master' into sql
Keith Hall committedNov 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 2efa4a8 - Browse repository at this point
Copy the full SHA 2efa4a8View commit details