updated factor.vim to use words from the kernel vocab as keywords

darcs
chapman.alex 2006-04-18 12:02:31 +00:00
parent cdd6aeb7a1
commit b0776b8f15
2 changed files with 10 additions and 1 deletions

View File

@ -47,6 +47,11 @@ syn keyword factorTodo TODO FIXME XXX contained
syn keyword factorBoolean boolean f general-t t
" use this to have keywords as all words from all vocabs (currently broken by | characters)
" use this to only have keywords highlighted from the kernel vocab
syn keyword factorKeyword continuation-name set-datastack wrapper continuation-catch set-continuation-name cli-bool-param slip pick 2slip tuple 2nip set-boot default-cli-args with-datastack clone cpu tuck -rot swapd <continuation> >boolean wrapper? ifcc dupd dup 3dup callstack windows? os-env over = continue <wrapper> ? 2dup continuation cond win64? set-path run-user-init 3drop when hashcode cli-param default-shell millis set-callstack unless >r version die callcc0 callcc1 num-types or os depth 3keep cli-var-param continue-with if exit tuple? unix? cli-args (continue-with) general-t continuation? hashcode* parse-command-line macosx? r> rot win32? 2apply >continuation< type continuation-call clear no-cond call continuation-data 2drop cli-arg set-continuation-call drop set-continuation-data keep-datastack and when* swap ?if 2swap literalize datastack set-continuation-catch unless* not eq? with wrapped keep 2keep <=> nip if*
syn cluster factorNumber contains=factorInt,factorFloat,factorRatio,factorComplex

View File

@ -29,7 +29,11 @@ syn keyword factorTodo TODO FIXME XXX contained
syn keyword factorBoolean boolean f general-t t
<% ! vocabs [ words "syn keyword " write [ pprint " " write ] each "\n" write ] each %>
" use this to have keywords as all words from all vocabs (currently broken by | characters)
<% ! vocabs [ words [ "syn keyword factorKeyword " write [ pprint " " write ] each "\n" write ] when* ] each %>
" use this to only have keywords highlighted from the kernel vocab
<% "kernel" words "syn keyword factorKeyword " write [ pprint " " write ] each "\n" write %>
syn cluster factorNumber contains=factorInt,factorFloat,factorRatio,factorComplex
syn cluster factorReal contains=factorInt,factorFloat,factorRatio