Skip to content

Commit

Permalink
Fix ctags
Browse files Browse the repository at this point in the history
  • Loading branch information
pubby committed Sep 18, 2023
1 parent 6cb6867 commit 86faff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ void write_ctags(FILE* fp, fs::path ctags_path)
fp, "%s\t%s\t%i\n",
ctag.ident.c_str(),
file_paths[ctag.lpstring.file_i].c_str(),
ctag.lpstring.line);
ctag.lpstring.line - 1);
}
}
2 changes: 2 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ bool parser_t<P>::parse_indented_token()

if(token.type == TOK_ml_comment_begin)
{
++line_number;

while(true)
{
if(*next_char == '*')
Expand Down

0 comments on commit 86faff5

Please sign in to comment.