Page 1 of 1

FIXED? Inconsistent highlighting in PHP

Posted: 01 May 2024 14:04
by pjj
This is a minor thing, yet here it is: in PHP highlighter numbers can be highlighted as numbers (no surprise here) or methods, depending on the next character: pink color in the screenshot below is `number`, while lightgreen -- `method`:
method or number.png
method or number.png (3 KiB) Viewed 2461 times

Re: Inconsistent highlighting in PHP

Posted: 01 May 2024 16:42
by Rickard Johansson
The following change in the syntax file seems to fix it:

Code: Select all

#MethodDecl method=(?<=::)[\w-_]+(?=\s?[(])
#Methods=[\w-_]+(?=\s?[(])

Re: FIXED? Inconsistent highlighting in PHP

Posted: 01 May 2024 17:41
by pjj
Thank you! It works great...
rj syntax editor.png
rj syntax editor.png (7 KiB) Viewed 2452 times
...but I had to change my theme from Windows (well, my own one based on Windows theme) to Amakrits, since with my theme the window was blank.