runtime(php): Update indent script to 1.76 (from 1.75)

Commit: 
https://github.com/vim/vim/commit/d1288503aa0099ab36802312c6dcf3e87751797a
Author: John Wellesz <[email protected]>
Date:   Thu Nov 20 20:50:54 2025 +0000

    runtime(php): Update indent script to 1.76 (from 1.75)
    
    fixes: https://github.com/vim/vim/issues/18739 (editor hang on mixed syntax 
style)
    closes: https://github.com/vim/vim/issues/18758
    
    Signed-off-by: John Wellesz <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/indent/php.vim b/runtime/indent/php.vim
index 377ffd5af..89d4afa0d 100644
--- a/runtime/indent/php.vim
+++ b/runtime/indent/php.vim
@@ -1,10 +1,9 @@
-" Vim indent file
 " Language:    PHP
 " Author:      John Wellesz <John.wellesz (AT) gmail (DOT) com>
 " URL:         https://www.2072productions.com/vim/indent/php.vim
 " Home:                https://github.com/2072/PHP-Indenting-for-VIm
-" Last Change: 2023 August 18th
-" Version:     1.75
+" Last Change: 2025 November 16th
+" Version:     1.76
 "
 "
 "      Type :help php-indent for available options
@@ -839,13 +838,15 @@ function! GetPhpIndent()
 
                continue
            else
-               let isSingleLineBlock = 0
 
-               if getline(last_line_num) =~# '^\s*else\%(if\)\=\>'
+               if getline(last_line_num) =~# '^\s*else\%(if\)\=\>' && 
!isSingleLineBlock
                    let last_line_num = FindTheIfOfAnElse(last_line_num, 0)
+                   let isSingleLineBlock = 0
                    continue
                endif
 
+               let isSingleLineBlock = 0
+
 
                let last_match = last_line_num
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vMBl6-00D89B-Tx%40256bit.org.

Raspunde prin e-mail lui