Rename the language from Dino to Rex
Files use .rex, the command is rex, and the crate, runtime prefixes, docs, editor files and examples all use the new name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f44f09b6a
commit
7cf9727bcd
94 files changed
+858
-858
No files matched your search
@@ -0,0 +1,37 @@
|
||||
" Vim / Neovim syntax highlighting for Rex
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword rexControl if else for in step match return break continue
|
||||
syn keyword rexDeclare func var const import struct enum interface pub
|
||||
syn keyword rexModifier shared weak
|
||||
syn keyword rexConstant true false nil
|
||||
syn keyword rexType int float bool char string error map i8 i16 i32 i64 u8 u16 u32 u64 f32 f64
|
||||
syn match rexTypeName "\<[A-Z][A-Za-z0-9_]*\>"
|
||||
syn match rexNumber "\<[0-9][0-9_]*\(\.[0-9][0-9_]*\)\?\>"
|
||||
syn match rexCall "\<[a-z_][A-Za-z0-9_]*\ze\s*("
|
||||
syn match rexOperator "=>\|\.\.\|==\|!=\|<=\|>=\|&&\|||\|[-+*/%]=\?\|[<>!?=]"
|
||||
syn match rexEscape "\\." contained
|
||||
syn region rexInterp matchgroup=rexInterpEdge start="{" end="}" contained contains=TOP
|
||||
syn region rexString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rexEscape,rexInterp
|
||||
syn match rexChar "'\(\\.\|[^'\\]\)'"
|
||||
syn region rexComment start="/\*" end="\*/"
|
||||
syn match rexComment "//.*$"
|
||||
|
||||
hi def link rexControl Conditional
|
||||
hi def link rexDeclare Keyword
|
||||
hi def link rexModifier StorageClass
|
||||
hi def link rexConstant Constant
|
||||
hi def link rexType Type
|
||||
hi def link rexTypeName Type
|
||||
hi def link rexNumber Number
|
||||
hi def link rexCall Function
|
||||
hi def link rexOperator Operator
|
||||
hi def link rexEscape SpecialChar
|
||||
hi def link rexInterpEdge Delimiter
|
||||
hi def link rexString String
|
||||
hi def link rexChar Character
|
||||
hi def link rexComment Comment
|
||||
|
||||
let b:current_syntax = "rex"
|
||||
Reference in new issue
Block a user