This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215718 - dot, ternary and assignment operator (. ?: =) are not recoginised as operator by syntax highlighter
Summary: dot, ternary and assignment operator (. ?: =) are not recoginised as operator...
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.2
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 184308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-19 09:06 UTC by leipie
Modified: 2016-06-10 11:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leipie 2012-07-19 09:06:32 UTC
I set up my editor to make operators yellow, but the php syntax highlighter only recognises operators like ->, &&, ||, :: as operators. It fails to recognise the ., ?: and = operators
Comment 1 Ondrej Brejla 2012-11-06 14:21:44 UTC
*** Bug 184308 has been marked as a duplicate of this bug. ***
Comment 2 Ondrej Brejla 2012-11-06 14:22:25 UTC
Revidion of all operators has to be done. See issue #184308 for more info.
Comment 3 Tomas Mysik 2015-10-05 05:56:21 UTC
This should be fixed now I hope, operators are now recognized according to [1]. Please verify, thanks.

http://hg.netbeans.org/web-main/rev/eedf469f2b60

[1] http://php.net/manual/en/language.operators.php
Comment 4 Tomas Mysik 2015-10-05 12:18:07 UTC
Adding Láďa to CC, please test it once you have a minute. Thanks.
Comment 5 Quality Engineering 2015-10-06 01:23:42 UTC
Integrated into 'main-silver', will be available in build *201510060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eedf469f2b60
User: Tomas Mysik <tmysik@netbeans.org>
Log: #215718 - dot, ternary and assignment operator (. ?: =) are not recoginised as operator by syntax highlighter
Comment 6 Vladimir Riha 2015-10-14 11:04:23 UTC
I verified all operators I could found in docs, and concatenation operator is not colored when used like 

$a . $b

but following does work

$a .= $b


Product Version: NetBeans IDE Dev (Build 201510140002)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 7 Tomas Mysik 2015-10-14 11:51:48 UTC
Unfortunately, not all operators are now marked properly, especially if they can have more "meanings" like e.g. ":". It can be an operator (as part of ternary operator) as well as a separator (for(): & endfor etc.). This is currently a limitation of our infrastructure but I will review whether "." can be marked as operator.

Thanks.
Comment 8 Tomas Mysik 2016-06-10 11:31:41 UTC
P4 now, IMHO.