FIXED? Inconsistent highlighting in PHP

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
User avatar
pjj
Posts: 2207
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

FIXED? Inconsistent highlighting in PHP

Post 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 919 times
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6742
Joined: 19 Jul 2006 14:29

Re: Inconsistent highlighting in PHP

Post by Rickard Johansson »

The following change in the syntax file seems to fix it:

Code: Select all

#MethodDecl method=(?<=::)[\w-_]+(?=\s?[(])
#Methods=[\w-_]+(?=\s?[(])
User avatar
pjj
Posts: 2207
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: FIXED? Inconsistent highlighting in PHP

Post by pjj »

Thank you! It works great...
rj syntax editor.png
rj syntax editor.png (7 KiB) Viewed 910 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.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply