summaryrefslogtreecommitdiff
path: root/build/core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/core.zig')
-rw-r--r--build/core.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/build/core.zig b/build/core.zig
index 903b5602..b668211d 100644
--- a/build/core.zig
+++ b/build/core.zig
@@ -166,10 +166,7 @@ pub fn treeSitter(b: *std.Build, io: std.Io, target: std.Build.ResolvedTarget, c
var ts_libs: std.ArrayList(*std.Build.Step.Compile) = .empty;
const ts_queries = b.addOptions();
inline for (grammar_manifest.all) |g| {
- if (tree_sitter_grammars == .full or
- (tree_sitter_grammars == .minimal and g.tier != .full) or
- (tree_sitter_grammars == .zig and g.tier == .zig))
- grammar: {
+ if (tree_sitter_grammars == .full or (tree_sitter_grammars == .minimal and g.tier == .minimal)) grammar: {
const dep = b.dependencyLazy(g.dep, .{}) catch break :grammar;
const upstream = configureRead(b, io, dep.builder.root, g.query, 0x100000) catch @panic("read " ++ g.name ++ " highlights");
// the patterns that colour, filtered here once and not in