The plugin is built using Gradle and uses gradle-intellij-plugin to integrate with IntelliJ Platform.
To build a plugin run
$ ./gradlew buildPlugin
Plugin zip file will be created in build/distributions
To test plugin in IDE run ./gradlew runIdea
The plugin uses Grammar-Kit to generate parser and lexer. Please install Grammar-Kit plugin and refer to the documentation if you want to modify the grammar.
To regenerate parser, open qml.bnf
and press Ctrl+Shift+G (Cmd+Shift+G on Mac)
To regenerate lexer, open qml.flex
and press Ctrl+Shift+G (Cmd+Shift+G on Mac)
Please make sure to add a test to QmlParserTest.kt
for any parser changes.
Plugin is written in Kotlin.
Pull requests are welcome!