Hare, like Zig, supports C99 single line comments but does not support C multi-line comments.
Example
/*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-4-Clause
*/
use fmt;
export fn main() void = {
fmt::println("Hello world!")!;
};
$ reuse annotate --license "BSD-3-Clause" --license "BSD-4-Clause" --multi-line hare.ha
$ hare build /tmp/hare.ha [255]
0/4 tasks completed (0%)
/tmp/hare.ha:1:1: syntax error: expected 'fn', found '/'
1 | /*
| ^
harec for /tmp/hare.ha exited with status 1
I have a PR ready that solves the problem by adding ZigCommentStyle.
Hare, like Zig, supports C99 single line comments but does not support C multi-line comments.
Example
$ reuse annotate --license "BSD-3-Clause" --license "BSD-4-Clause" --multi-line hare.haI have a PR ready that solves the problem by adding
ZigCommentStyle.