annotate runtime/syntax/alsaconf.vim @ 18625:57927799c27e v8.1.2305

patch 8.1.2305: no warning for wrong entry in translations Commit: https://github.com/vim/vim/commit/e53ec39270c805a95e405812e4c463c87a150eda Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 16 18:49:50 2019 +0100 patch 8.1.2305: no warning for wrong entry in translations Problem: No warning for wrong entry in translations. Solution: Check semicolons in keywords entry of desktop file.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Nov 2019 19:00:04 +0100
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