The simplest possible IntelliJ custom language plugin. Implements the Hello language, whose purpose is to exercise the features of the IntelliJ API in the simplest possible context.
The Hello language consists of:
"Hello world!"
x
let x = "Hello world!" in x
- Syntax highlighting
- Annotations
- Symbol references
- In-place renaming
- Code formatting
- Test fixtures
- Reference Java symbols from Hello
- Reference Hello symbols from Java (requires additional syntax, PsiReferenceContributor?)
- Run configuration that invokes Hello interpreter
- Compilation of Hello files using ASM
Running 'Build -> Prepare Plugin Module 'hello' for deployment' will produce hello.jar in the base directory.
'hello.jar' can be installed with 'File -> Settings', 'Plugins', 'Install plugin from disk'.
Once you've installed the plugin, the 'test.hello' file should show up with a fancy icon with the word 'Hi' in green text.
Intellij project files
Contains plugin.xml, the plugin configuration file.
Icons.
Java sources.
Once you've built and installed the plugin, this file should show up in the project tree with a special icon with the word 'Hi' in green text.