Note:This project is no longer maintained my me (gregorej).
About language itself: https://wiki.gnome.org/Projects/Vala
Note this instructions may seem complex but they really are quite simple. Also, most of them need to be done once.
- Install Grammar-Kit plugin for Intellij
- Import Vala plugin sources as new Intellij project (in other words, create new project from sources). When you do this, choose Intellij plugin project type.
- Mark src/main/java as sources directory, src/main/resources as resources directory
- Mark src/test/java and src/test/resources as test sources directory
- Open org.intellij.vala.parser.Vala.bnf file in Intellij and press Ctrl+Shift+G to generate parser code
- Open org.intellij.vala.lexer._ValaLexer.flex and run JFlex generator from it (Ctrl + Shift + G)
- Now you should have a gen directory in the project root dir. Mark it as Generated Sources Root.
Now the whole code should compile. If it does not, invoke point 5. again. There is possible that there are some cyclic dependencies between generated sources and normal ones.