Add more highlight names

main
Charlotte Som 2022-04-28 20:22:57 +01:00
parent 5f47ca5aa9
commit e6713e0f6f
1 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,5 @@
use std::collections::HashSet;
use tree_sitter::QueryError; use tree_sitter::QueryError;
use tree_sitter_highlight::HighlightConfiguration; use tree_sitter_highlight::HighlightConfiguration;
@ -5,18 +7,32 @@ use crate::register_language;
pub static COMMON_HIGHLIGHT_NAMES: &[&str] = &[ pub static COMMON_HIGHLIGHT_NAMES: &[&str] = &[
"attribute", "attribute",
"comment",
"constant", "constant",
"function.builtin", "constant.builtin",
"constant.character",
"constructor",
"embedded",
"escape",
"function", "function",
"function.builtin",
"function.macro",
"function.method",
"injection.content",
"injection.language",
"keyword", "keyword",
"label",
"local.definition",
"local.reference",
"local.scope",
"number",
"operator", "operator",
"property", "property",
"punctuation",
"punctuation.bracket", "punctuation.bracket",
"punctuation.delimiter", "punctuation.delimiter",
"punctuation.special",
"string", "string",
"string.special", "string.special",
"tag",
"type", "type",
"type.builtin", "type.builtin",
"variable", "variable",