-
-
Notifications
You must be signed in to change notification settings - Fork 688
Commit 61ef8a3
patch 9.1.1877: cindent: wrong indentation after an array declaration
Problem: cindent: wrong indentation after an array declaration
Solution: check if the filetype if javascript before matching the syntax
(Anttoni Erkkilä)
cindent matches a javascript syntax for C files causing wrong
indentation in the following case:
```
void foo() {
float a[5],
b;
}
```
closes: #18631
Signed-off-by: Anttoni Erkkilä <anttoni.erkkila@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent c8eeda9 commit 61ef8a3
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3476 | 3476 | | |
3477 | 3477 | | |
3478 | 3478 | | |
3479 | - | ||
3479 | + | ||
3480 | 3480 | | |
3481 | 3481 | | |
3482 | 3482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | + | ||
1110 | + | ||
1111 | + | ||
1112 | + | ||
1113 | + | ||
1109 | 1114 | | |
1110 | 1115 | | |
1111 | 1116 | | |
| |||
2083 | 2088 | | |
2084 | 2089 | | |
2085 | 2090 | | |
2091 | + | ||
2092 | + | ||
2093 | + | ||
2094 | + | ||
2095 | + | ||
2086 | 2096 | | |
2087 | 2097 | | |
2088 | 2098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | + | ||
733 | + | ||
732 | 734 | | |
733 | 735 | | |
734 | 736 | | |
| |||
0 commit comments