Vim syntax highlighting

This commit is contained in:
2025-12-22 20:38:02 +11:00
parent 43310c70bf
commit 7351604571
2 changed files with 38 additions and 0 deletions

37
vim/syntax/solstice.vim Normal file
View File

@@ -0,0 +1,37 @@
" Vim highlight file for Solstice (.sols)
if exists("b:current_syntax")
finish
endif
" Keywords
syn keyword solsticeConditional if
syn keyword solsticeRepeat while
syn keyword solsticeBoolean true false
" Built-in functions
syn keyword solsticeBuiltin puts println input
" Data Types
syn match solsticeNumber "\d\+\(\.\d\+\)\="
syn region solsticeString start=/"/ end=/"/
syn match solsticeCharacter /'[^']'/
" Operators
syn match solsticeOperator "==\|!=\|>=\|<=\|++\|--\|+\=\|-\=\|\*=\|\/="
syn match solsticeOperator "[><=+\-*/]"
" Delimiters
syn match solsticeDelimiter "[{()}]"
hi def link solsticeConditional Conditional
hi def link solsticeRepeat Repeat
hi def link solsticeBoolean Boolean
hi def link solsticeBuiltin Function
hi def link solsticeNumber Number
hi def link solsticeString String
hi def link solsticeCharacter Character
hi def link solsticeOperator Operator
hi def link solsticeDelimiter Delimiter
let b:current_syntax = "solstice"