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_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",