parent
f516cca41b
commit
3aa9e32159
2 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,8 @@ fn load_file_types(comptime Namespace: type) []const FileType {
|
|||
.highlights = if (build_options.use_tree_sitter)
|
||||
if (@hasField(@TypeOf(args), "highlights"))
|
||||
@embedFile(args.highlights)
|
||||
else if (@hasField(@TypeOf(args), "highlights_list"))
|
||||
@embedFile(args.highlights_list[0]) ++ "\n" ++ @embedFile(args.highlights_list[1])
|
||||
else
|
||||
@embedFile("tree-sitter-" ++ lang ++ "/queries/highlights.scm")
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue