" 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 caseq caseql casequal syn keyword txl_keyword contained cat-str cat-vec catch cdr syn keyword txl_keyword contained ceil chain chdir chr-isalnum syn keyword txl_keyword contained chr-isalpha chr-isascii chr-iscntrl chr-isdigit syn keyword txl_keyword contained chr-isgraph chr-islower chr-isprint chr-ispunct syn keyword txl_keyword contained chr-isspace chr-isupper chr-isxdigit chr-num syn keyword txl_keyword contained chr-str chr-str-set chr-tolower chr-toupper syn keyword txl_keyword contained chrp close-stream closelog cmp-str syn keyword txl_keyword contained collect-each collect-each* comb compl-span-str syn keyword txl_keyword contained cond cons conses conses* syn keyword txl_keyword contained consp copy copy-alist copy-cons syn keyword txl_keyword contained copy-hash copy-list copy-str copy-vec syn keyword txl_keyword contained cos count-if countq countql syn keyword txl_keyword contained countqual cum-norm-dist daemon dec syn keyword txl_keyword contained defmacro defsymacro defun defvar syn keyword txl_keyword contained del delay delete-package do syn keyword txl_keyword contained dohash downcase-str dwim each syn keyword txl_keyword contained each* empty env env-fbind syn keyword txl_keyword contained env-hash env-vbind eq eql syn keyword txl_keyword contained equal errno error eval syn keyword txl_keyword contained evenp exit exp expt syn keyword txl_keyword contained exptmod false fbind fboundp syn keyword txl_keyword contained fifth filter-equal filter-string-tree find syn keyword txl_keyword contained find-if find-max find-min find-package syn keyword txl_keyword contained first fixnump flatten flatten* syn keyword txl_keyword contained flet flip flo-int flo-str syn keyword txl_keyword contained floatp floor flush-stream for syn keyword txl_keyword contained for* force format fourth syn keyword txl_keyword contained fun func-get-env func-get-form func-set-env syn keyword txl_keyword contained functionp gcd gen generate syn keyword txl_keyword contained gensym get-byte get-char get-hash-userdata syn keyword txl_keyword contained get-line get-lines get-list-from-stream get-sig-handler syn keyword txl_keyword contained get-string get-string-from-stream gethash getitimer syn keyword txl_keyword contained getpid getppid giterate group-by syn keyword txl_keyword contained gun hash hash-alist hash-construct syn keyword txl_keyword contained hash-count hash-diff hash-eql hash-equal syn keyword txl_keyword contained hash-isec hash-keys hash-pairs hash-uni syn keyword txl_keyword contained hash-update hash-update-1 hash-values hashp syn keyword txl_keyword contained html-decode html-encode iapply identity syn keyword txl_keyword contained ido if iff iffi syn keyword txl_keyword contained inc inhash int-flo int-str syn keyword txl_keyword contained integerp intern interp-fun-p interpose syn keyword txl_keyword contained ip ipf isqrt itimer-prov syn keyword txl_keyword contained itimer-real itimer-virtual juxt keep-if syn keyword txl_keyword contained keep-if* keywordp kill labels syn keyword txl_keyword contained lambda last lazy-str lazy-str-force syn keyword txl_keyword contained lazy-str-force-upto lazy-str-get-trailing-list lazy-stream-cons lazy-stringp syn keyword txl_keyword contained lbind lcons-fun lconsp 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 log2 logand logior syn keyword txl_keyword contained lognot logtest logtrunc logxor syn keyword txl_keyword contained macro-form-p macro-time macroexpand macroexpand-1 syn keyword txl_keyword contained macrolet major make-catenated-stream make-env syn keyword txl_keyword contained make-hash make-lazy-cons make-like make-package syn keyword txl_keyword contained make-random-state make-similar-hash make-string-byte-input-stream make-string-input-stream syn keyword txl_keyword contained make-string-output-stream make-strlist-output-stream make-sym make-time syn keyword txl_keyword contained make-time-utc make-trie makedev mapcar syn keyword txl_keyword contained mapcar* mapdo maphash mappend syn keyword txl_keyword contained mappend* mask match-fun match-regex syn keyword txl_keyword contained match-regex-right match-str match-str-tree max syn keyword txl_keyword contained member member-if memq memql syn keyword txl_keyword contained memqual merge min minor syn keyword txl_keyword contained mkdir mknod mkstring mod syn keyword txl_keyword contained multi multi-sort n-choose-k n-perm-k syn keyword txl_keyword contained nconc nilf none not syn keyword txl_keyword contained nreverse null nullify num-chr syn keyword txl_keyword contained num-str numberp oddp op syn keyword txl_keyword contained open-command open-directory open-file open-files syn keyword txl_keyword contained open-files* open-pipe open-process open-tail syn keyword txl_keyword contained openlog or orf packagep syn keyword txl_keyword contained partition-by 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-lines put-string put-strings syn keyword txl_keyword contained pwd qquote quasi quasilist syn keyword txl_keyword contained quote rand random random-fixnum syn keyword txl_keyword contained random-state-p range range* range-regex syn keyword txl_keyword contained rcomb read readlink real-time-stream-p syn keyword txl_keyword contained reduce-left reduce-right ref refset syn keyword txl_keyword contained regex-compile regex-parse regexp regsub syn keyword txl_keyword contained rehome-sym remhash remove-if remove-if* syn keyword txl_keyword contained remove-path remq remq* remql syn keyword txl_keyword contained remql* remqual remqual* rename-path syn keyword txl_keyword contained repeat replace replace-list replace-str syn keyword txl_keyword contained replace-vec rest ret retf syn keyword txl_keyword contained return return-from reverse rlcp syn keyword txl_keyword contained rperm rplaca rplacd run syn keyword txl_keyword contained s-ifblk s-ifchr s-ifdir s-ififo syn keyword txl_keyword contained s-iflnk s-ifmt s-ifreg s-ifsock syn keyword txl_keyword contained s-irgrp s-iroth s-irusr s-irwxg syn keyword txl_keyword contained s-irwxo s-irwxu s-isgid s-isuid syn keyword txl_keyword contained s-isvtx s-iwgrp s-iwoth s-iwusr syn keyword txl_keyword contained s-ixgrp s-ixoth s-ixusr search syn keyword txl_keyword contained search-regex search-str search-str-tree second syn keyword txl_keyword contained seek-stream select seqp set syn keyword txl_keyword contained set-diff set-hash-userdata set-sig-handler sethash syn keyword txl_keyword contained setitimer setlogmask sh sig-abrt syn keyword txl_keyword contained sig-alrm sig-bus sig-check sig-chld syn keyword txl_keyword contained sig-cont sig-fpe sig-hup sig-ill syn keyword txl_keyword contained sig-int sig-io sig-iot sig-kill syn keyword txl_keyword contained sig-lost sig-pipe sig-poll sig-prof syn keyword txl_keyword contained sig-pwr sig-quit sig-segv sig-stkflt syn keyword txl_keyword contained sig-stop sig-sys sig-term sig-trap syn keyword txl_keyword contained sig-tstp sig-ttin sig-ttou sig-urg syn keyword txl_keyword contained sig-usr1 sig-usr2 sig-vtalrm sig-winch syn keyword txl_keyword contained sig-xcpu sig-xfsz sin sixth syn keyword txl_keyword contained size-vec some sort source-loc syn keyword txl_keyword contained source-loc-str span-str splice split-str syn keyword txl_keyword contained split-str-set sqrt stat stdlib syn keyword txl_keyword contained str< str<= str= str> syn keyword txl_keyword contained str>= stream-get-prop stream-set-prop streamp syn keyword txl_keyword contained string-extend string-lt stringp sub syn keyword txl_keyword contained sub-list sub-str sub-vec symacrolet syn keyword txl_keyword contained symbol-function symbol-name symbol-package symbol-value syn keyword txl_keyword contained symbolp symlink sys-qquote sys-splice syn keyword txl_keyword contained sys-unquote syslog tan tf syn keyword txl_keyword contained third throw throwf time syn keyword txl_keyword contained time-fields-local time-fields-utc time-string-local time-string-utc syn keyword txl_keyword contained time-usec tofloat toint tok-str syn keyword txl_keyword contained tok-where tostring tostringp transpose syn keyword txl_keyword contained tree-bind tree-case tree-find trie-add syn keyword txl_keyword contained trie-compress trie-lookup-begin trie-lookup-feed-char trie-value-at syn keyword txl_keyword contained trim-str true trunc tuples syn keyword txl_keyword contained typeof unget-byte unget-char uniq syn keyword txl_keyword contained unless unquote until upcase-str syn keyword txl_keyword contained update url-decode url-encode usleep syn keyword txl_keyword contained uw-protect vec vec-push vec-set-length syn keyword txl_keyword contained vecref vector vector-list vectorp syn keyword txl_keyword contained when where while with-saved-vars syn keyword txl_keyword contained 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_splicevar "@[ \t,*]*[A-Za-z_][A-Za-z0-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_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]\+\([^A-Za-z0-9!$#%&*+\-<=>?\\^_~/]\|\n\)"me=e-1 contained syn match txr_badnum "[+\-]\?[0-9]*[.][0-9]\+\([eE][+\-]\?[0-9]\+\)\?[A-Za-z!$#%&*+\-<=>?\\^_~/]\+" contained syn match txr_num "[+\-]\?[0-9]*[.][0-9]\+\([eE][+\-]\?[0-9]\+\)\?\([^A-Za-z0-9!$#%&*+\-<=>?\\^_~/]\|\n\)"me=e-1 contained syn match txr_num "[+\-]\?[0-9]\+\([eE][+\-]\?[0-9]\+\)\([^A-Za-z0-9!$#%&*+\-<=>?\\^_~/]\|\n\)"me=e-1 contained syn match txl_ident ":" contained syn match txl_splice "[ \t,]\|,[*]" 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,txl_splice,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,txr_badnum,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,txr_badnum,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,txr_badnum,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,txr_badnum,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,txr_badnum,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_splicevar,txr_metanum,txr_bracevar,txr_mlist,txr_mbracket syn region txr_regex contained start="/" skip="\\\\\|\\/\|\\\n" end="/\|\n" syn region txl_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_splicevar 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_badnum Error 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_munqspl Special hi def link txl_splice Special hi def link txr_error Error hi def link txr_nested_error Error let b:current_syntax = "lisp"