aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-05-06 09:45:18 +0800
committerGitHub <noreply@github.com>2026-05-06 01:45:18 +0000
commitd9a7b687955bd1af377dba56b87479acd7141f87 (patch)
treeaa833fea7dfb28bc4ebb9383aed246b5ccb818da /runtime/lua/vim/provider/python.lua
parentcfa803d8954519f7c23f7349ca3647f7b99d246d (diff)
downloadrneovim-d9a7b687955bd1af377dba56b87479acd7141f87.tar.gz
rneovim-d9a7b687955bd1af377dba56b87479acd7141f87.tar.bz2
rneovim-d9a7b687955bd1af377dba56b87479acd7141f87.zip
vim-patch:9.2.0447: cindent does not ignore comments (#39622)
Problem: When find_start_brace() scans backwards for the enclosing block, '{' and '}' inside // and /* */ comments are counted, producing wrong indent for code following such comments (rendcrx). Solution: Implement FM_SKIPCOMM in findmatchlimit() to track block- comment state and skip matches inside comments. Pass FM_SKIPCOMM from cindent's call sites (find_start_brace, find_match_char, cin_iswhileofdo, get_c_indent). fixes: vim/vim#4 fixes: vim/vim#648 fixes: vim/vim#19578 closes: vim/vim#19581 closes: vim/vim#20111 https://github.com/vim/vim/commit/c06002f3cb07c374bfc1a1310cf13ee1914e86da Co-authored-by: magnus-rattlehead <magnus-rattlehead@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions