Skip to content

Commit

Permalink
Rename BOOLEAN to LITERAL
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdancondorachi committed May 24, 2024
1 parent 42811ee commit 7cf5944
Show file tree
Hide file tree
Showing 50 changed files with 59 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Tempest\Highlight\Pattern;
use Tempest\Highlight\Tokens\TokenTypeEnum;

final readonly class PyBooleanPattern implements Pattern
final readonly class PyLogicalValuePattern implements Pattern
{
use IsPattern;

Expand All @@ -19,6 +19,6 @@ public function getPattern(): string

public function getTokenType(): TokenTypeEnum
{
return TokenTypeEnum::BOOLEAN;
return TokenTypeEnum::LITERAL;
}
}
6 changes: 3 additions & 3 deletions src/Languages/Python/PythonLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Tempest\Highlight\Languages\Php\Patterns\DoubleQuoteValuePattern;
use Tempest\Highlight\Languages\Php\Patterns\SingleQuoteValuePattern;
use Tempest\Highlight\Languages\Python\Patterns\PyArgumentPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyBooleanPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyBuiltinPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyClassNamePattern;
use Tempest\Highlight\Languages\Python\Patterns\PyCommentPattern;
Expand All @@ -17,6 +16,7 @@
use Tempest\Highlight\Languages\Python\Patterns\PyKeywordPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyNumberPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyOperatorPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyLogicalValuePattern;
use Tempest\Highlight\Languages\Python\Patterns\PyTripleDoubleQuoteStringPattern;
use Tempest\Highlight\Languages\Python\Patterns\PyTripleSingleQuoteStringPattern;

Expand Down Expand Up @@ -61,8 +61,8 @@ public function getPatterns(): array
// NUMBERS
new PyNumberPattern(),

// BOOLEANS
new PyBooleanPattern(),
// LITERALS
new PyLogicalValuePattern(),

// OPERATORS
new PyOperatorPattern(),
Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/andromeeda.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #96E072;
}

.hl-boolean {
.hl-literal {
color: #96E072;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/aurora-x.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #C3E88D;
}

.hl-boolean {
.hl-literal {
color: #C3E88D;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/ayu-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #aad94c;
}

.hl-boolean {
.hl-literal {
color: #aad94c;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/catppuccin-frappe.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a6d189;
}

.hl-boolean {
.hl-literal {
color: #a6d189;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/catppuccin-latte.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #40a02b;
}

.hl-boolean {
.hl-literal {
color: #40a02b;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/catppuccin-macchiato.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a6da95;
}

.hl-boolean {
.hl-literal {
color: #a6da95;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/catppuccin-mocha.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a6e3a1;
}

.hl-boolean {
.hl-literal {
color: #a6e3a1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/dark-plus.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #ce9178;
}

.hl-boolean {
.hl-literal {
color: #ce9178;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/dracula-soft.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #e7ee98;
}

.hl-boolean {
.hl-literal {
color: #e7ee98;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/dracula.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #F1FA8C;
}

.hl-boolean {
.hl-literal {
color: #F1FA8C;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/github-dark-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a5d6ff;
}

.hl-boolean {
.hl-literal {
color: #a5d6ff;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/github-dark-dimmed.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #96d0ff;
}

.hl-boolean {
.hl-literal {
color: #96d0ff;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/github-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #9ecbff;
}

.hl-boolean {
.hl-literal {
color: #9ecbff;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/github-light-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #0a3069;
}

.hl-boolean {
.hl-literal {
color: #0a3069;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/github-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #032f62;
}

.hl-boolean {
.hl-literal {
color: #032f62;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/highlight-light-lite.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pre, code {
}

.hl-number,
.hl-boolean,
.hl-literal,
.hl-value {
color: #000;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/houston.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #ffd493;
}

.hl-boolean {
.hl-literal {
color: #ffd493;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/light-plus.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a31515;
}

.hl-boolean {
.hl-literal {
color: #a31515;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/material-theme-darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #C3E88D;
}

.hl-boolean {
.hl-literal {
color: #ff9cac;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/material-theme-lighter.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #91B859;
}

.hl-boolean {
.hl-literal {
color: #FF5370;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/material-theme-ocean.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #C3E88D;
}

.hl-boolean {
.hl-literal {
color: #ff9cac;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/material-theme-palenight.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #C3E88D;
}

.hl-boolean {
.hl-literal {
color: #ff9cac;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/material-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #C3E88D;
}

.hl-boolean {
.hl-literal {
color: #ff9cac;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/min-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #9db1c5;
}

.hl-boolean {
.hl-literal {
color: #9db1c5;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/min-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #2b5581;
}

.hl-boolean {
.hl-literal {
color: #2b5581;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/monokai.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #E6DB74;
}

.hl-boolean {
.hl-literal {
color: #E6DB74;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/night-owl.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #ecc48d;
}

.hl-boolean {
.hl-literal {
color: #ff5874;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/nord.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #A3BE8C;
}

.hl-boolean {
.hl-literal {
color: #A3BE8C;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/one-dark-pro.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #98c379;
}

.hl-boolean {
.hl-literal {
color: #98c379;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/poimandres.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #5DE4c7;
}

.hl-boolean {
.hl-literal {
color: #5DE4c7;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/red.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #cd8d8dff;
}

.hl-boolean {
.hl-literal {
color: #cd8d8dff;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/rose-pine-dawn.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #ea9d34;
}

.hl-boolean {
.hl-literal {
color: #ea9d34;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/rose-pine-moon.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #f6c177;
}

.hl-boolean {
.hl-literal {
color: #f6c177;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/rose-pine.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #f6c177;
}

.hl-boolean {
.hl-literal {
color: #f6c177;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/slack-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #ce9178;
}

.hl-boolean {
.hl-literal {
color: #ce9178;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/slack-ochin.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #a44185;
}

.hl-boolean {
.hl-literal {
color: #a44185;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/solarized-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #2AA198;
}

.hl-boolean {
.hl-literal {
color: #2AA198;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/solarized-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #2AA198;
}

.hl-boolean {
.hl-literal {
color: #2AA198;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Css/synthwave-84.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pre, code {
color: #000;
}

.hl-boolean {
.hl-literal {
color: #000;
}

Expand Down
Loading

0 comments on commit 7cf5944

Please sign in to comment.