restructure project
This commit is contained in:
53
syntax/monkey.vim
Normal file
53
syntax/monkey.vim
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
" 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 int str bool array hash
|
||||
|
||||
syntax keyword xKeyword fn if else return while
|
||||
|
||||
syntax keyword xFunction len input print first last rest push pop exit assert
|
||||
syntax keyword xFunction bool int str typeof args lower upper join split find
|
||||
syntax keyword xFunction read write
|
||||
|
||||
syntax match xOperator "\v\=\="
|
||||
syntax match xOperator "\v!\="
|
||||
syntax match xOperator "\v<"
|
||||
syntax match xOperator "\v>"
|
||||
syntax match xOperator "\v!"
|
||||
syntax match xOperator "\v\+"
|
||||
syntax match xOperator "\v-"
|
||||
syntax match xOperator "\v\*"
|
||||
syntax match xOperator "\v/"
|
||||
syntax match xOperator "\v:\="
|
||||
syntax match xOperator "\v\="
|
||||
syntax match xOperator "\v&"
|
||||
syntax match xOperator "\v\|"
|
||||
syntax match xOperator "\v^"
|
||||
syntax match xOperator "\v\~"
|
||||
syntax match xOperator "\v&&"
|
||||
syntax match xOperator "\v\|\|"
|
||||
|
||||
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
|
||||
|
||||
let b:current_syntax = "monkey"
|
||||
Reference in New Issue
Block a user