Files
monkey/vim/monkey.vim
Chuck Smith 6282075e66
Some checks failed
Build / build (push) Successful in 10m26s
Test / build (push) Failing after 16m44s
bind expression (:=) instead of let
2024-03-21 17:43:03 -04:00

37 lines
919 B
VimL

" Vim Syntax File
" Language: monkey
" Creator: James Mills, prologic at shortcircuit dot net dot au
" Last Change: 31st January 2019
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syntax case match
syntax keyword xType true false null
syntax keyword xKeyword fn if else return while
syntax keyword xFunction len input print first last rest push pop exit assert
syntax keyword xOperator == != < > !
syntax keyword xOperator + - * /
syntax keyword xOperator := =
syntax region xString start=/"/ skip=/\\./ end=/"/
syntax region xComment start='#' end='$' keepend
syntax region xComment start='//' end='$' keepend
highlight link xType Type
highlight link xKeyword Keyword
highlight link xFunction Function
highlight link xString String
highlight link xComment Comment
highlight link xOperator Operator
highlight Operator ctermfg=5
let b:current_syntax = "monkey"