Dino compiler: language, formatter, language server, docs, editor support
Compiler in Rust (lexer, parser, checker, C codegen), maps, chars, dino fmt, dino lsp (diagnostics, formatting, outline, definition, hover, completion, signature help), docs, examples, VS Code/Vim files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e2779f447
commit
eaf9567a36
117 files changed
+19970
No files matched your search
@@ -0,0 +1 @@
|
||||
autocmd BufRead,BufNewFile *.dino setfiletype dino
|
||||
@@ -0,0 +1,37 @@
|
||||
" 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"
|
||||
Reference in new issue
Block a user