Skip to content

Commit

Permalink
fix: use string variable for string interpolation (#190)
Browse files Browse the repository at this point in the history
* fix: use `string variable` for string interpolation

* chore: enable more chromatic checks
  • Loading branch information
nekowinston authored Oct 21, 2023
1 parent 8a1c1a5 commit 5791e92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default (context: ThemeContext) => {
},
{
name: "String template interpolation",
scope: "string.template variable",
scope: ["string.template variable", "string variable"],
settings: {
foreground: palette.text,
fontStyle: "",
Expand Down
13 changes: 4 additions & 9 deletions stories/Syntax.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,16 @@ const StoryBuilder = ({
};
};

// TODO:
// export const Asciidoc = StoryBuilder({
// lang: "asciidoc",
// file: "asciidoc.adoc",
// });
export const Bash = StoryBuilder({ lang: "bash", file: "bash.sh" });
export const Coffeescript = StoryBuilder({
lang: "coffee",
file: "coffeescript.coffee",
});
export const Cpp = StoryBuilder({ lang: "cpp", file: "cpp.cpp" });
export const Cs = StoryBuilder({ lang: "csharp", file: "cs.cs" });
export const Css = StoryBuilder({ lang: "css", file: "css.css" });
// TODO:
// export const Dart = StoryBuilder({ lang: "dart", file: "dart.dart" });
export const Dart = StoryBuilder({ lang: "dart", file: "dart.dart" });
export const D = StoryBuilder({ lang: "d", file: "d.d" });
export const Go = StoryBuilder({ lang: "go", file: "go.go" });
export const Haskell = StoryBuilder({ lang: "haskell", file: "haskell.hs" });
export const Html = StoryBuilder({ lang: "html", file: "html.html" });
Expand All @@ -50,8 +46,7 @@ export const Json = StoryBuilder({ lang: "json", file: "json.json" });
export const Kotlin = StoryBuilder({ lang: "kotlin", file: "kotlin.kt" });
export const Lua = StoryBuilder({ lang: "lua", file: "lua.lua" });
export const Markdown = StoryBuilder({ lang: "markdown", file: "markdown.md" });
// TODO:
// export const Php = StoryBuilder({ lang: "php", file: "php.php" });
export const Php = StoryBuilder({ lang: "php", file: "php.php" });
export const Python = StoryBuilder({ lang: "python", file: "python.py" });
export const Rust = StoryBuilder({ lang: "rust", file: "rust.rs" });
export const Scala = StoryBuilder({ lang: "scala", file: "scala.scala" });
Expand Down

0 comments on commit 5791e92

Please sign in to comment.