This repository has been archived by the owner. It is now read-only.
intellij-crystal-lang
NOTE: Check https://github.com/asedunov/intellij-crystal-lang for an up to date IntelliJ plugin for Crystal language
Crystal plugin for the IntelliJ Platform
Status
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.
Usage
Visit [intellij-crystal.github.io] to find documentation about installation and features.
- Initial syntax highlighting
- Initial AST tree for parser / grammar
Roadmap
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
Releases
- 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
FAQ
coming soon
Compatible Jetbrains Products
Release version | IntelliJ version |
---|---|
1.1-SNAPSHOT | 2017.2 |
Contributing
coming soon
Dev
- clone the repo
- ./gradlew idea
- ./gradlew build
- open in intellij
Testing notes
- 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/
Repository
intellij-crystal-lang
Owner
Statistic
- 53
- 5
- 0
- 0
- 0
- over 1 year ago
- November 23, 2017
License
BSD 3-Clause "New" or "Revised" License
Links
Synced at
Thu, 21 Nov 2024 07:51:07 GMT
Languages