This plugin is still in the early stages of development so only has a handful of features. But over time things will stabilize and more features will be added. Currently only the lexer and some very basic syntax highlighting are done - see screenshot below.
Visit [intellij-crystal.github.io] to find documentation about installation and features.
- Initial syntax highlighting
- Initial AST tree for parser / grammar
To track the progress see the agile board here
The following features will evolve over the next few months:
- full lexer - with tests
- full grammar parser - with tests
- default syntax highlighting color scheme - based on Atom light theme
- darcula syntax highlighting color scheme - based on Atom dark theme
- working commenter
- Go to definition
- jump to implementation
- refactor - rename
Features for later on:
- crystal intellij project type
- compiler support and run configurations
- code formatting
- code auto completion
- An initial alpha release with just the lexer and basic syntax highlighting is in the Jetbrains plugin repo
- Hopefully there will be a release every few months going forward
coming soon
Release version | IntelliJ version |
---|---|
1.1-SNAPSHOT | 2017.2 |
coming soon
- clone the repo
- ./gradlew idea
- ./gradlew build
- open in intellij
- to regenerate the parser and lexer run: ./regenerate.sh
for the parser:
- checkout the crystal source code
git clone https://github.com/crystal-lang/crystal.git
- copy all the cr files into a new dir
cd crystal
mkdir cr_code
find . -name \*.cr -exec cp {} cr_code \;
mv cr_code/*.cr path/to/intellij-crystal/src/test/resources/gold/parser/