mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
*: Comment intentional fallthroughs
Falling through a switch case should be commented so it's clear that behavior is intentional.
This commit is contained in:
@@ -4916,13 +4916,16 @@ static unsigned quote_meta(char_u *dest, char_u *src, int len)
|
||||
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
||||
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
||||
break;
|
||||
// fallthrough
|
||||
case '~':
|
||||
if (!p_magic) /* quote these only if magic is set */
|
||||
break;
|
||||
// fallthrough
|
||||
case '\\':
|
||||
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
||||
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
||||
break;
|
||||
// fallthrough
|
||||
case '^': /* currently it's not needed. */
|
||||
case '$':
|
||||
m++;
|
||||
|
Reference in New Issue
Block a user