Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
zir.vim50 linesDownload Raw Back to syntax
1" Vim syntax file2" Language: Zir3" Upstream: https://github.com/ziglang/zig.vim4 5if exists("b:current_syntax")6  finish7endif8let b:current_syntax = "zir"9 10syn region zirCommentLine start=";" end="$" contains=zirTodo,@Spell11 12syn region zirBlock start="{" end="}" transparent fold13 14syn keyword zirKeyword primitive fntype int str as ptrtoint fieldptr deref asm unreachable export ref fn15 16syn keyword zirTodo contained TODO17 18syn region zirString start=+c\?"+ skip=+\\\\\|\\"+ end=+"+ oneline contains=zirEscape,zirEscapeUnicode,zirEscapeError,@Spell19 20syn match zirEscapeError   display contained /\\./21syn match zirEscape        display contained /\\\([nrt\\'"]\|x\x\{2}\)/22syn match zirEscapeUnicode display contained /\\\(u\x\{4}\|U\x\{6}\)/23 24syn match zirDecNumber display "\<[0-9]\+\%(.[0-9]\+\)\=\%([eE][+-]\?[0-9]\+\)\="25syn match zirHexNumber display "\<0x[a-fA-F0-9]\+\%([a-fA-F0-9]\+\%([pP][+-]\?[0-9]\+\)\?\)\="26syn match zirOctNumber display "\<0o[0-7]\+"27syn match zirBinNumber display "\<0b[01]\+\%(.[01]\+\%([eE][+-]\?[0-9]\+\)\?\)\="28 29syn match zirGlobal display "[^a-zA-Z0-9_]\?\zs@[a-zA-Z0-9_]\+"30syn match zirLocal  display "[^a-zA-Z0-9_]\?\zs%[a-zA-Z0-9_]\+"31 32hi def link zirCommentLine Comment33hi def link zirTodo Todo34 35hi def link zirKeyword Keyword36 37hi def link zirString Constant38 39hi def link zirEscape Special40hi def link zirEscapeUnicode zirEscape41hi def link zirEscapeError Error42 43hi def link zirDecNumber Constant44hi def link zirHexNumber Constant45hi def link zirOctNumber Constant46hi def link zirBinNumber Constant47 48hi def link zirGlobal Identifier49hi def link zirLocal  Identifier50 
codekingpro/portable-devtools · Team Ai