" VIM Syntax file for txr " Kaz Kylheku " INSTALL-HOWTO: " " 1. Create the directory .vim/syntax in your home directory and " put this file there. " 2. In your .vimrc, add this command to associate *.txr files " with the txr filetype. " :au BufRead,BufNewFile *.txr set filetype=txr | set lisp " " If you want syntax highlighting to be on automatically (for any language) " you need to add ":syntax on" in your .vimrc also. But you knew that already! " " This file is generated by the genvim.txr script in the TXR source tree. syn case match syn spell toplevel setlocal iskeyword=a-z,A-Z,48-57,!,$,&,*,+,-,<,=,>,?,\\,_,~,/ syn keyword txr_keyword contained accept all and assert syn keyword txr_keyword contained bind block cases cat syn keyword txr_keyword contained catch choose close coll syn keyword txr_keyword contained collect defex deffilter define syn keyword txr_keyword contained do elif else end syn keyword txr_keyword contained eof eol fail filter syn keyword txr_keyword contained finally flatten forget freeform syn keyword txr_keyword contained fuzz gather if last syn keyword txr_keyword contained load local maybe merge syn keyword txr_keyword contained next none or output syn keyword txr_keyword contained rebind rep repeat require syn keyword txr_keyword contained set skip some text syn keyword txr_keyword contained throw trailer try until syn keyword txr_keyword contained var syn keyword txl_keyword contained * *args* *full-args* *gensym-counter* syn keyword txl_keyword contained *keyword-package* *random-state* *self-path* *stddebug* syn keyword txl_keyword contained *stderr* *stdin* *stdlog* *stdnull* syn keyword txl_keyword contained *stdout* *txr-version* *user-package* + syn keyword txl_keyword contained - / /= < syn keyword txl_keyword contained <= = > >= syn keyword txl_keyword contained abs abs-path-p acons acons-new syn keyword txl_keyword contained aconsql-new acos ado alist-nremove syn keyword txl_keyword contained alist-remove all and andf syn keyword txl_keyword contained ap apf append append* syn keyword txl_keyword contained append-each append-each* apply ash syn keyword txl_keyword contained asin assoc assql atan syn keyword txl_keyword contained atan2 atom bignump bit syn keyword txl_keyword contained block boundp break-str call syn keyword txl_keyword contained car cat-str cat-vec catch syn keyword txl_keyword contained cdr ceil chain chdir syn keyword txl_keyword contained chr-isalnum chr-isalpha chr-isascii chr-iscntrl syn keyword txl_keyword contained chr-isdigit chr-isgraph chr-islower chr-isprint syn keyword txl_keyword contained chr-ispunct chr-isspace chr-isupper chr-isxdigit syn keyword txl_keyword contained chr-num chr-str chr-str-set chr-tolower syn keyword txl_keyword contained chr-toupper chrp close-stream closelog syn keyword txl_keyword contained cmp-str collect-each collect-each* comb syn keyword txl_keyword contained compl-span-str cond cons conses syn keyword txl_keyword contained conses* consp copy copy-alist syn keyword txl_keyword contained copy-cons copy-hash copy-list copy-str syn keyword txl_keyword contained copy-vec cos count-if countq syn keyword txl_keyword contained countql countqual cum-norm-dist daemon syn keyword txl_keyword contained dec defmacro defsymacro defun syn keyword txl_keyword contained defvar del delay delete-package syn keyword txl_keyword contained do dohash downcase-str dwim syn keyword txl_keyword contained each each* empty env syn keyword txl_keyword contained env-fbind env-hash env-vbind eq syn keyword txl_keyword contained eql equal errno error syn keyword txl_keyword contained eval evenp exit exp syn keyword txl_keyword contained expt exptmod false fbind syn keyword txl_keyword contained fboundp fifth filter-equal filter-string-tree syn keyword txl_keyword contained find find-if find-max find-min syn keyword txl_keyword contained find-package first fixnump flatten syn keyword txl_keyword contained flatten* flet flip flo-int syn keyword txl_keyword contained flo-str floatp floor flush-stream syn keyword txl_keyword contained for for* force format syn keyword txl_keyword contained fourth fun func-get-env func-get-form syn keyword txl_keyword contained func-set-env functionp gcd gen syn keyword txl_keyword contained generate gensym get-byte get-char syn keyword txl_keyword contained get-hash-userdata get-line get-list-from-stream get-sig-handler syn keyword txl_keyword contained get-string-from-stream gethash group-by gun syn keyword txl_keyword contained hash hash-alist hash-construct hash-count syn keyword txl_keyword contained hash-diff hash-eql hash-equal hash-isec syn keyword txl_keyword contained hash-keys hash-pairs hash-uni hash-update syn keyword txl_keyword contained hash-update-1 hash-values hashp html-decode syn keyword txl_keyword contained html-encode iapply identity ido syn keyword txl_keyword contained if iff iffi inc syn keyword txl_keyword contained inhash int-flo int-str integerp syn keyword txl_keyword contained intern interp-fun-p ip ipf syn keyword txl_keyword contained isqrt keep-if keep-if* keywordp syn keyword txl_keyword contained labels lambda last lazy-str syn keyword txl_keyword contained lazy-str-force lazy-str-force-upto lazy-str-get-trailing-list lazy-stream-cons syn keyword txl_keyword contained lazy-stringp lbind lcons-fun ldiff syn keyword txl_keyword contained length length-list length-str length-str-< syn keyword txl_keyword contained length-str-<= length-str-> length-str->= length-vec syn keyword txl_keyword contained let let* link lisp-parse syn keyword txl_keyword contained list list* list-str list-vector syn keyword txl_keyword contained listp log log-alert log-auth syn keyword txl_keyword contained log-authpriv log-cons log-crit log-daemon syn keyword txl_keyword contained log-debug log-emerg log-err log-info syn keyword txl_keyword contained log-ndelay log-notice log-nowait log-odelay syn keyword txl_keyword contained log-perror log-pid log-user log-warning syn keyword txl_keyword contained log10 logand logior lognot syn keyword txl_keyword contained logtest logtrunc logxor macro-form-p syn keyword txl_keyword contained macro-time macroexpand macroexpand-1 macrolet syn keyword txl_keyword contained major make-catenated-stream make-env make-hash syn keyword txl_keyword contained make-lazy-cons make-like make-package make-random-state syn keyword txl_keyword contained make-similar-hash make-string-byte-input-stream make-string-input-stream make-string-output-stream syn keyword txl_keyword contained make-strlist-output-stream make-sym make-time make-time-utc syn keyword txl_keyword contained make-trie makedev mapcar mapcar* syn keyword txl_keyword contained maphash mappend mappend* mask syn keyword txl_keyword contained match-fun match-regex match-regex-right match-str syn keyword txl_keyword contained match-str-tree max member member-if syn keyword txl_keyword contained memq memql memqual merge syn keyword txl_keyword contained min minor mkdir mknod syn keyword txl_keyword contained mkstring mod multi multi-sort syn keyword txl_keyword contained n-choose-k n-perm-k nilf none syn keyword txl_keyword contained not nreverse null nullify syn keyword txl_keyword contained num-chr num-str numberp oddp syn keyword txl_keyword contained op open-command open-directory open-file syn keyword txl_keyword contained open-files open-files* open-pipe open-process syn keyword txl_keyword contained open-tail openlog or orf syn keyword txl_keyword contained packagep perm pop pos syn keyword txl_keyword contained pos-if pos-max pos-min posq syn keyword txl_keyword contained posql posqual pprinl pprint syn keyword txl_keyword contained pprof prinl print prof syn keyword txl_keyword contained prog1 progn prop proper-listp syn keyword txl_keyword contained push pushhash put-byte put-char syn keyword txl_keyword contained put-line put-string pwd qquote syn keyword txl_keyword contained quasi quasilist quote rand syn keyword txl_keyword contained random random-fixnum random-state-p range syn keyword txl_keyword contained range* range-regex rcomb read syn keyword txl_keyword contained readlink real-time-stream-p reduce-left reduce-right syn keyword txl_keyword contained ref refset regex-compile regex-parse syn keyword txl_keyword contained regexp regsub rehome-sym remhash syn keyword txl_keyword contained remove-if remove-if* remove-path remq syn keyword txl_keyword contained remq* remql remql* remqual syn keyword txl_keyword contained remqual* rename-path repeat replace syn keyword txl_keyword contained replace-list replace-str replace-vec rest syn keyword txl_keyword contained ret retf return return-from syn keyword txl_keyword contained reverse rlcp rperm rplaca syn keyword txl_keyword contained rplacd run s-ifblk s-ifchr syn keyword txl_keyword contained s-ifdir s-ififo s-iflnk s-ifmt syn keyword txl_keyword contained s-ifreg s-ifsock s-irgrp s-iroth syn keyword txl_keyword contained s-irusr s-irwxg s-irwxo s-irwxu syn keyword txl_keyword contained s-isgid s-isuid s-isvtx s-iwgrp syn keyword txl_keyword contained s-iwoth s-iwusr s-ixgrp s-ixoth syn keyword txl_keyword contained s-ixusr search search-regex search-str syn keyword txl_keyword contained search-str-tree second seek-stream select syn keyword txl_keyword contained seqp set set-diff set-hash-userdata syn keyword txl_keyword contained set-sig-handler sethash setlogmask sh syn keyword txl_keyword contained sig-abrt sig-alrm sig-bus sig-check syn keyword txl_keyword contained sig-chld sig-cont sig-fpe sig-hup syn keyword txl_keyword contained sig-ill sig-int sig-io sig-iot syn keyword txl_keyword contained sig-kill sig-lost sig-pipe sig-poll syn keyword txl_keyword contained sig-prof sig-pwr sig-quit sig-segv syn keyword txl_keyword contained sig-stkflt sig-stop sig-sys sig-term syn keyword txl_keyword contained sig-trap sig-tstp sig-ttin sig-ttou syn keyword txl_keyword contained sig-urg sig-usr1 sig-usr2 sig-vtalrm syn keyword txl_keyword contained sig-winch sig-xcpu sig-xfsz sin syn keyword txl_keyword contained sixth size-vec some sort syn keyword txl_keyword contained source-loc source-loc-str span-str splice syn keyword txl_keyword contained split-str split-str-set sqrt stat syn keyword txl_keyword contained stdlib str< str<= str= syn keyword txl_keyword contained str> str>= stream-get-prop stream-set-prop syn keyword txl_keyword contained streamp string-extend string-lt stringp syn keyword txl_keyword contained sub sub-list sub-str sub-vec syn keyword txl_keyword contained symacrolet symbol-function symbol-name symbol-package syn keyword txl_keyword contained symbol-value symbolp symlink sys-qquote syn keyword txl_keyword contained sys-splice sys-unquote syslog tan syn keyword txl_keyword contained tf third throw throwf syn keyword txl_keyword contained time time-fields-local time-fields-utc time-string-local syn keyword txl_keyword contained time-string-utc time-usec tofloat toint syn keyword txl_keyword contained tok-str tok-where tostring tostringp syn keyword txl_keyword contained transpose tree-bind tree-case tree-find syn keyword txl_keyword contained trie-add trie-compress trim-str true syn keyword txl_keyword contained trunc tuples typeof unget-byte syn keyword txl_keyword contained unget-char unless unquote until syn keyword txl_keyword contained upcase-str update url-decode url-encode syn keyword txl_keyword contained usleep uw-protect vec vec-push syn keyword txl_keyword contained vec-set-length vecref vector vector-list syn keyword txl_keyword contained vectorp when where while syn keyword txl_keyword contained with-saved-vars zerop zip syn match txr_error "@[\t ]*[*]\?[\t ]*." syn match txr_nested_error "[^\t `]\+" contained syn match txr_hashbang "^#!.*" syn match txr_atat "@[ \t]*@" syn match txr_comment "@[ \t]*[#;].*" syn match txr_contin "@[ \t]*\\$" syn match txr_char "@[ \t]*\\." syn match txr_char "@[ \t]*\\x[0-9A-Fa-f]\+" syn match txr_char "@[ \t]*\\[0-9]\+" syn match txr_variable "@[ \t]*[*]\?[ \t]*[A-Za-z_][A-Za-z0-9_]*" syn match txr_metanum "@[0-9]\+" syn match txr_regdir "@[ \t]*/\(\\/\|[^/]\|\\\n\)*/" syn match txr_chr "#\\x[A-Fa-f0-9]\+" contained syn match txr_chr "#\\o[0-9]\+" contained syn match txr_chr "#\\[^ \t\nA-Za-z0-9_]" contained syn match txr_chr "#\\[A-Za-z0-9_]\+" contained syn match txr_ncomment ";.*" contained syn match txr_dot "\." contained syn match txr_num "#x[+\-]\?[0-9A-Fa-f]\+" contained syn match txr_num "#o[+\-]\?[0-7]\+" contained syn match txr_num "#b[+\-]\?[0-1]\+" contained syn match txr_num "[+\-]\?[0-9]\+" contained syn match txr_ident "[:@][A-Za-z0-9!#$%&*+\-<=>?\\^_~]\+" contained syn match txr_ident "[A-Za-z0-9!$%&*+\-<=>?\\_~]*[A-Za-z!$#%&*+\-<=>?\\^_~][A-Za-z0-9!$#%&*+\-<=>?\\^_~]*" contained syn match txl_ident "[:@][A-Za-z0-9!$%&*+\-<=>?\\\^_~/]\+" contained syn match txl_ident "[A-Za-z0-9!$%&*+\-<=>?\\_~/]*[A-Za-z!$#%&*+\-<=>?\\^_~/][A-Za-z0-9!$#%&*+\-<=>?\\^_~/]*" contained syn match txr_num "[+\-]\?[0-9]*[.][0-9]\+\([eE][+\-]\?[0-9]\+\)\?" contained syn match txr_num "[+\-]\?[0-9]\+\([eE][+\-]\?[0-9]\+\)" contained syn match txl_ident ":" contained syn match txr_unquote "," contained syn match txr_splice ",\*" contained syn match txr_quote "'" contained syn match txr_quote "\^" contained syn match txr_dotdot "\.\." contained syn match txr_metaat "@" contained syn region txr_bracevar matchgroup=Delimiter start="@[ \t]*[*]\?{" matchgroup=Delimiter end="}" contains=txr_num,txr_ident,txr_string,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_regex,txr_quasilit,txr_chr,txr_nested_error syn region txr_directive matchgroup=Delimiter start="@[ \t]*(" matchgroup=Delimiter end=")" contains=txr_keyword,txr_string,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_num,txl_ident,txl_regex,txr_string,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error syn region txr_list contained matchgroup=Delimiter start="#\?H\?(" matchgroup=Delimiter end=")" contains=txl_keyword,txr_string,txl_regex,txr_num,txl_ident,txr_metanum,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error syn region txr_bracket contained matchgroup=Delimiter start="\[" matchgroup=Delimiter end="\]" contains=txl_keyword,txr_string,txl_regex,txr_num,txl_ident,txr_metanum,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error syn region txr_mlist contained matchgroup=Delimiter start="@[ \t]*(" matchgroup=Delimiter end=")" contains=txl_keyword,txr_string,txl_regex,txr_num,txl_ident,txr_metanum,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error syn region txr_mbracket matchgroup=Delimiter start="@[ \t]*\[" matchgroup=Delimiter end="\]" contains=txl_keyword,txr_string,txl_regex,txr_num,txl_ident,txr_metanum,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error syn region txr_string contained start=+#\?\*\?"+ skip=+\\\\\|\\"\|\\\n+ end=+"\|\n+ syn region txr_quasilit contained start=+#\?\*\?`+ skip=+\\\\\|\\`\|\\\n+ end=+`\|\n+ contains=txr_variable,txr_metanum,txr_bracevar,txr_mlist,txr_mbracket syn region txr_regex contained start="#\?/" skip="\\\\\|\\/\|\\\n" end="/\|\n" hi def link txr_at Special hi def link txr_atstar Special hi def link txr_atat Special hi def link txr_comment Comment hi def link txr_ncomment Comment hi def link txr_hashbang Preproc hi def link txr_contin Preproc hi def link txr_char String hi def link txr_keyword Keyword hi def link txl_keyword Type hi def link txr_string String hi def link txr_chr String hi def link txr_quasilit String hi def link txr_regex String hi def link txl_regex String hi def link txr_regdir String hi def link txr_variable Identifier hi def link txr_metanum Identifier hi def link txr_ident Identifier hi def link txl_ident Identifier hi def link txr_num Number hi def link txr_quote Special hi def link txr_unquote Special hi def link txr_splice Special hi def link txr_dot Special hi def link txr_dotdot Special hi def link txr_metaat Special hi def link txr_error Error hi def link txr_nested_error Error let b:current_syntax = "lisp"