Last active
June 13, 2025 21:05
-
-
Save lazypwny751/8009fc862142bdc9e8e3b963470a2b5d to your computer and use it in GitHub Desktop.
nano editor syntax highlight support for v.
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
| syntax "vlang" "\.v$" | |
| color brightred "\<(module|import)\>" | |
| color brightblue "\<(break|continue|defer|else|for|go|goto|if|match|return|select|unsafe|while)\>" | |
| color yellow "\<(or|asm|lock|rlock|spawn|in|is|as)\>" | |
| color yellow "\<(sizeof|typeof|__offsetof|__global)\>" | |
| color brightcyan "\<(enum|fn|interface|struct|type|union)\>" | |
| color cyan "\<(assert|const|implements|pub|mut|shared|static|volatile)\>" | |
| color brightyellow "\<(bool|string|rune|byte|int|i8|i16|i64|i128|u8|u16|u32|u64|u128|f32|f64|voidptr|any|usize|isize)\>" | |
| color red "\$(if|else)\>" | |
| color brightred "\<(windows|linux|macos|android|js|debug|test|glibc)\>" | |
| color brightred "\<(amd64|aarch64|little_endian|big_endian)\>" | |
| color brightred "\<(gcc|tinyc|clang|mingw|msvc|cplusplus)\>" | |
| color brightmagenta "\<(true|false|none)\>" | |
| color magenta "\<[0-9_]+\>" | |
| color magenta "\<0x[0-9a-fA-F_]+\>" | |
| color magenta "\<0b[01_]+\>" | |
| color magenta "\<0o[0-7_]+\>" | |
| color green ""(\\.|[^"])*"" | |
| color green "'(\\.|[^'])*'" | |
| color green "`(\\.|[^`])*`" | |
| color blue "//.*" | |
| color blue start="/\*" end="\*/" | |
| color white "[{}\[\]()]" | |
| color brightyellow "(TODO|FIXME|XXX):?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment