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
@@ -1 +0,0 @@
|
||||
autocmd BufRead,BufNewFile *.dino setfiletype dino
|
||||
@@ -0,0 +1 @@
|
||||
autocmd BufRead,BufNewFile *.rex setfiletype rex
|
||||
@@ -1,37 +0,0 @@
|
||||
" Vim / Neovim syntax highlighting for Dino
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword dinoControl if else for in step match return break continue
|
||||
syn keyword dinoDeclare func var const import struct enum interface pub
|
||||
syn keyword dinoModifier shared weak
|
||||
syn keyword dinoConstant true false nil
|
||||
syn keyword dinoType int float bool char string error map i8 i16 i32 i64 u8 u16 u32 u64 f32 f64
|
||||
syn match dinoTypeName "\<[A-Z][A-Za-z0-9_]*\>"
|
||||
syn match dinoNumber "\<[0-9][0-9_]*\(\.[0-9][0-9_]*\)\?\>"
|
||||
syn match dinoCall "\<[a-z_][A-Za-z0-9_]*\ze\s*("
|
||||
syn match dinoOperator "=>\|\.\.\|==\|!=\|<=\|>=\|&&\|||\|[-+*/%]=\?\|[<>!?=]"
|
||||
syn match dinoEscape "\\." contained
|
||||
syn region dinoInterp matchgroup=dinoInterpEdge start="{" end="}" contained contains=TOP
|
||||
syn region dinoString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=dinoEscape,dinoInterp
|
||||
syn match dinoChar "'\(\\.\|[^'\\]\)'"
|
||||
syn region dinoComment start="/\*" end="\*/"
|
||||
syn match dinoComment "//.*$"
|
||||
|
||||
hi def link dinoControl Conditional
|
||||
hi def link dinoDeclare Keyword
|
||||
hi def link dinoModifier StorageClass
|
||||
hi def link dinoConstant Constant
|
||||
hi def link dinoType Type
|
||||
hi def link dinoTypeName Type
|
||||
hi def link dinoNumber Number
|
||||
hi def link dinoCall Function
|
||||
hi def link dinoOperator Operator
|
||||
hi def link dinoEscape SpecialChar
|
||||
hi def link dinoInterpEdge Delimiter
|
||||
hi def link dinoString String
|
||||
hi def link dinoChar Character
|
||||
hi def link dinoComment Comment
|
||||
|
||||
let b:current_syntax = "dino"
|
||||
@@ -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