Extending syntax checking

Hi all,
I am developing a plugin which will be ignore the syntax checking errors in IDE with my custom rules,I will be having template code inside language, I wanted to add rules to check my custom syntax for existing languages

6 comments
Comment actions Permalink

Hello Saleeh,

Why do you need a plugin like this?
Syntaxically wrong code won't be executed, why writing it in the first place?

0
Comment actions Permalink

Hi Saleeh,

You could define both languages in one bnf file.

just make sure the lexer can figure out, which elements belong to which language, and return the appropriate element type.

If bnf is defined correctly, syntax will be checked against both languages.


There are probably other ways to do this, but this could work too.

0
Comment actions Permalink

Irina,

Saleeh needs to mix languages in one file type. This is common in some frameworks e.g. MVC: Html and C#.Net. Or Html and JavaScript

This mixed code  -if valid- should not throw errors.

0
Comment actions Permalink

Because there is parsing template with values before compilation process

0
Comment actions Permalink

Can I add it to existing languages like java and xml.etc?

0

Please sign in to leave a comment.