diff rc/vimrc @ 746:6b7f6f09b8d1 default tip

[vimrc] fix php syntax highlight Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php (around the end)
author nanaya <me@nanaya.net>
date Wed, 29 Oct 2025 12:28:45 +0900
parents 2b0112948102
children
line wrap: on
line diff
--- 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