diff --git a/runtime/queries/fga/highlights.scm b/runtime/queries/fga/highlights.scm new file mode 100644 index 000000000000..8d3093952f55 --- /dev/null +++ b/runtime/queries/fga/highlights.scm @@ -0,0 +1,52 @@ +(call_expression + function: (identifier) @function) + +(call_expression + function: (selector_expression + field: (identifier) @function.method)) + +((type_identifier) @type.builtin + (#match? @type.builtin "^(string|int|map|uint|list|timestamp|bool|duration|double|ipaddress)$")) + +(condition_declaration + name: (identifier) @function) + +(version) @number + +[ + "*" + "/" + "%" + ">>" + "<<" + "&" + "&^" +] @operator + +[ + "+" + "-" + "|" + "^" +] @operator + +[ + "or" + "and" + "but not" +] @operator + +[ + "model" + "schema" + "type" + "relations" + "define" + "from" +] @keyword + +[ + "condition" +] @keyword.function + +(comment) @comment diff --git a/runtime/themes/modus_operandi.toml b/runtime/themes/modus_operandi.toml index e7599c018c0a..362f97778d33 100644 --- a/runtime/themes/modus_operandi.toml +++ b/runtime/themes/modus_operandi.toml @@ -80,6 +80,7 @@ punctuation = "fg-dim" "ui.virtual" = "bg-active" "ui.virtual.ruler" = { bg = "bg-dim" } "ui.virtual.inlay-hint" = { fg = "fg-dim", modifiers = ["italic"] } +"ui.virtual.jump-label" = { fg = "yellow-cooler", modifiers = ["bold"] } "ui.selection" = { fg = "fg-main", bg = "bg-inactive" } "ui.selection.primary" = { fg = "fg-main", bg = "bg-active" } diff --git a/runtime/themes/modus_vivendi.toml b/runtime/themes/modus_vivendi.toml index 74974bcb2ce3..952683ee7213 100644 --- a/runtime/themes/modus_vivendi.toml +++ b/runtime/themes/modus_vivendi.toml @@ -83,6 +83,7 @@ punctuation = "fg-dim" "ui.virtual" = "bg-active" "ui.virtual.ruler" = { bg = "bg-dim" } "ui.virtual.inlay-hint" = { fg = "fg-dim", modifiers = ["italic"] } +"ui.virtual.jump-label" = { fg = "yellow-cooler", modifiers = ["bold"] } "ui.selection" = { fg = "fg-main", bg = "bg-inactive" } "ui.selection.primary" = { fg = "fg-main", bg = "bg-active" }