Bug 15112 – !is not highlighted

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2015-09-24T20:52:00Z
Last change time
2015-10-16T09:31:47Z
Assigned to
nobody
Creator
aliloko

Comments

Comment #0 by aliloko — 2015-09-24T20:52:17Z
Version: VisualD 0.3.42 In VisualD, "!is" isn't highlighted like "is" is.
Comment #1 by r.sagitario — 2015-10-16T07:21:56Z
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.
Comment #2 by aliloko — 2015-10-16T09:31:47Z
> if(ptr ! is null) Really odd. Well I guess that it's not worth fixing it then, wouldn't have guess what it implies for the lexer.