# HG changeset patch # User nanaya # Date 1761708525 -32400 # Node ID 6b7f6f09b8d197749c925440ada75fd5029e8087 # Parent a02f25ddadfe25660afc0e6ee294714820186819 [vimrc] fix php syntax highlight Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php (around the end) diff -r a02f25ddadfe -r 6b7f6f09b8d1 rc/vimrc --- a/rc/vimrc Fri Aug 29 21:11:41 2025 +0900 +++ b/rc/vimrc Wed Oct 29 12:28:45 2025 +0900 @@ -104,6 +104,9 @@ " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim let g:vim_json_syntax_conceal = 1 + " broken syntax highlight on long regexp with default value + let g:php_sync_method = 0 + autocmd BufNewFile,BufRead *.json set filetype=json autocmd BufNewFile,BufRead *.jsonp set filetype=json autocmd BufRead,BufNewFile *.blade.php set filetype=blade