.
This commit is contained in:
parent
189b33b5b3
commit
949f4d8565
5 changed files with 39 additions and 1 deletions
23
nvim/syntax/nu.vim
Normal file
23
nvim/syntax/nu.vim
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
" 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue