Open romalytvynenko opened 9 years ago
This is probably more complex than it looks.
The preprocessor directives are in fact a completely separate language to parse. These statements can not be included in Vala.bnf file because they might mess the whole grammar. One of the easier solutions is to just ignore the preoprocessor directives (for example treat them like comments) and in annotator try to highlight them differently.
I agree however that this feature is required. It is needed to properly parse glib-2.0.vapi this in turn is required to correctly resolve many method (primitive types!)
Posted a question on JetBrans developer forum:
OK, so plugin does not report errors for preprocesor directives (see 4ce5110). But there is no other support.
Here is an example of code