mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Added support for Zig
This commit is contained in:
parent
87befaf064
commit
cca764ce6c
1 changed files with 9 additions and 0 deletions
9
zig.nanorc
Normal file
9
zig.nanorc
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
syntax "Zig" "\.zig$$"
|
||||||
|
color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>"
|
||||||
|
color brightcyan "@[a-zA-Z]+[0-9]{0,2}"
|
||||||
|
color cyan "(true|false|null|undefined)"
|
||||||
|
color cyan "\<(0[xob])?([0-9]_?)+\>"
|
||||||
|
color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>"
|
||||||
|
color magenta "\"[^"]*\""
|
||||||
|
comment "//"
|
||||||
|
tabgives " "
|
||||||
Loading…
Add table
Add a link
Reference in a new issue