mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	updated for version 7.3.379
Problem: C-indenting wrong for static enum. Solution: Skip over "static". (Lech Lorens)
This commit is contained in:
		| @@ -5138,6 +5138,9 @@ cin_isinit(void) | |||||||
|     if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7])) |     if (STRNCMP(s, "typedef", 7) == 0 && !vim_isIDc(s[7])) | ||||||
| 	s = cin_skipcomment(s + 7); | 	s = cin_skipcomment(s + 7); | ||||||
|  |  | ||||||
|  |     if (STRNCMP(s, "static", 6) == 0 && !vim_isIDc(s[6])) | ||||||
|  | 	s = cin_skipcomment(s + 6); | ||||||
|  |  | ||||||
|     if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4])) |     if (STRNCMP(s, "enum", 4) == 0 && !vim_isIDc(s[4])) | ||||||
| 	return TRUE; | 	return TRUE; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -311,6 +311,13 @@ typedef enum soppie | |||||||
| maybe | maybe | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | static enum | ||||||
|  | { | ||||||
|  | yes = 0, | ||||||
|  | no, | ||||||
|  | maybe | ||||||
|  | } soppie; | ||||||
|  |  | ||||||
| { | { | ||||||
| 	int a, | 	int a, | ||||||
| 		b; | 		b; | ||||||
|   | |||||||
| @@ -299,6 +299,13 @@ typedef enum soppie | |||||||
| 	maybe | 	maybe | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | static enum | ||||||
|  | { | ||||||
|  | 	yes = 0, | ||||||
|  | 	no, | ||||||
|  | 	maybe | ||||||
|  | } soppie; | ||||||
|  |  | ||||||
| { | { | ||||||
| 	int a, | 	int a, | ||||||
| 		b; | 		b; | ||||||
|   | |||||||
| @@ -714,6 +714,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     379, | ||||||
| /**/ | /**/ | ||||||
|     378, |     378, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user