You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated the plugin to the latest version before submitting this issue
I have searched the existing issues of trouble.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.10.1
Operating system/version
MacOS Sonoma 14.6.1 (23G93)
Describe the bug
Treesitter syntax highlighting doesn't seem to work with PHP. I tried multiple commands, and none has syntax highlighting enabled. Note that syntax highlighting is working as expected with other file types on my end.
Commands I've tried:
qflist
loclist
Opening Telescope results in a Trouble list
I did some digging in the code, and I found that the lang is correctly set to php, and the parser is defined here.
Steps To Reproduce
Use the following snippet in trouble-php/main.php
<?phpecho"hey";
echo"hey there";
Run :grep hey main.php to create a qflist
Run :Trouble qflist
You can try the same exact steps with trouble-py/main.py with the following snippet, and the syntax highlighting will work fine. So the problem seems specific to PHP.
print('hey there')
print('hey')
Expected Behavior
The code in the list should have syntax highlighting enabled.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.1
Operating system/version
MacOS Sonoma 14.6.1 (23G93)
Describe the bug
Treesitter syntax highlighting doesn't seem to work with PHP. I tried multiple commands, and none has syntax highlighting enabled. Note that syntax highlighting is working as expected with other file types on my end.
Commands I've tried:
I did some digging in the code, and I found that the
lang
is correctly set tophp
, and the parser is defined here.Steps To Reproduce
trouble-php/main.php
:grep hey main.php
to create a qflist:Trouble qflist
You can try the same exact steps with
trouble-py/main.py
with the following snippet, and the syntax highlighting will work fine. So the problem seems specific to PHP.Expected Behavior
The code in the list should have syntax highlighting enabled.
Repro
The text was updated successfully, but these errors were encountered: