mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
autodoc: correct line number implementation
we also correctly take advantage of the starting byte offset of the parent decl when calling `tree.tokenLocation()`!
This commit is contained in:
parent
5581b60393
commit
081d5a9690
@ -2285,7 +2285,7 @@ var zigAnalysis;
|
||||
|
||||
return "<a style=\"float: right;\" href=\"" +
|
||||
sourceFileUrlTemplate.replace("{{file}}",
|
||||
zigAnalysis.files[srcNode.file]).replace("{{line}}", srcNode.line) + "\">[src]</a>";
|
||||
zigAnalysis.files[srcNode.file]).replace("{{line}}", srcNode.line + 1) + "\">[src]</a>";
|
||||
}
|
||||
|
||||
function renderContainer(container) {
|
||||
|
300
src/Autodoc.zig
300
src/Autodoc.zig
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user