" Vim syntax file" Language: readline configuration file" Maintainer: Nikolai Weibull <source@pcppopper.org>" URL: http://www.pcppopper.org/vim/syntax/pcp/readline/" Latest Revision: 2004-05-22" arch-tag: 6d8e7da4-b39c-4bf7-8e6a-d9135f993457" Variables:" readline_has_bash - if defined add support for bash specific" settings/functionsif version < 600syntax clearelseif exists("b:current_syntax")finishendif" Set iskeyword since we need `-' (and potentially others) in keywords." For version 5.x: Set it globally" For version 6.x: Set it locallyif version >= 600command -nargs=1 SetIsk setlocal iskeyword=<args>elsecommand -nargs=1 SetIsk set iskeyword=<args>endifSetIsk 48-57,65-90,97-122,-delcommand SetIsk" commentssyn region readlineComment display oneline matchgroup=readlineComment start="^\s*#" end="$" contains=readlineTodo" todosyn keyword readlineTodo contained TODO FIXME XXX NOTE" strings (argh...not the way i want it, but fine..."syn match readlineString "^\s*[A-Za-z-]\+:"me=e-1 contains=readlineKeyssyn region readlineString display oneline start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=readlineKeysTwo" special keysyn case ignoresyn keyword readlineKeys contained Control Meta Del Esc Escape LFD Newline Ret Return Rubout Space Spc Tabsyn case matchsyn match readlineKeysTwo contained +\\\([CM]-\|[e\\"'abdfnrtv]\|\o\{3}\|x\x\{3}\)+" keymapssyn match readlineKeymaps contained "emacs\(-standard\|-meta\|-ctlx\)\="syn match readlineKeymaps contained "vi\(-move\|-command\|-insert\)\="" bell stylessyn keyword readlineBellStyles contained audible visible none" numberssyn match readlineNumber contained "\<\d\+\>"" booleanssyn case ignoresyn keyword readlineBoolean contained on offsyn case match" conditionalssyn keyword readlineIfOps contained mode termsyn region readlineConditional display oneline transparent matchgroup=readlineConditional start="^\s*$if" end="$" contains=readlineIfOps,readlineKeymapssyn match readlineConditional "^\s*$\(else\|endif\)\>"" includesyn match readlineInclude "^\s*$include\>"" settingssyn region readlineSet display oneline transparent matchgroup=readlineKeyword start="^\s*set\>" end="$"me=e-1 contains=readlineNumber,readlineBoolean,readlineKeymaps,readlineBellStyles,readlineSettingssyn keyword readlineSettings contained bell-style comment-begin completion-ignore-casesyn keyword readlineSettings contained completion-query-items convert-meta disable-completion editing-mode enable-keypadsyn keyword readlineSettings contained expand-tilde horizontal-scroll-mode mark-directories keymap mark-modified-lines meta-flagsyn keyword readlineSettings contained input-meta output-meta print-completions-horizontally show-all-if-ambiguous visible-statssyn keyword readlineSettings contained prefer-visible-bell blink-matching-parensyn keyword readlineSettings contained match-hidden-files history-preserve-point isearch-terminators" bash extensionsif exists("readline_has_bash")"syn keyword readlineSettings containedendif" key bindingssyn region readlineBinding display oneline transparent matchgroup=readlineKeyword start=":" end="$" contains=readlineKeys,readlineFunctionssyn match readlineFunctions contained "\<\(beginning\|end\)-of-line\>"syn match readlineFunctions contained "\<\(backward\|forward\)-\(char\|word\)\>"syn match readlineFunctions contained "\<\(previous\|next\|\(beginning\|end\)-of\|\(non-incremental-\)\=\(reverse\|forward\)-search\)-history\>"syn match readlineFunctions contained "\<history-search-\(forward\|backward\)\>"syn match readlineFunctions contained "\<yank-\(nth\|last\)-arg\>"syn match readlineFunctions contained "\<\(backward-\)\=kill-\(\(whole-\)\=line\|word\)\>"syn match readlineFunctions contained "\<\(start\|end\|call-last\)-kbd-macro\>"syn match readlineFunctions contained "\<dump-\(functions\|variables\|macros\)\>"syn match readlineFunctions contained "\<non-incremental-\(reverse\|forward\)-search-history-again\>"syn keyword readlineFunctions contained clear-screen redraw-current-line accept-line delete-char backward-delete-char quoted-insert tab-insertsyn keyword readlineFunctions contained self-insert transpose-chars transpose-words downcase-word capitalize-word unix-word-ruboutsyn keyword readlineFunctions contained delete-horizontal-space kill-region copy-region-as-kill copy-backward-word copy-forward-word yank yank-popsyn keyword readlineFunctions contained digit-argument universal-argument complete possible-completions insert-completions menu-completesyn keyword readlineFunctions contained re-read-init-file abort do-uppercase-version prefix-meta undo revert-line tilde-expand set-marksyn keyword readlineFunctions contained exchange-point-and-mark character-search character-search-backward insert-comment emacs-editing-mode vi-editing-modesyn keyword readlineFunctions contained unix-line-discard upcase-word backward-delete-word vi-eof-maybe vi-movement-mode vi-match vi-tilde-expandsyn keyword readlineFunctions contained vi-complete vi-char-search vi-redo vi-search vi-arg-digit vi-append-eol vi-prev-word vi-change-to vi-delete-tosyn keyword readlineFunctions contained vi-end-word vi-fetch-history vi-insert-beg vi-search-again vi-put vi-replace vi-subst vi-yank-to vi-first-printsyn keyword readlineFunctions contained vi-yank-arg vi-goto-mark vi-append-mode vi-insertion-mode prev-history vi-set-mark vi-search-again vi-put vi-change-charsyn keyword readlineFunctions contained vi-subst vi-delete vi-yank-to vi-column vi-change-case vi-overstrike vi-overstrike-deletesyn keyword readlineFunctions contained do-lowercase-version delete-char-or-list tty-status arrow-key-prefixsyn keyword readlineFunctions contained vi-back-to-indent vi-bword vi-bWord vi-eword vi-eWord vi-fword vi-fWord vi-next-word" bash extensionsif exists("readline_has_bash")syn keyword readlineFunctions contained shell-expand-line history-expand-line magic-space alias-expand-line history-and-alias-expand-line insert-last-argumentsyn keyword readlineFunctions contained operate-and-get-next forward-backward-delete-char delete-char-or-list complete-filename possible-filename-completionssyn keyword readlineFunctions contained complete-username possible-username-completions complete-variable possible-variable-completions complete-hostnamesyn keyword readlineFunctions contained possible-hostname-completions complete-command possible-command-completions dynamic-complete-history complete-into-bracessyn keyword readlineFunctions contained glob-expand-word glob-list-expansions display-shell-versionsyn keyword readlineFunctions contained glob-complete-word edit-and-execute-commandendif" Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_readline_syn_inits")if version < 508let did_readline_syn_inits = 1command -nargs=+ HiLink hi link <args>elsecommand -nargs=+ HiLink hi def link <args>endifHiLink readlineComment CommentHiLink readlineTodo TodoHiLink readlineString StringHiLink readlineKeys SpecialCharHiLink readlineKeysTwo SpecialCharHiLink readlineKeymaps ConstantHiLink readlineBellStyles ConstantHiLink readlineNumber NumberHiLink readlineBoolean BooleanHiLink readlineIfOps TypeHiLink readlineConditional ConditionalHiLink readlineInclude IncludeHiLink readlineKeyword KeywordHiLink readlineSettings TypeHiLink readlineFunctions Typedelcommand HiLinkendiflet b:current_syntax = "readline"" vim: set sts=2 sw=2: