[Issue 15112] !is not highlighted
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Oct 16 00:21:56 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15112
Rainer Schuetze <r.sagitario at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r.sagitario at gmx.de
--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> ---
The problem here is that the lexer cannot determine whether "is" or "!is" are
operators or "is" is part of an is-expression.
In the dmd frontend, this is done by the parser by recombining tokens, you can
even write:
> if(ptr ! is null)
The Visual D lexer doesn't have that interaction with the parser (it used to
work with the original semantic analyzer) and considers "!is" an operator and
"is" a keyword.
--
More information about the Digitalmars-d-bugs
mailing list