comparison src/regexp_nfa.c @ 12674:e769c912fcd9 v8.0.1215

patch 8.0.1215: newer gcc warns for implicit fallthrough commit https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 24 21:49:36 2017 +0200 patch 8.0.1215: newer gcc warns for implicit fallthrough Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Oct 2017 22:00:06 +0200
parents a941848d8c44
children 09c856605191
comparison
equal deleted inserted replaced
12673:2b845e7b9727 12674:e769c912fcd9
1318 /* "\_[" is collection plus newline */ 1318 /* "\_[" is collection plus newline */
1319 if (c == '[') 1319 if (c == '[')
1320 goto collection; 1320 goto collection;
1321 1321
1322 /* "\_x" is character class plus newline */ 1322 /* "\_x" is character class plus newline */
1323 /*FALLTHROUGH*/ 1323 /* FALLTHROUGH */
1324 1324
1325 /* 1325 /*
1326 * Character classes. 1326 * Character classes.
1327 */ 1327 */
1328 case Magic('.'): 1328 case Magic('.'):
4696 { 4696 {
4697 /* Do not overwrite the position set by \ze. */ 4697 /* Do not overwrite the position set by \ze. */
4698 subs = addstate(l, state->out, subs, pim, off_arg); 4698 subs = addstate(l, state->out, subs, pim, off_arg);
4699 break; 4699 break;
4700 } 4700 }
4701 /* FALLTHROUGH */
4701 case NFA_MCLOSE1: 4702 case NFA_MCLOSE1:
4702 case NFA_MCLOSE2: 4703 case NFA_MCLOSE2:
4703 case NFA_MCLOSE3: 4704 case NFA_MCLOSE3:
4704 case NFA_MCLOSE4: 4705 case NFA_MCLOSE4:
4705 case NFA_MCLOSE5: 4706 case NFA_MCLOSE5: