www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - D support static foreach syntax

reply Psychological Cleanup <Help Saving.World> writes:
Even though the code compiles, the ide shows syntax errors in 
red. Not a big deal but maybe it should be updated to support the 
new syntax? It shows a big red blotch on the source map as if 
there was an error along with the red marks on the code.
Sep 06 2017
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 06.09.2017 23:30, Psychological Cleanup wrote:
 Even though the code compiles, the ide shows syntax errors in red. Not a 
 big deal but maybe it should be updated to support the new syntax? It 
 shows a big red blotch on the source map as if there was an error along 
 with the red marks on the code.
Well, static foreach is just released a couple of days ago... Updating the parser should not be very difficult (this will remove the squiggly red lines), but tweaking the semantic analysis will be harder.
Sep 08 2017
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 08.09.2017 09:20, Rainer Schuetze wrote:
 
 
 On 06.09.2017 23:30, Psychological Cleanup wrote:
 Even though the code compiles, the ide shows syntax errors in red. Not 
 a big deal but maybe it should be updated to support the new syntax? 
 It shows a big red blotch on the source map as if there was an error 
 along with the red marks on the code.
Well, static foreach is just released a couple of days ago... Updating the parser should not be very difficult (this will remove the squiggly red lines), but tweaking the semantic analysis will be harder.
https://github.com/dlang/visuald/releases/tag/v0.46.0-beta1 has support to parse "static foreach", but no proper analysis yet.
Sep 16 2017