Skip to content

Commit

Permalink
filter all em__ names
Browse files Browse the repository at this point in the history
  • Loading branch information
biosbob committed Sep 26, 2024
1 parent 2381dd5 commit a3df65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/completions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn declToCompletion(builder: *Builder, decl_handle: Analyser.DeclWithHandle, opt
fn isZigem(name: []const u8) bool {
if (std.mem.eql(u8, name, "em")) return true;
if (std.mem.startsWith(u8, name, "EM__")) return true;
if (std.mem.startsWith(u8, name, "em__") and name.len == 5) return true;
if (std.mem.startsWith(u8, name, "em__")) return true;
return false;
}

Expand Down

0 comments on commit a3df65b

Please sign in to comment.