Merge pull request #479 from Jarred-Sumner/master
Fix missing doc comment for `inline fn`
This commit is contained in:
commit
ed3d38328a
@ -55,6 +55,7 @@ pub fn getDocCommentTokenIndex(tokens: []std.zig.Token.Tag, base_token: Ast.Toke
|
|||||||
if (tokens[idx] == .string_literal and idx > 1 and tokens[idx - 1] == .keyword_extern) idx -= 1;
|
if (tokens[idx] == .string_literal and idx > 1 and tokens[idx - 1] == .keyword_extern) idx -= 1;
|
||||||
if (tokens[idx] == .keyword_extern and idx > 0) idx -= 1;
|
if (tokens[idx] == .keyword_extern and idx > 0) idx -= 1;
|
||||||
if (tokens[idx] == .keyword_export and idx > 0) idx -= 1;
|
if (tokens[idx] == .keyword_export and idx > 0) idx -= 1;
|
||||||
|
if (tokens[idx] == .keyword_inline and idx > 0) idx -= 1;
|
||||||
if (tokens[idx] == .keyword_pub and idx > 0) idx -= 1;
|
if (tokens[idx] == .keyword_pub and idx > 0) idx -= 1;
|
||||||
|
|
||||||
// Find first doc comment token
|
// Find first doc comment token
|
||||||
|
Loading…
Reference in New Issue
Block a user