Created
June 13, 2025 21:02
-
-
Save lazypwny751/e408d3e14d6b2d7e732f7d3c27067296 to your computer and use it in GitHub Desktop.
micro editor syntax configuration for jule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filetype: jule | |
| detect: | |
| filename: "\\.jule$" | |
| rules: | |
| - type.keyword: "\\b(map|type|impl|self|trait|struct|enum|fn|const|let|mut|for|in|break|continue|goto|match|fall|if|else|ret|error|use|co|cpp|unsafe|defer|chan|select)\\b" | |
| - type.type: "\\b(int|uint|uintptr|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64|bool|str|any|rune|byte)\\b" | |
| - type.builtin: "\\b(new|make|copy|append|out|outln|delete|cap|len|panic|iota)\\b" | |
| - type.constant: "\\b(true|false|nil)\\b" | |
| - comment.line: "//.*" | |
| - constant.string: "\"(\\\\.|[^\"])*\"" | |
| - constant.number: "\\b[0-9]+(\\.[0-9]+)?\\b" | |
| - symbol.operator: "(::|[=+\\-*/%<>!&|^~]+)" | |
| - identifier.function: "\\bfn\\s+([a-zA-Z_][a-zA-Z0-9_]*)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment