annotate runtime/syntax/alsaconf.vim @ 22248:80a000b09cb0 v8.2.1673

patch 8.2.1673: complete_info() selected index has an invalid value Commit: https://github.com/vim/vim/commit/b806aa5bd910dba94fbde586f6019b4825813d28 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 12 22:52:57 2020 +0200 patch 8.2.1673: complete_info() selected index has an invalid value Problem: complete_info() selected index has an invalid value. (Ben Jackson) Solution: Set the index when there is only one match. (closes https://github.com/vim/vim/issues/6945) Add test for complete_info().
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Sep 2020 23:00:03 +0200
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: alsaconf(8) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
6 if exists("b:current_syntax")
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
7 finish
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
8 endif
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
11 set cpo&vim
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
12
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
13 syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
14
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
15 syn region alsaconfComment display oneline
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
16 \ start='#' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
17 \ contains=alsaconfTodo,@Spell
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
18
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
19 syn match alsaconfSpecialChar contained display '\\[ntvbrf]'
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
20 syn match alsaconfSpecialChar contained display '\\\o\+'
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
21
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
22 syn region alsaconfString start=+"+ skip=+\\$+ end=+"\|$+
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
23 \ contains=alsaconfSpecialChar
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
24
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
25 syn match alsaconfSpecial contained display 'confdir:'
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
26
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
27 syn region alsaconfPreProc start='<' end='>' contains=alsaconfSpecial
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
28
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
29 syn match alsaconfMode display '[+?!-]'
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
30
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
31 syn keyword alsaconfKeyword card default device errors files func strings
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
32 syn keyword alsaconfKeyword subdevice type vars
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
33
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
34 syn match alsaconfVariables display '@\(hooks\|func\|args\)'
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
35
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
36 hi def link alsoconfTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
37 hi def link alsaconfComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
38 hi def link alsaconfSpecialChar SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
39 hi def link alsaconfString String
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
40 hi def link alsaconfSpecial Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
41 hi def link alsaconfPreProc PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
42 hi def link alsaconfMode Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
43 hi def link alsaconfKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
44 hi def link alsaconfVariables Identifier
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
45
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
46 let b:current_syntax = "alsaconf"
8ff7fd162d3c updated for version 7.0016
vimboss
parents:
diff changeset
47
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
48 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 24
diff changeset
49 unlet s:cpo_save