annotate runtime/syntax/readline.vim @ 2225:dd5c1983e355 vim73

Runtime file updates.
author Bram Moolenaar <bram@vim.org>
date Fri, 28 May 2010 20:54:39 +0200
parents 7bc41231fbc7
children 3c7da93eb7f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
2 " Language: readline(3) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
4 " Latest Revision: 2009-05-25
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " readline_has_bash - if defined add support for bash specific
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 " settings/functions
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
8 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
12 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
14
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 839
diff changeset
15 setlocal iskeyword+=-
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
16
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
17 syn keyword readlineTodo contained TODO FIXME XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
19 syn region readlineComment display oneline start='^\s*#' end='$'
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 \ contains=readlineTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 syn match readlineString '^\s*[A-Za-z-]\+:'me=e-1 contains=readlineKeys
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 syn region readlineString display oneline start=+"+ skip=+\\\\\|\\"+
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 \ end=+"+ contains=readlineKeysTwo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn case ignore
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
27 syn keyword readlineKeys contained Control Meta Del Esc Escape LFD
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 \ Newline Ret Return Rubout Space Spc Tab
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 syn match readlineKeysTwo contained display
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 \ +\\\([CM]-\|[e\\"'abdfnrtv]\|\o\{3}\|x\x\{3}\)+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 syn match readlineKeymaps contained display
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
35 \ 'emacs\(-standard\|-meta\|-ctlx\)\='
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
36 syn match readlineKeymaps contained display
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 \ 'vi\(-move\|-command\|-insert\)\='
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 syn keyword readlineBellStyles contained audible visible none
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
41 syn match readlineNumber contained display '\<\d\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn case ignore
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 syn keyword readlineBoolean contained on off
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
47 syn keyword readlineIfOps contained mode term
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
48
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
49 syn region readlineConditional display oneline transparent
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
50 \ matchgroup=readlineConditional
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
51 \ start='^\s*$if' end="$"
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
52 \ contains=readlineIfOps,readlineKeymaps
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
53 syn match readlineConditional display '^\s*$\(else\|endif\)\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
54
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
55 syn match readlineInclude display '^\s*$include\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
56
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
57 syn region readlineSet display oneline transparent
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
58 \ matchgroup=readlineKeyword start='^\s*set\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
59 \ end="$"me=e-1 contains=readlineNumber,
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
60 \ readlineBoolean,readlineKeymaps,
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
61 \ readlineBellStyles,readlineSettings
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
63 syn keyword readlineSettings contained bell-style comment-begin
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
64 \ completion-ignore-case completion-query-items
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
65 \ convert-meta disable-completion editing-mode
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
66 \ enable-keypad expand-tilde
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
67 \ horizontal-scroll-mode mark-directories
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
68 \ keymap mark-modified-lines meta-flag
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
69 \ input-meta output-meta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
70 \ print-completions-horizontally
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
71 \ show-all-if-ambiguous visible-stats
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
72 \ prefer-visible-bell blink-matching-paren
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
73 \ match-hidden-files history-preserve-point
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
74 \ isearch-terminators
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
76 syn region readlineBinding display oneline transparent
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
77 \ matchgroup=readlineKeyword start=':' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
78 \ contains=readlineKeys,readlineFunctions
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
80 syn keyword readlineFunctions contained display
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
81 \ beginning-of-line end-of-line forward-char
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
82 \ backward-char forward-word backward-word
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
83 \ clear-screen redraw-current-line
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
84 \ accept-line previous-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
85 \ next-history beginning-of-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
86 \ end-of-history reverse-search-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
87 \ forward-search-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
88 \ non-incremental-reverse-search-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
89 \ non-incremental-forward-search-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
90 \ history-search-forward
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
91 \ history-search-backward
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
92 \ yank-nth-arg yank-last-arg
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
93 \ delete-char backward-delete-char
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
94 \ forward-backward-delete-char quoted-insert
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
95 \ tab-insert self-insert transpose-chars
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
96 \ transpose-words upcase-word downcase-word
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
97 \ capitalize-word overwrite-mode kill-line
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
98 \ backward-kill-line unix-line-discard
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
99 \ kill-whole-line kill-word backward-kill-word
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
100 \ unix-word-rubout unix-filename-rubout
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
101 \ delete-horizontal-space kill-region
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
102 \ copy-region-as-kill copy-backward-word
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
103 \ copy-forward-word yank yank-pop
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
104 \ digit-argument universal-argument complete
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
105 \ possible-completions insert-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
106 \ menu-complete delete-char-or-list
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
107 \ start-kbd-macro end-kbd-macro
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
108 \ call-last-kbd-macro re-read-init-file
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
109 \ abort do-uppercase-version prefix-meta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
110 \ undo revert-line tilde-expand set-mark
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
111 \ exchange-point-and-mark character-search
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
112 \ character-search-backward insert-comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
113 \ dump-functions dump-variables dump-macros
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
114 \ emacs-editing-mode vi-editing-mode
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
115 \ vi-complete vi-char-search vi-redo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
116 \ vi-search vi-arg-digit vi-append-eol
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
117 \ vi-prev-word vi-change-to vi-delete-to
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
118 \ vi-end-word vi-fetch-history vi-insert-beg
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
119 \ vi-search-again vi-put vi-replace
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
120 \ vi-subst vi-yank-to vi-first-print
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
121 \ vi-yank-arg vi-goto-mark vi-append-mode
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
122 \ vi-insertion-mode prev-history vi-set-mark
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
123 \ vi-search-again vi-put vi-change-char
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
124 \ vi-subst vi-delete vi-yank-to
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
125 \ vi-column vi-change-case vi-overstrike
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
126 \ vi-overstrike-delete do-lowercase-version
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
127 \ delete-char-or-list tty-status
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
128 \ arrow-key-prefix vi-back-to-indent vi-bword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
129 \ vi-bWord vi-eword vi-eWord vi-fword vi-fWord
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
130 \ vi-next-word
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
131 \ vi-movement-mode
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 if exists("readline_has_bash")
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
134 syn keyword readlineFunctions contained
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
135 \ shell-expand-line history-expand-line
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
136 \ magic-space alias-expand-line
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
137 \ history-and-alias-expand-line
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
138 \ insert-last-argument operate-and-get-next
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
139 \ forward-backward-delete-char
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
140 \ delete-char-or-list complete-filename
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
141 \ possible-filename-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
142 \ complete-username
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
143 \ possible-username-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
144 \ complete-variable
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
145 \ possible-variable-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
146 \ complete-hostname
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
147 \ possible-hostname-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
148 \ complete-command
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
149 \ possible-command-completions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
150 \ dynamic-complete-history
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
151 \ complete-into-braces
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
152 \ glob-expand-word glob-list-expansions
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
153 \ display-shell-version glob-complete-word
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
154 \ edit-and-execute-command
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
157 hi def link readlineComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
158 hi def link readlineTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
159 hi def link readlineString String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
160 hi def link readlineKeys SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
161 hi def link readlineKeysTwo SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
162 hi def link readlineKeymaps Constant
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
163 hi def link readlineBellStyles Constant
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
164 hi def link readlineNumber Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
165 hi def link readlineBoolean Boolean
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
166 hi def link readlineIfOps Type
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
167 hi def link readlineConditional Conditional
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
168 hi def link readlineInclude Include
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
169 hi def link readlineKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
170 hi def link readlineSettings Type
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
171 hi def link readlineFunctions Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 let b:current_syntax = "readline"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
175 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
176 unlet s:cpo_save