Switching to wsl
This commit is contained in:
@@ -1,52 +1,25 @@
|
||||
" Vim Syntax File
|
||||
" Language: monkey
|
||||
" Creator: James Mills, prologic at shortcircuit dot net dot au
|
||||
" Last Change: 31st January 2019
|
||||
#!/bin/sh
|
||||
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
# Get the highest tag number
|
||||
VERSION="$(git describe --abbrev=0 --tags)"
|
||||
VERSION=${VERSION:-'0.0.0'}
|
||||
|
||||
syntax case match
|
||||
# Get number parts
|
||||
MAJOR="${VERSION%%.*}"; VERSION="${VERSION#*.}"
|
||||
MINOR="${VERSION%%.*}"; VERSION="${VERSION#*.}"
|
||||
PATCH="${VERSION%%.*}"; VERSION="${VERSION#*.}"
|
||||
|
||||
syntax keyword xType true false null int str bool array hash
|
||||
# Increase version
|
||||
PATCH=$((PATCH+1))
|
||||
|
||||
syntax keyword xKeyword fn if else return while
|
||||
TAG="${1}"
|
||||
|
||||
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
|
||||
if [ "${TAG}" = "" ]; then
|
||||
TAG="${MAJOR}.${MINOR}.${PATCH}"
|
||||
fi
|
||||
|
||||
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\|\|"
|
||||
echo "Releasing ${TAG} ..."
|
||||
|
||||
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"
|
||||
git tag -a -s -m "Release ${TAG}" "${TAG}"
|
||||
git push --tags
|
||||
goreleaser release --rm-dist
|
||||
Reference in New Issue
Block a user