IntelliJ IDEA plugin for Moxie language support (.mx files).
- Keywords (func, var, const, etc.) - Built-in functions (append, cap, clear, close, copy, delete, len, make, panic, print, println, recover, spawn) - Built-in types (int, string, bool, etc.) - Comments (line and block) - String literals (including raw strings) - Numbers (integers, floats) - Operators and delimiters
- Brace matching ((), {}, []) - Code folding (blocks and comments) - Comment/uncomment support (Ctrl+/ for line, Ctrl+Shift+/ for block) - Automatic quote pairing
./gradlew buildPluginbuild/distributions/moxie-intellij-plugin-*.zip via Settings → Plugins → Install Plugin from Disk./gradlew buildPlugin
The plugin will be generated in build/distributions/.
src/main/
├── kotlin/com/moxie/lang/
│ ├── MoxieLanguage.kt # Language definition
│ ├── MoxieFileType.kt # File type definition
│ ├── MoxieLexer.kt # Lexical analyzer
│ ├── MoxieTokenTypes.kt # Token definitions
│ ├── MoxieParser.kt # Parser
│ ├── MoxieParserDefinition.kt # Parser configuration
│ ├── MoxieSyntaxHighlighter.kt # Syntax highlighter
│ ├── MoxieColorSettingsPage.kt # Color settings UI
│ ├── MoxieCommenter.kt # Comment handler
│ ├── MoxieBraceMatcher.kt # Brace matching
│ ├── MoxieFoldingBuilder.kt # Code folding
│ └── MoxieQuoteHandler.kt # Quote handling
└── resources/
├── META-INF/plugin.xml # Plugin configuration
└── icons/moxie-file.svg # File icon
./gradlew runIde
This will launch a new IntelliJ IDEA instance with the plugin loaded.
go and fallthrough, which are compile errors in Moxie)spawn() — creates isolated domains over IPCstring and []byte are the same type[]T{:n}, chan T{}, map[K]V{} - go, fallthrough
- new, complex, real, imag
- complex64, complex128, uintptr
See LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.