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

fix(syntax): use string variable for string interpolation #190

Merged
merged 2 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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