Skip to content

Commit bfeb836

Browse files
committed
Add a comment to Halstead Rust test
tree-sitter-rust does not parse the comma in macros, but the `!` operator instead
1 parent 02faac5 commit bfeb836

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/metrics/halstead.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ mod tests {
396396
RustParser,
397397
halstead,
398398
[
399-
(u_operators, 9, usize), // fn, (), {}, let, =, ,, +, /, ;
399+
// FIXME tree-sitter-rust does not parse the comma inside the println! macro
400+
(u_operators, 9, usize), // fn, (), {}, let, =, +, /, ;, !
400401
(operators, 22, usize),
401402
(u_operands, 9, usize), // main, a, b, c, avg, 5, 3, println, "{}"
402403
(operands, 15, usize)

0 commit comments

Comments
 (0)