Closed gcb closed 1 year ago
Thanks for your report and the example. I was able to reproduce the problem, I'll look into it.
thank you! i was trying to fix these last days, but failing. I don't think i will go anywhere.
OK this is fixed.
This script uses a lot of heuristics to do its job, when debugging you need to do 2 things:
finish
in:" Only define the functions once per Vim session.
if exists("*GetPhpIndent")
call ResetPhpOptions()
finish " XXX -- comment this line for easy dev
endif
and enable the debug by executing the command: :%s /" DEBUG \zec//g
(you can disable them with :%s /^\s*\zs\zecall DebugPrintReturn/" DEBUG /g
)
Then try to indent the line causing issues and follow what is happening to find out which part of the script is causing the issue.
I'm going to add this to the readme.md.
inherited some code with style:
vim is running with
I have the tested both the
syntax/php.vim
from this repo and from the repo linked on the README with latest fixes.after indenting this block i get: