dotfiles/nvim/syntax/nu.vim
2026-01-12 06:34:27 +01:00

23 lines
583 B
VimL

" Basic Nushell syntax highlighting — minimal version
" Comments
syn match nuComment "#.*$"
hi def link nuComment Comment
" Strings
syn region nuString start=+"+ skip=+\\\\\|\\"+ end=+"+
syn region nuString start=+'+ skip=+\\\\\|\\'+ end=+'+
hi def link nuString String
" Numbers
syn match nuNumber "\v\d+(\.\d+)?"
hi def link nuNumber Number
" Keywords (you can expand this list)
syn keyword nuKeyword def let mut const if else for while match return
hi def link nuKeyword Keyword
" Built-ins and operators
syn match nuOperator "[|=<>:+*/-]"
hi def link nuOperator Operator