codestats 0.6.0

A CLI tool for analyzing code statistics across different programming languages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// expect: total=15 code=8 comment=4 blank=3 shebang=0
// Simple Zig fixture.

const std = @import("std");

/// Doc comment above a type.
const Thing = struct {
	//! Top-level comment inside a container.
	const A: f64 = 2.93821;
};

pub fn main() {
	const a = Thing.A;
	std.debug.print("{d}", a);
}