mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 15:06:38 -05:00
Add regex highlighting to php as syntax-based indentation is broken with just treesitter
This commit is contained in:
parent
2272519e44
commit
222d5d89af
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue