Add regex highlighting to php as syntax-based indentation is broken with just treesitter

This commit is contained in:
Kevin MacMartin 2024-04-03 17:22:41 -04:00
parent 2272519e44
commit 222d5d89af
2 changed files with 3 additions and 1 deletions

View file

@ -245,6 +245,8 @@ endfun
hi! link objcSuperclass objcClass
"php
call s:C("phpIdentifier",g:cBlue,"","")
call s:C("phpRelation",g:cYellow,"","")
hi! link phpArrayPair Operator
hi! link phpNull Constant
hi! link phpSuperglobal Identifier

View file

@ -18,7 +18,7 @@ if (vim.g.enabletreesitter == 1) then
highlight = {
enable = true,
disable = { "gitcommit", "markdown", "tmux" },
additional_vim_regex_highlighting = { "diff", "scss" },
additional_vim_regex_highlighting = { "diff", "php", "scss" },
},
textobjects = {