Skip to content

Commit

Permalink
feat(gdscript): initial support
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Oct 30, 2023
1 parent 9b2d9ab commit bd825d4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/theme/tokens/gdscript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { TextmateColors, ThemeContext } from "../../types";

const tokens = (context: ThemeContext): TextmateColors => {
const { palette } = context;

return [
{
name: "GDScript functions",
scope: "support.function.builtin.gdscript",
settings: {
foreground: palette.blue,
},
},
{
name: "GDScript constants",
scope: "constant.language.gdscript",
settings: {
foreground: palette.peach,
},
},
];
};

export default tokens;
2 changes: 2 additions & 0 deletions src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import css from "./css";
import data from "./data";
import diff from "./diff";
import dotenv from "./dotenv";
import gdscript from "./gdscript";
import golang from "./golang";
import graphql from "./graphql";
import html from "./html";
Expand Down Expand Up @@ -280,6 +281,7 @@ export default (context: ThemeContext): TextmateColors => {
data,
diff,
dotenv,
gdscript,
golang,
graphql,
html,
Expand Down

0 comments on commit bd825d4

Please sign in to comment.