Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 745:a02f25ddadfe | 746:6b7f6f09b8d1 |
|---|---|
| 101 endfunction | 101 endfunction |
| 102 | 102 |
| 103 " required by syntax file | 103 " required by syntax file |
| 104 " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim | 104 " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim |
| 105 let g:vim_json_syntax_conceal = 1 | 105 let g:vim_json_syntax_conceal = 1 |
| 106 | |
| 107 " broken syntax highlight on long regexp with default value | |
| 108 let g:php_sync_method = 0 | |
| 106 | 109 |
| 107 autocmd BufNewFile,BufRead *.json set filetype=json | 110 autocmd BufNewFile,BufRead *.json set filetype=json |
| 108 autocmd BufNewFile,BufRead *.jsonp set filetype=json | 111 autocmd BufNewFile,BufRead *.jsonp set filetype=json |
| 109 autocmd BufRead,BufNewFile *.blade.php set filetype=blade | 112 autocmd BufRead,BufNewFile *.blade.php set filetype=blade |
| 110 autocmd BufRead,BufNewFile *.coffee set filetype=coffee | 113 autocmd BufRead,BufNewFile *.coffee set filetype=coffee |
