Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Aaron Neff / ()
Created: 08/12/2018
Components: Editor Features, Code Colorization
Versions: 2018
Failure Type: Usability Issue
Found In Build/Fixed In Build: 310721 /
Priority/Frequency: Normal / Most users will encounter
Locale/System: / Windows 10 64 bit
Vote Count: 0
Issue: Colorization does not support most operators
Repro:
<cfscript>
if(foo eq "bar") {
//bad
}
if(foo is "bar") {
//bad
}
if(foo == "bar") {
//good
}
if(foo neq "bar") {
//bad
}
if(foo is not "bar") {
//bad
}
if(foo != "bar") {
//good
}
if(!foo) {
//bad
}
if(foo gt bar) {
//bad
}
if(foo greater than bar) {
//bad
}
if(foo gte bar) {
//bad
}
if(foo greater than or equal to bar) {
//bad
}
if(foo lt bar) {
//bad
}
if(foo less than bar) {
//bad
}
if(foo lte bar) {
//bad
}
if(foo less than or equal to bar) {
//bad
}
foo = 'f' & 'oo';//bad
foo &= 'bar';//bad
bar++;//bad
++bar;//bad
bar--;//bad
--bar;//bad
bar = 1 + 1;//bad
bar = 1 - 1;//bad
bar = 1 * 1;//bad
bar = 1 / 1;//bad
foo += bar;//bad
foo -= bar;//bad
foo *= bar;//bad
foo /= bar;//bad
foo %= bar;//bad
foo % bar;//bad
foo mod bar;//bad
foo \ bar;//bad
if(foo contains bar) {
//bad
}
if(foo does not contain bar) {
//bad
}
if(true xor false) {
//bad
}
if(true eqv true) {
//bad
}
if(foo imp bar) {
//bad
}
</cfscript>
Actual Result: only == and != were colorized correctly
Expected Result: all CFML operators should be colorized per CFB's "Syntax Coloring > CFScript > Operator" setting.
Attachments:
Comments: