all repos — min @ 9633e2fbd0207e59847da202d854ebd71cb8110d

A small but practical concatenative programming language.

Updated vim syntax file.
h3rald h3rald@h3rald.com
Sat, 12 Nov 2016 17:12:49 +0100
commit

9633e2fbd0207e59847da202d854ebd71cb8110d

parent

68fadcf5ed5a5c7c6d0300fc3c3af64d26a7f094

1 files changed, 35 insertions(+), 32 deletions(-)

jump to
M minim.vimminim.vim

@@ -1,55 +1,58 @@

" Vim syntax file " Language: MiNiM " Maintainer: Fabio Cevasco -" Last Change: 15 September 2016 -" Version: 1.0.0 +" Last Change: 11 November 2016 +" Version: 0.3.0 if exists("b:current_syntax") finish endif -setl iskeyword+=?,$,+,#,*,/,%,=,>,<,&,-,',.,:,~,! +setl iskeyword=@,36-39,+,-,/,*,.,:,~,!,48-57,60-65,94-95,192-255 setl iskeyword+=^ -setl iskeyword+=@ syntax keyword minimDefaultSymbol ! != $ & ' * + # - % ^ -> . .. / : < <= == => =~ > >= @ ROOT aes and append ask at atime b bind bool bool? bury1 bury2 bury3 c call call! capitalize case cd chmod choose clear-stack column-print concat confirm cons cp cpu crypto ctime datetime ddel decode decrypt define delete dget dictionary? dig1 dig2 dig3 dip dir? dirname div dprint dprint! dset dump-stack dup dupd encode encrypt env? eval even? exit fappend file? filename filter first float float? foreach fperms fread from-json format-error fs fsize fstats ftype fwrite gets get-stack getenv hardlink hidden? ifte import indent inspect int int? interpolate interval io join k keys length linrec load load-symbol logic loglevel loglevel? lowercase ls ls-r map match md5 mkdir mod module mtime mv newline not now num number? odd? os password pop popd pred print print! prompt publish puts puts! putenv q quotation? quote quote-bind quote-define raise regex remove-symbol repeat replace rest rm rmdir run save-symbol scope scope? seal search set-stack sha1 sha224 sha256 sha384 sha512 sigils sip sleep sort source split startup stored-symbols str string string? strip succ swap swapd swons symbols symlink symlink? sys system take tformat time timeinfo times timestamp titleize to-json try unquote uppercase unzip values version which while with xor zip contains -syntax match minimDefaultSigil ;\<[:@'~!$%&$=<>^*#]; contained -syntax match minimSpecialSymbols ;[:@'~!$%&$=<>^*#]; contained -syntax match minimQuote ;\<[']; -syntax match minimBinding ;@; +syntax match minimDefaultSigil ;\<[:@'~!$%&$=<>#^*#]; contained +syntax match minimSpecialSymbols ;[:@'~!$%&$=<>#^*#]; contained +syntax match minimQuote ;\<[']; +syntax match minimQuotedBinding ;#; +syntax match minimBinding ;@; -syntax keyword minimCommentTodo TODO FIXME XXX TBD contained -syntax match minimComment /;.*$/ contains=minimCommentTodo +syntax keyword minimCommentTodo TODO FIXME XXX TBD contained +syntax match minimComment /;.*$/ contains=minimCommentTodo -syntax match minimNumber ;[-+]\=\d\+\(\.\d*\)\=; -syntax keyword minimBoolean true false -syntax region minimString start=+"+ skip=+\\\\\|\\$"+ end=+"+ +syntax match minimNumber ;[-+]\=\d\+\(\.\d*\)\=; +syntax keyword minimBoolean true false +syntax region minimString start=+"+ skip=+\\\\\|\\$"+ end=+"+ -syntax region minimSigilSymbol start=;\<[:@'~!$%&$=<>^*]; end=;\>; contains=minimDefaultSigil -syntax region minimQuotedSymbol start=;\<[']; end=;\>; contains=minimQuote -syntax region minimBoundSymbol start=;@; end=;\>; contains=minimBinding -syntax match minimSymbol ;[a-zA-Z0-9+._-][a-zA-Z0-9/!?+*._-]*; +syntax region minimSigilSymbol start=;\<[:@'~!$%&$=<>^*]; end=;\>; contains=minimDefaultSigil +syntax region minimQuotedSymbol start=;\<[']; end=;\>; contains=minimQuote +syntax region minimBoundSymbol start=;@; end=;\>; contains=minimBinding +syntax region minimQuotedBoundSymbol start=;#; end=;\>; contains=minimQuotedBinding +syntax match minimSymbol ;[a-zA-Z0-9+._-][a-zA-Z0-9/!?+*._-]*; -syntax match minimParen ;(\|); +syntax match minimParen ;(\|); " Highlighting -hi default link minimComment Comment -hi default link minimCommentTodo Todo -hi default link minimString String -hi default link minimSigilSymbol String -hi default link minimNumber Number -hi default link minimBoolean Boolean -hi default link minimDefaultSymbol Statement -hi default link minimQuote Delimiter -hi default link minimBinding Delimiter -hi default link minimDefaultSigil Delimiter -hi default link minimSymbol Identifier -hi default link minimQuotedSymbol Special -hi default link minimBoundSymbol Special -hi default link minimParen Special +hi default link minimComment Comment +hi default link minimCommentTodo Todo +hi default link minimString String +hi default link minimSigilSymbol String +hi default link minimNumber Number +hi default link minimBoolean Boolean +hi default link minimDefaultSymbol Statement +hi default link minimQuote Delimiter +hi default link minimBinding Delimiter +hi default link minimQuotedBinding Delimiter +hi default link minimDefaultSigil Delimiter +hi default link minimSymbol Identifier +hi default link minimQuotedSymbol Special +hi default link minimBoundSymbol Special +hi default link minimQuotedBoundSymbol Special +hi default link minimParen Special let b:current_syntax = "minim"