DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

Fix error markings on UDA with template parameter #90

Closed mbierlee closed 9 years ago

mbierlee commented 9 years ago

Given the following example code:

class SomeUda(T) {};

class SomeClass {};

class SomeOtherClass {
    @SomeUda!SomeClass
    int someMember;
}

The line "@SomeUda!SomeClass" is marked with multiple syntax errors:

Multiple markers at this line
    - Unexpected token "!", while trying to parse Declaration.
    - Syntax error on token "SomeClass", expected IDENTIFIER after.
    - Syntax error on token "SomeClass", expected SEMICOLON after.
    - Unexpected token after "SomeUda", while trying to parse Declaration 
     or Block.

This is legal code and compiles fine with D 2.066.1, so the IDE should not mark this as a syntax error.

bruno-medeiros commented 9 years ago

This has been fixed already (https://github.com/bruno-medeiros/DDT/issues/70), in release 0.10.3 . Is your DDT up to date?

mbierlee commented 9 years ago

Ah I was using an old update site