From e6713e0f6f429d58fd7670a954f1c9a8f346b54b Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Thu, 28 Apr 2022 20:22:57 +0100 Subject: [PATCH] Add more highlight names --- src/languages/built_in.rs | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/languages/built_in.rs b/src/languages/built_in.rs index c638261..042f370 100644 --- a/src/languages/built_in.rs +++ b/src/languages/built_in.rs @@ -1,3 +1,5 @@ +use std::collections::HashSet; + use tree_sitter::QueryError; use tree_sitter_highlight::HighlightConfiguration; @@ -5,18 +7,32 @@ use crate::register_language; pub static COMMON_HIGHLIGHT_NAMES: &[&str] = &[ "attribute", + "comment", "constant", - "function.builtin", + "constant.builtin", + "constant.character", + "constructor", + "embedded", + "escape", "function", + "function.builtin", + "function.macro", + "function.method", + "injection.content", + "injection.language", "keyword", + "label", + "local.definition", + "local.reference", + "local.scope", + "number", "operator", "property", - "punctuation", "punctuation.bracket", "punctuation.delimiter", + "punctuation.special", "string", "string.special", - "tag", "type", "type.builtin", "variable",