diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-27 08:06:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 00:06:25 +0000 |
| commit | f0cf4886981eb2d690d6d8f7c70e432f1c2280ee (patch) | |
| tree | 92ba26b0faf7454d32b6c6c272d11b009ca7fe05 /runtime/lua/vim/_extui/shared.lua | |
| parent | d707ccf98808058d1bec9c831dd4dc5e46e16eaf (diff) | |
| download | rneovim-f0cf4886981eb2d690d6d8f7c70e432f1c2280ee.tar.gz rneovim-f0cf4886981eb2d690d6d8f7c70e432f1c2280ee.tar.bz2 rneovim-f0cf4886981eb2d690d6d8f7c70e432f1c2280ee.zip | |
vim-patch:9.1.1877: cindent: wrong indentation after an array declaration (#36340)
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: vim/vim#18631
https://github.com/vim/vim/commit/61ef8a3db927162854c8a208ec603f55a6cd6449
Co-authored-by: Anttoni Erkkilä <anttoni.erkkila@protonmail.com>
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
0 files changed, 0 insertions, 0 deletions