From 96e2c3945f13453070894c70c74e4da29d421dab Mon Sep 17 00:00:00 2001 From: Billy Su Date: Mon, 4 Mar 2019 09:47:13 +0800 Subject: lint: fix coding style --- src/nvim/regexp.c | 48 ++++++++++++++++++++++++++---------------------- src/nvim/regexp_nfa.c | 5 +++-- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index dc3fbbaeb5..55490446e5 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1210,27 +1210,30 @@ char_u *skip_regexp(char_u *startp, int dirc, int magic, char_u **newp) return p; } -/* - * Return TRUE if the back reference is legal. We must have seen the close - * brace. - * TODO: Should also check that we don't refer to something that is repeated - * (+*=): what instance of the repetition should we match? - */ +/// +/// Return TRUE if the back reference is legal. We must have seen the close +/// brace. +/// TODO(billy4195): Should also check that we don't refer to something that is +/// repeated +/// (+*=): what instance of the repetition should we match? +/// static int seen_endbrace(int refnum) { if (!had_endbrace[refnum]) { char_u *p; - /* Trick: check if "@<=" or "@