Skip to content
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

Open
wants to merge 274 commits into
base: master
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 1, 2021

  1. Configuration menu
    Copy the full SHA
    36a7d02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8b7d5b View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2021

  1. Configuration menu
    Copy the full SHA
    bd52fc2 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2021

  1. Configuration menu
    Copy the full SHA
    3ee68e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e5bc1e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09f5a6e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    841225c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    666c89e View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2021

  1. Configuration menu
    Copy the full SHA
    2227515 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    daca95f View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Configuration menu
    Copy the full SHA
    2536946 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2021

  1. Configuration menu
    Copy the full SHA
    91b2f89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    245c748 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    696bc38 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82f6060 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2021

  1. Configuration menu
    Copy the full SHA
    a527926 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea42460 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. Configuration menu
    Copy the full SHA
    e92279b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9067ab5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e9ffa2d View commit details
    Browse the repository at this point in the history
  4. [SQL] fix tmPreferences

    - remove redundant lines
    - convert indentation to tabs
    jrappen committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    c283637 View commit details
    Browse the repository at this point in the history
  5. [SQL] split tests into separate ones for:

    - symbols
    - indentation
    jrappen committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    700f8f8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7224d18 View commit details
    Browse the repository at this point in the history
  7. [SQL] rename syntax test file

    jrappen committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    ff347d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. [SQL] clean up symbols tests

    jrappen committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    076427b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #10 from jrappen/sql

    [SQL] fix tmPreferences and tests
    keith-hall committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    0d66768 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2021

  1. Configuration menu
    Copy the full SHA
    6e3c84c View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Configuration menu
    Copy the full SHA
    adaaf66 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2021

  1. Apply suggestions from code review

    Co-authored-by: deathaxe <deathaxe@web.de>
    keith-hall and deathaxe committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    488ee10 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    73c8870 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: deathaxe <deathaxe@web.de>
    keith-hall and deathaxe committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    caa1cb7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6c4ffea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c3df74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    843f708 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    16e9e12 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. Configuration menu
    Copy the full SHA
    545ddcb View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Configuration menu
    Copy the full SHA
    edb2e68 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Configuration menu
    Copy the full SHA
    a305dc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8940b18 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2021

  1. Configuration menu
    Copy the full SHA
    ae58314 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a4754f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdd4b7e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e246202 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2021

  1. Configuration menu
    Copy the full SHA
    ee8a3f5 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. Configuration menu
    Copy the full SHA
    22a8677 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #11 from forkeith/more_sql

    [SQL] work on PostgreSQL
    keith-hall committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    d3357e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ac08fc6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5350f07 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    9f56575 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Configuration menu
    Copy the full SHA
    3c4eeaf View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2021

  1. [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.
    deathaxe committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    fdcbe5e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #12 from deathaxe/sql

    [SQL] Enable variable interpolations
    keith-hall committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    478d1ac View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Configuration menu
    Copy the full SHA
    7e72cf5 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2022

  1. Configuration menu
    Copy the full SHA
    3470a3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    454877f View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2022

  1. Apply suggestions from code review

    Co-authored-by: deathaxe <deathaxe@web.de>
    keith-hall and deathaxe committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    67f8cb5 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. [SQL] fixes

    keith-hall committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    bc9e021 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2022

  1. Configuration menu
    Copy the full SHA
    0dfb869 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ef35ee View commit details
    Browse the repository at this point in the history
  3. Merge pull request #13 from deathaxe/sql

    [SQL] Merge master and update PHP's SQL syntaxes
    keith-hall committed Mar 6, 2022
    Configuration menu
    Copy the full SHA
    6f903b5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5e130b9 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. [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".
    azizk committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    ee39f29 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. Merge pull request #14 from azizk/aziz/postgres

    [SQL] Rename PostgresSQL to PostgreSQL
    keith-hall committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    a49f534 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Configuration menu
    Copy the full SHA
    c6d4ccc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7ada36 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2022

  1. Merge pull request #15 from azizk/psql-contributions

    Renamed scope suffix and added psql file extension
    keith-hall committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    4c207bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29cb4a9 View commit details
    Browse the repository at this point in the history
  3. [SQL] fix syntax tests

    keith-hall committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    ad5e59f View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. Configuration menu
    Copy the full SHA
    aac3833 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    acfbeeb View commit details
    Browse the repository at this point in the history

Commits on May 21, 2022

  1. Configuration menu
    Copy the full SHA
    5868db6 View commit details
    Browse the repository at this point in the history
  2. [PHP] Fix interpolation

    deathaxe committed May 21, 2022
    Configuration menu
    Copy the full SHA
    511206a View commit details
    Browse the repository at this point in the history
  3. Merge pull request #16 from deathaxe/sql

    [SQL] Resolve merge commits
    keith-hall committed May 21, 2022
    Configuration menu
    Copy the full SHA
    548752d View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Remove unnecessary directives

    Those don't have any effect.
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    f586ddc View commit details
    Browse the repository at this point in the history
  2. Reorg string-escapes

    1. renames context to plural as it doesn't pop
    2. move after strings context
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    7d7fe03 View commit details
    Browse the repository at this point in the history
  3. Add meta.string

    Required for variable interpolation by inheriting syntaxes.
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    29320a9 View commit details
    Browse the repository at this point in the history
  4. 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.
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    ef8716b View commit details
    Browse the repository at this point in the history
  5. Add scope for decimal point

    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    b4e0456 View commit details
    Browse the repository at this point in the history
  6. TSQL: Scope hexadecimal base

    ... and move pattern to `numbers` context.
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    301bddf View commit details
    Browse the repository at this point in the history
  7. Reorganize inside-... contexts

    inside-... contexts should directly follow their begin- counter parts,
    especially if there's only one or two.
    deathaxe committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    e8eee03 View commit details
    Browse the repository at this point in the history
  8. [SQL] A few improvements

    Merge pull request #17 from deathaxe/sql
    keith-hall committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    cf0bed6 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Configuration menu
    Copy the full SHA
    4ca8ec5 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Reorganize groups contexts

    deathaxe committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    9f10f81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    27a6a5f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db1faa0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e2de580 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3f82531 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    998f7a1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b941956 View commit details
    Browse the repository at this point in the history
  8. Tweak declarations

    deathaxe committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    a3b4290 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    86ac1c4 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Use more efficient lookahead to skip whitespace

    Allow comments in between.
    deathaxe committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    6d68d53 View commit details
    Browse the repository at this point in the history
  2. Refactor cast as builtin function-call

    CAST and CONVERT are both listed as related functions in TSQL specs.
    deathaxe committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    6f32bbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e0c8b41 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02123eb View commit details
    Browse the repository at this point in the history
  5. Reorg prototypes

    deathaxe committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c25d4dd View commit details
    Browse the repository at this point in the history
  6. Reorg comments

    deathaxe committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    f6965b9 View commit details
    Browse the repository at this point in the history
  7. Reorg identifiers

    deathaxe committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    ad6c269 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. Refactor/fix identifier boundaries

    Old implementation caused whitespace in front of identifiers being
    included into identifier scope. That's fixed by this commit.
    deathaxe committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    c6e3dcd View commit details
    Browse the repository at this point in the history
  2. 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.
    deathaxe committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    db7dad4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    472603b View commit details
    Browse the repository at this point in the history
  4. 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.
    deathaxe committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    e73d683 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6087e1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7f11859 View commit details
    Browse the repository at this point in the history
  7. Reorganize operators

    deathaxe committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    b0a5c05 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2022

  1. Configuration menu
    Copy the full SHA
    f6f10ef View commit details
    Browse the repository at this point in the history
  2. Reorganize LIKE expressions

    It doesn't look like `LIKE "something"` is supported within `SET something` statements. Thus a dedicated like-expressions context is
    created to organize them.
    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    23708c7 View commit details
    Browse the repository at this point in the history
  3. Reorganize types

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    bc14941 View commit details
    Browse the repository at this point in the history
  4. Add expressions separator

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    1471890 View commit details
    Browse the repository at this point in the history
  5. Reorganize statement contexts

    Moves statement related contexts around
    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    bc056c9 View commit details
    Browse the repository at this point in the history
  6. Less restrictive whitespace

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    b23344c View commit details
    Browse the repository at this point in the history
  7. Fix cursor expressions

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    4c84c20 View commit details
    Browse the repository at this point in the history
  8. Refactor column modifiers

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    ed8cb47 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5597b02 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9c56e2e View commit details
    Browse the repository at this point in the history
  11. Update main keys order

    deathaxe committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    9d539e1 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2022

  1. Tweak casing

    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    ae27fa1 View commit details
    Browse the repository at this point in the history
  2. Refactor TABLESAMPLE contexts

    Replace capture groups by contexts with simple patterns.
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    49d6ad8 View commit details
    Browse the repository at this point in the history
  3. Lowercase keyword scopes

    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    26a1ea5 View commit details
    Browse the repository at this point in the history
  4. Remove duplicate pattern

    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    0607a8b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4e0bc2 View commit details
    Browse the repository at this point in the history
  6. Reorganize T-SQL "with" expressions

    - also moves some other expressions related contexts
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    45a616d View commit details
    Browse the repository at this point in the history
  7. Reorganize T-SQL table-names-or-subquery

    Just move the whole set of contexts to logical position of SQL (basic).
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    0711ff9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7ee6154 View commit details
    Browse the repository at this point in the history
  9. Refactor variables

    1. adjust code style
    2. move word boundary checks to the `match` rules
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    543c1eb View commit details
    Browse the repository at this point in the history
  10. Convert all case-insensitive patterns to lower-case

    Remove mixed cased patterns.
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    e6ee23f View commit details
    Browse the repository at this point in the history
  11. Fix T-SQL "alter" statement

    Current implementation skipped `ddl-alter-common` by prepending (?=\S)
    deathaxe committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    6d913dc View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. Rename expressions-or-column-names to plural

    Indicate non-popping behavior
    deathaxe committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    9e4dbf3 View commit details
    Browse the repository at this point in the history
  2. Fix last computed column in group

    Missing `)` in bailout caused closing parentheses to be highlighted
    illegal.
    deathaxe committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    0ed3589 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a58db1d View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Merge pull request #18 from deathaxe/sql

    Reorganization of contexts and some fixes
    keith-hall committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    286372c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e58cb8 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2022

  1. 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.
    deathaxe committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    0799802 View commit details
    Browse the repository at this point in the history
  2. Avoid including main.

    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.
    deathaxe committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    10e4c1e View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2022

  1. Merge pull request #19 from deathaxe/sql

    Separate column declaration and reference lists
    keith-hall committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    4cc98a3 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

  1. T-SQL: Add missing keywords

    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.
    deathaxe committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    f8c096d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7006e54 View commit details
    Browse the repository at this point in the history
  3. 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.
    deathaxe committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    3ea6eb0 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. Refactor ddl statements

    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.
    deathaxe committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    5369bbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    969fcd1 View commit details
    Browse the repository at this point in the history
  3. Cassandra rename type scope

    deathaxe committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    4278b99 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2022

  1. Remove ddl- from context names

    There 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.
    deathaxe committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    257cba7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9476e36 View commit details
    Browse the repository at this point in the history
  3. Rename statement meta scopes

    deathaxe committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    ad140af View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2022

  1. Configuration menu
    Copy the full SHA
    bb5d3e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f7daf6 View commit details
    Browse the repository at this point in the history
  3. MySQL: Add GRANT statements

    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    a03ac2f View commit details
    Browse the repository at this point in the history
  4. MySQL: Fix account names

    Accounts may consist of `user@host` with `%` being a wildcard host name.
    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    d2dd962 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb17a71 View commit details
    Browse the repository at this point in the history
  6. MySQL: Add REVOKE statements

    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    da874e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    df5be4c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dae0ec0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d7ab07f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1d21f06 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d324986 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5707b4f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6f9e8cb View commit details
    Browse the repository at this point in the history
  14. MySQL: Reorganize test categories

    Prepare for DDL tests. User/Role related account management statements
    are a sub-group of data definition language.
    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    90096a5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d9e2f22 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5e3e28a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    59641a2 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    dd8a9bd View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4268bb6 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    866e570 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    3b02297 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3dce643 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    e9341b0 View commit details
    Browse the repository at this point in the history
  24. 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.
    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    a13c93d View commit details
    Browse the repository at this point in the history
  25. MySQL: Reorganize DEFINER expressions

    Move to global `create/alter-target` as they are not dedicated to events.
    deathaxe committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    ae8b1ce View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. MySQL: Fix typo

    deathaxe committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    ff5f685 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. NySQL: Reorganize comments

    deathaxe committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    b6960a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e4e60c View commit details
    Browse the repository at this point in the history
  3. MySQL: Add some BNF comments

    deathaxe committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    59c0d87 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ac3b2d View commit details
    Browse the repository at this point in the history
  5. MySQL: Add CREATE FUNCTION UDF statements

    Adds `SONAME` keyword.
    deathaxe committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    253037d View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. 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.
    deathaxe committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    412bf15 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2022

  1. Configuration menu
    Copy the full SHA
    0fdce03 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Configuration menu
    Copy the full SHA
    5fe0636 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    f7cd539 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. [SQL] PHP fixes

    keith-hall committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    dab0197 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f88d5a8 View commit details
    Browse the repository at this point in the history
  3. [SQL] more improvements

    - 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
    keith-hall committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    9b67bd8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ebca675 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b26f93d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    33c5a06 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1fef6f9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    990b166 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    fb8ef15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    733265f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d67c718 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a99b7ea View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2023

  1. [SQL] improve postgresql syntax slightly

    with scoping for:
    - $$
    - for loops
    keith-hall committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    edb2cc7 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. [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`
    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    dc1185a View commit details
    Browse the repository at this point in the history
  2. [SQL] Add variable for builtin scalar functions

    Same as for builtin user functions before.
    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    128b16f View commit details
    Browse the repository at this point in the history
  3. [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
    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    fce8721 View commit details
    Browse the repository at this point in the history
  4. [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
    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    a1337d7 View commit details
    Browse the repository at this point in the history
  5. [SQL] fix ALL PRIVILEGES

    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    c92f79a View commit details
    Browse the repository at this point in the history
  6. [SQL] Add missing class types

    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    5628ec1 View commit details
    Browse the repository at this point in the history
  7. [SQL] Add generic class type

    The other GRANT statements at learn.microsoft.com/.../ indicate there are
    various more class types to consider for highlighting.
    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    436ba5a View commit details
    Browse the repository at this point in the history
  8. [SQL] Restrict user@host to MySQL

    deathaxe authored and keith-hall committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    aeb3ce6 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Configuration menu
    Copy the full SHA
    42b187c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    649b960 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    02161ef View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Configuration menu
    Copy the full SHA
    7e834cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59d96d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    880068a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8073d9d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f7fffad View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Configuration menu
    Copy the full SHA
    cf6f640 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a107580 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc5af53 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    272041d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5b1f29d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b2d73d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8d22bf3 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. [SQL] support cross join

    keith-hall committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    42ea97d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b574398 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    cc2a871 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f5edee View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. [SQL] fix some case-insensitive flags

    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    d55ba7c View commit details
    Browse the repository at this point in the history
  2. [SQL] Improve JOIN syntax

    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.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    071f96b View commit details
    Browse the repository at this point in the history
  3. [SQL] Fix maybe-on-table-name

    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.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    1cf5566 View commit details
    Browse the repository at this point in the history
  4. [SQL] Rename column-reference-list

    This commit renames column reference contexts to `column-name-list` and arranges
    their section alphabetically within expressions.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    9176138 View commit details
    Browse the repository at this point in the history
  5. [SQL] Drop redundant pattern

    The `+` operator pattern in MySQL is redundant as it is already part of `expressions`.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    2c29093 View commit details
    Browse the repository at this point in the history
  6. [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.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    ec6fdc6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ae2f0da View commit details
    Browse the repository at this point in the history
  8. [SQL] Add globally reserved words

    This commit prevents globally reserved keywords to be matched as identifiers
    (column names, table names, ...).
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    f04117c View commit details
    Browse the repository at this point in the history
  9. [SQL] Simplify literal constants

    Literal constants belong to reserved words and thus can be matched globally.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    245a439 View commit details
    Browse the repository at this point in the history
  10. [SQL] Add variables

    This commit scopes variables such as `@var` in MySQL.
    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    3205950 View commit details
    Browse the repository at this point in the history
  11. [SQL] Add string literal tests

    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    dcc2a93 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d79bcbe View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ced5671 View commit details
    Browse the repository at this point in the history
  14. [SQL] Add some drop user tests

    deathaxe authored and keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    d837ea3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9ab469d View commit details
    Browse the repository at this point in the history
  16. [SQL] reintroduce distinction between table aliases and column aliases

    for more customizable highlighting between the two
    keith-hall committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    6dcaafe View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    24583c3 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6a0de68 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. [SQL] Fix PHP interpolation

    deathaxe authored and keith-hall committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    c49b7f8 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Configuration menu
    Copy the full SHA
    5d51874 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    a4bad73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    734d51d View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. [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
    keith-hall committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    b639a41 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7477d3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    88751b5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7c0650 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    f05d8fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2205e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Configuration menu
    Copy the full SHA
    827b729 View commit details
    Browse the repository at this point in the history
  2. [SQL] add boolean sub-scopes

    Keith Hall committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    1c49ea3 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    e4923a6 View commit details
    Browse the repository at this point in the history