" 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 bind syn keyword txr_keyword contained block cases cat catch syn keyword txr_keyword contained choose close coll collect syn keyword txr_keyword contained defex deffilter define do syn keyword txr_keyword contained end eof eol fail syn keyword txr_keyword contained filter finally flatten forget syn keyword txr_keyword contained freeform fuzz gather 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* *user-package* + - syn keyword txl_keyword contained / /= < <= syn keyword txl_keyword contained = > >= abs syn keyword txl_keyword contained acons acons-new aconsql-new acos syn keyword txl_keyword contained alist-nremove alist-remove all and syn keyword txl_keyword contained andf append append* append-each syn keyword txl_keyword contained append-each* apply ash asin syn keyword txl_keyword contained assoc assql atan atan2 syn keyword txl_keyword contained atom bignump block boundp syn keyword txl_keyword contained break-str call car cat-str syn keyword txl_keyword contained cat-vec catch cdr ceil syn keyword txl_keyword contained chain chdir chr-isalnum chr-isalpha syn keyword txl_keyword contained chr-isascii chr-iscntrl chr-isdigit chr-isgraph syn keyword txl_keyword contained chr-islower chr-isprint chr-ispunct chr-isspace syn keyword txl_keyword contained chr-isupper chr-isxdigit chr-num chr-str syn keyword txl_keyword contained chr-str-set chr-tolower chr-toupper chrp syn keyword txl_keyword contained close-stream closelog collect-each collect-each* syn keyword txl_keyword contained comb compl-span-str cond cons syn keyword txl_keyword contained conses conses* consp copy syn keyword txl_keyword contained copy-alist copy-cons copy-hash copy-list syn keyword txl_keyword contained copy-str copy-vec cos count-if syn keyword txl_keyword contained countq countql countqual cum-norm-dist syn keyword txl_keyword contained daemon dec defmacro defsymacro syn keyword txl_keyword contained defun defvar del delay syn keyword txl_keyword contained delete-package do dohash downcase-str syn keyword txl_keyword contained dwim each each* env syn keyword txl_keyword contained env-hash eq eql equal syn keyword txl_keyword contained errno error eval evenp syn keyword txl_keyword contained exit exp expt exptmod syn keyword txl_keyword contained fboundp fifth find find-if syn keyword txl_keyword contained find-package first fixnump flatten syn keyword txl_keyword contained flatten* 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-list-from-stream get-sig-handler get-string-from-stream syn keyword txl_keyword contained gethash group-by gun hash syn keyword txl_keyword contained hash-alist hash-construct hash-count hash-diff syn keyword txl_keyword contained hash-eql hash-equal hash-isec hash-keys syn keyword txl_keyword contained hash-pairs hash-uni hash-update hash-update-1 syn keyword txl_keyword contained hash-values hashp identity if syn keyword txl_keyword contained iff iffi inc inhash syn keyword txl_keyword contained int-flo int-str integerp intern syn keyword txl_keyword contained interp-fun-p isqrt keep-if keep-if* syn keyword txl_keyword contained keywordp lambda 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 lcons-fun ldiff length length-list syn keyword txl_keyword contained length-str length-str-< length-str-<= length-str-> syn keyword txl_keyword contained length-str->= length-vec let let* syn keyword txl_keyword contained link lisp-parse list list* syn keyword txl_keyword contained list-str list-vector listp log syn keyword txl_keyword contained log-alert log-auth log-authpriv log-cons syn keyword txl_keyword contained log-crit log-daemon log-debug log-emerg syn keyword txl_keyword contained log-err log-info log-ndelay log-notice syn keyword txl_keyword contained log-nowait log-odelay log-perror log-pid syn keyword txl_keyword contained log-user log-warning 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-hash syn keyword txl_keyword contained make-lazy-cons make-package make-random-state make-similar-hash syn keyword txl_keyword contained make-string-byte-input-stream make-string-input-stream make-string-output-stream make-strlist-output-stream syn keyword txl_keyword contained make-sym make-time make-time-utc makedev syn keyword txl_keyword contained mapcar mapcar* 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 memq memql memqual merge syn keyword txl_keyword contained min minor mkdir mknod syn keyword txl_keyword contained mkstring mod multi-sort n-choose-k syn keyword txl_keyword contained n-perm-k none not nreverse syn keyword txl_keyword contained null num-chr num-str numberp syn keyword txl_keyword contained oddp op open-command open-directory syn keyword txl_keyword contained open-file open-pipe open-process open-tail syn keyword txl_keyword contained openlog or orf packagep syn keyword txl_keyword contained perm pop pos pos-if syn keyword txl_keyword contained posq posql posqual pprinl syn keyword txl_keyword contained pprint prinl print prog1 syn keyword txl_keyword contained progn prop proper-listp push syn keyword txl_keyword contained pushhash put-byte put-char put-line syn keyword txl_keyword contained put-string pwd qquote quasi syn keyword txl_keyword contained quote rand random random-fixnum syn keyword txl_keyword contained random-state-p range range* rcomb syn keyword txl_keyword contained read readlink real-time-stream-p reduce-left syn keyword txl_keyword contained reduce-right ref refset regex-compile syn keyword txl_keyword contained regex-parse regexp regsub rehome-sym syn keyword txl_keyword contained remhash remove-if remove-if* remove-path syn keyword txl_keyword contained remq remq* remql remql* syn keyword txl_keyword contained remqual remqual* rename-path repeat syn keyword txl_keyword contained replace replace-list replace-str replace-vec syn keyword txl_keyword contained rest return return-from reverse syn keyword txl_keyword contained rlcp rperm rplaca rplacd 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-regex syn keyword txl_keyword contained search-str search-str-tree second seek-stream syn keyword txl_keyword contained set set-diff set-hash-userdata set-sig-handler syn keyword txl_keyword contained sethash setlogmask sig-abrt sig-alrm syn keyword txl_keyword contained sig-bus sig-check sig-chld sig-cont syn keyword txl_keyword contained sig-fpe sig-hup sig-ill sig-int syn keyword txl_keyword contained sig-io sig-iot sig-kill sig-lost syn keyword txl_keyword contained sig-pipe sig-poll sig-prof sig-pwr syn keyword txl_keyword contained sig-quit sig-segv sig-stkflt sig-stop syn keyword txl_keyword contained sig-sys sig-term sig-trap sig-tstp syn keyword txl_keyword contained sig-ttin sig-ttou sig-urg sig-usr1 syn keyword txl_keyword contained sig-usr2 sig-vtalrm sig-winch sig-xcpu syn keyword txl_keyword contained sig-xfsz sin sixth size-vec syn keyword txl_keyword contained some sort source-loc source-loc-str syn keyword txl_keyword contained span-str splice split-str split-str-set syn keyword txl_keyword contained sqrt stat stream-get-prop stream-set-prop syn keyword txl_keyword contained streamp string-cmp string-extend string-lt syn keyword txl_keyword contained stringp sub sub-list sub-str syn keyword txl_keyword contained sub-vec symacrolet symbol-function symbol-name syn keyword txl_keyword contained symbol-package symbol-value symbolp symlink syn keyword txl_keyword contained sys-qquote sys-splice sys-unquote syslog syn keyword txl_keyword contained tan 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 tok-str tostring syn keyword txl_keyword contained tostringp tree-bind tree-case tree-find syn keyword txl_keyword contained trim-str trunc typeof unget-byte syn keyword txl_keyword contained unget-char unquote upcase-str update syn keyword txl_keyword contained url-decode url-encode usleep uw-protect syn keyword txl_keyword contained vec vec-push vec-set-length vecref syn keyword txl_keyword contained vector vector-list vectorp with-saved-vars syn keyword txl_keyword contained zerop 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_regex "/\(\\/\|[^/]\|\\\n\)*/" contained syn match txl_regex "#/\(\\/\|[^/]\|\\\n\)*/" 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!$%&*+\-<=>?\\^_~]*[A-Za-z!$%&*+\-<=>?\\^_~][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_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 oneline start=+"+ skip=+\\\\\|\\"+ end=+"+ syn region txr_quasilit contained oneline start=+`+ skip=+\\\\\|\\`+ end=+`+ contains=txr_variable,txr_metanum,txr_bracevar,txr_mlist,txr_mbracket 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"