From 794e6e22a6deccc3831bb8db635058017512dbf3 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Sun, 26 Feb 2023 17:12:48 -0500 Subject: [PATCH] Format --- styles/src/styleTree/editor.ts | 6 +---- styles/src/themes/common/colorScheme.ts | 34 ++++++++++++------------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/styles/src/styleTree/editor.ts b/styles/src/styleTree/editor.ts index 5c7152072b..85c9ccec95 100644 --- a/styles/src/styleTree/editor.ts +++ b/styles/src/styleTree/editor.ts @@ -1,9 +1,5 @@ import { withOpacity } from "../utils/color" -import { - ColorScheme, - Layer, - StyleSets, -} from "../themes/common/colorScheme" +import { ColorScheme, Layer, StyleSets } from "../themes/common/colorScheme" import { background, border, borderColor, foreground, text } from "./components" import hoverPopover from "./hoverPopover" diff --git a/styles/src/themes/common/colorScheme.ts b/styles/src/themes/common/colorScheme.ts index 2594813bf1..d4e63376b9 100644 --- a/styles/src/themes/common/colorScheme.ts +++ b/styles/src/themes/common/colorScheme.ts @@ -112,7 +112,7 @@ export interface Syntax { // == Text Styles ====== / comment: SyntaxHighlightStyle // elixir: doc comment - "comment.doc": SyntaxHighlightStyle, + "comment.doc": SyntaxHighlightStyle primary: SyntaxHighlightStyle predictive: SyntaxHighlightStyle @@ -128,12 +128,12 @@ export interface Syntax { // == Punctuation ====== / punctuation: SyntaxHighlightStyle /** Example: `(`, `[`, `{`...*/ - "punctuation.bracket": SyntaxHighlightStyle, + "punctuation.bracket": SyntaxHighlightStyle /**., ;*/ - "punctuation.delimiter": SyntaxHighlightStyle, + "punctuation.delimiter": SyntaxHighlightStyle // js, ts: ${, } in a template literal // yaml: *, &, ---, ... - "punctuation.special": SyntaxHighlightStyle, + "punctuation.special": SyntaxHighlightStyle // md: list_marker_plus, list_marker_dot, etc "punctuation.list_marker": SyntaxHighlightStyle @@ -144,23 +144,23 @@ export interface Syntax { // js: this, super // racket: regex // toml: offset_date_time, local_date_time... - "string.special": SyntaxHighlightStyle, + "string.special": SyntaxHighlightStyle // elixir: atom, quoted_atom, keyword, quoted_keyword // ruby: simple_symbol, delimited_symbol... "string.special.symbol": SyntaxHighlightStyle // ruby: Regular expression "string.special.regex": SyntaxHighlightStyle // elixir, python, yaml...: escape_sequence - "string.escape": SyntaxHighlightStyle, + "string.escape": SyntaxHighlightStyle // Regular expressions - "string.regex": SyntaxHighlightStyle, + "string.regex": SyntaxHighlightStyle // == Types ====== / constructor: SyntaxHighlightStyle variant: SyntaxHighlightStyle type: SyntaxHighlightStyle // js: predefined_type - "type.builtin": SyntaxHighlightStyle, + "type.builtin": SyntaxHighlightStyle // == Values @@ -170,12 +170,12 @@ export interface Syntax { // css: -- (var(--foo)) // lua: self "variable.special": SyntaxHighlightStyle - // c: statement_identifier, - label: SyntaxHighlightStyle, + // c: statement_identifier, + label: SyntaxHighlightStyle // css: tag_name, nesting_selector, universal_selector... - tag: SyntaxHighlightStyle, - // css: attribute, pseudo_element_selector (tag_name), - attribute: SyntaxHighlightStyle, + tag: SyntaxHighlightStyle + // css: attribute, pseudo_element_selector (tag_name), + attribute: SyntaxHighlightStyle // css: class_name, property_name, namespace_name... property: SyntaxHighlightStyle // true, false, null, nullptr @@ -191,7 +191,7 @@ export interface Syntax { boolean: SyntaxHighlightStyle // elixir: __MODULE__, __DIR__, __ENV__, etc // go: nil, iota - "constant.builtin": SyntaxHighlightStyle, + "constant.builtin": SyntaxHighlightStyle // == Functions ====== / @@ -204,9 +204,9 @@ export interface Syntax { // js: call_expression, method_definition, pair (key, arrow function) // rust: function_item name: (identifier) "function.definition": SyntaxHighlightStyle - // rust: macro_definition name: (identifier) + // rust: macro_definition name: (identifier) "function.special.definition": SyntaxHighlightStyle - "function.method": SyntaxHighlightStyle, + "function.method": SyntaxHighlightStyle // ruby: identifier/"defined?" // Nate note: I don't fully understand this one. "function.method.builtin": SyntaxHighlightStyle @@ -215,7 +215,7 @@ export interface Syntax { preproc: SyntaxHighlightStyle // elixir, python: interpolation (ex: foo in ${foo}) // js: template_substitution - embedded: SyntaxHighlightStyle, + embedded: SyntaxHighlightStyle } // HACK: "constructor" as a key in the syntax interface returns an error when a theme tries to use it.