aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-09-26 19:43:34 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-12-19 18:57:45 -0500
commit949fb9721f8cf3f6e9d27d7a56f0b57daf587312 (patch)
treeddc6cf0a01de3bb1ada974ebaa59d49a4e05e9d3
parente922a7427371b5869d1b1623c368f365bad3fedb (diff)
downloadrneovim-949fb9721f8cf3f6e9d27d7a56f0b57daf587312.tar.gz
rneovim-949fb9721f8cf3f6e9d27d7a56f0b57daf587312.tar.bz2
rneovim-949fb9721f8cf3f6e9d27d7a56f0b57daf587312.zip
Doxygen find_match_paren().
-rw-r--r--src/nvim/indent_c.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c
index d6101357e3..5c38a444ad 100644
--- a/src/nvim/indent_c.c
+++ b/src/nvim/indent_c.c
@@ -1198,14 +1198,9 @@ static pos_T *find_start_brace(void)
return trypos;
}
-/*
- * Find the matching '(', failing if it is in a comment.
- * Return NULL if no match found.
- */
-static pos_T *
-find_match_paren ( /* XXX */
- int ind_maxparen
-)
+/// Find the matching '(', failing if it is in a comment.
+/// @returns NULL or the found match.
+static pos_T *find_match_paren(int ind_maxparen)
{
pos_T cursor_save;
pos_T *trypos;
@@ -1220,7 +1215,7 @@ find_match_paren ( /* XXX */
pos_copy = *trypos; /* copy trypos, findmatch will change it */
trypos = &pos_copy;
curwin->w_cursor = *trypos;
- if (ind_find_start_comment() != NULL) /* XXX */
+ if (ind_find_start_comment() != NULL)
trypos = NULL;
}
}