Syntax highlighting support for the Rux programming language in Visual Studio Code.
- Syntax highlighting for
.ruxsource files - Markdown code fence injection — Rux code inside
```ruxblocks in.mdfiles is highlighted automatically - Highlights the following language constructs:
| Category | Elements |
|---|---|
| Keywords | module, func, struct, enum, union, type, interface, extend |
| Control flow | if, else, for, while, do, loop, match, break, continue, return |
| Storage | let, var, const, pub |
| Modifiers | asm, async, extern, import, export |
| Type operators | as, is |
| Special variables | self, super |
| Comparison operators | ==, !=, <, <=, >, >= |
| Assignment operators | =, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>= |
| Arithmetic operators | +, -, *, /, %, ++, -- |
| Logical/bitwise | &&, ||, !, ~, ^, |, <<, >> |
| Range operators | .., ..=, ... |
| Fat arrow | => |
| Signed Integer types | int, int8, int16, int32, int64, int128, int256, int512 |
| Unsigned Integer types | uint, uint8, uint16, uint32, uint64, uint128, uint256, uint512 |
| Float types | float, float8, float16, float32, float64, float128, float256, float512 |
| Character types | char, char8, char16, char32, char64, char128, char256, char512 |
| Boolean types | bool, bool8, bool16, bool32, bool64, bool128, bool256, bool512 |
| Literals | Decimal, hex (0x), octal (0o), binary (0b) with type suffixes (u, i, u8…u512, i8…i512, f32…f512) |
| Constants | true, false, null |
| Intrinsics | #module, #file, #function, #line, #column, #date, #time |
| Comments | // line, /// doc, /* */ block (nested) |
| Strings | "…", c8"…", c16"…", c32"…" with escape sequences |
| Character literals | '…', c8'…', c16'…', c32'…' with escape sequences |
No additional requirements. Install the extension and open any .rux file.
This extension does not add any configuration settings.
Please report issues on the GitHub issue tracker.
- Added
pubvisibility modifier,self,asm,asynckeywords - Added
istype-check operator;asandisnow correctly scoped as type operators - Added full operator highlighting: comparison (
==,!=,<=,>=), assignment (=,+=,-=, …), logical/bitwise (&&,||,!,~,^,|,<<,>>), increment/decrement (++,--), fat arrow (=>), inclusive range (..=), spread (...) - Added character literals and prefixed string/character literals (
c8,c16,c32) - Added
uandibare integer literal suffixes
Added interface, extend, module keywords and #module, #file, #line, #column, #date, #time intrinsics.
Initial release with full syntax highlighting for Rux source files and Markdown code fence injection.
