Skip to content

Commit

Permalink
Define context keywords relying on Token constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Tithugues committed Aug 2, 2024
1 parent 3bc8d0d commit 593c240
Show file tree
Hide file tree
Showing 27 changed files with 20,197 additions and 7,802 deletions.
1,141 changes: 880 additions & 261 deletions src/Contexts/ContextMariaDb100000.php

Large diffs are not rendered by default.

694 changes: 385 additions & 309 deletions src/Contexts/ContextMariaDb100100.php

Large diffs are not rendered by default.

622 changes: 312 additions & 310 deletions src/Contexts/ContextMariaDb100200.php

Large diffs are not rendered by default.

622 changes: 312 additions & 310 deletions src/Contexts/ContextMariaDb100300.php

Large diffs are not rendered by default.

621 changes: 311 additions & 310 deletions src/Contexts/ContextMariaDb100400.php

Large diffs are not rendered by default.

622 changes: 312 additions & 310 deletions src/Contexts/ContextMariaDb100500.php

Large diffs are not rendered by default.

621 changes: 311 additions & 310 deletions src/Contexts/ContextMariaDb100600.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb100700.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb100800.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb100900.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb101000.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb101100.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb110000.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb110100.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb110200.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb110300.php

Large diffs are not rendered by default.

1,373 changes: 1,063 additions & 310 deletions src/Contexts/ContextMariaDb110400.php

Large diffs are not rendered by default.

1,018 changes: 786 additions & 232 deletions src/Contexts/ContextMySql50000.php

Large diffs are not rendered by default.

1,123 changes: 868 additions & 255 deletions src/Contexts/ContextMySql50100.php

Large diffs are not rendered by default.

1,139 changes: 879 additions & 260 deletions src/Contexts/ContextMySql50500.php

Large diffs are not rendered by default.

1,268 changes: 982 additions & 286 deletions src/Contexts/ContextMySql50600.php

Large diffs are not rendered by default.

1,365 changes: 1,056 additions & 309 deletions src/Contexts/ContextMySql50700.php

Large diffs are not rendered by default.

952 changes: 642 additions & 310 deletions src/Contexts/ContextMySql80000.php

Large diffs are not rendered by default.

878 changes: 568 additions & 310 deletions src/Contexts/ContextMySql80100.php

Large diffs are not rendered by default.

841 changes: 531 additions & 310 deletions src/Contexts/ContextMySql80200.php

Large diffs are not rendered by default.

741 changes: 431 additions & 310 deletions src/Contexts/ContextMySql80300.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Token
// Flags that describe the tokens in more detail.
// All keywords must have flag 1 so `Context::isKeyword` method doesn't
// require strict comparison.
public const FLAG_KEYWORD = 1;
public const FLAG_KEYWORD_RESERVED = 2;
public const FLAG_KEYWORD_COMPOSED = 4;
public const FLAG_KEYWORD_DATA_TYPE = 8;
Expand Down

0 comments on commit 593c240

Please sign in to comment.