Debian Codegraph @

vim/syntax/espeaklist.vim

raw symbols SCIP
1 " Vim syntax file
2 " Language: eSpeak Dictionary List Files
3 " Filenames: *_list, *_listx, *_extra, *_emoji
4 " Maintainer: Reece H. Dunn <[email protected]>
5 " Last Change: 2017 Jun 3
6
7 " Quit when a (custom) syntax file was already loaded
8 if exists("b:current_syntax")
9 finish
10 endif
11
12 syn region espeaklistLineComment start="^//" end="$" keepend contains=espeaklistComment
13 syn match espeaklistLinePhraseEntry "^\(\(//\)\@!\)(.*$" contains=espeaklistEntryPhrase
14 syn match espeaklistLineEntry "^\(\(//\)\@!\)[^?(].*$" contains=espeaklistEntryWord
15 syn match espeaklistLineConditionalEntry "^[?!].*$" contains=espeaklistEntryConditional
16 syn match espeaklistLineFlagEntry "^\$.*$" contains=espeaklistFlag
17
18 syn region espeaklistComment contained start="//" end="$" keepend contains=@Spell
19
20 syn region espeaklistFlag contained start="\$" end="[ \t\r\n]" skipwhite nextgroup=espeaklistFlag,espeaklistComment
21
22 syn region espeaklistEntryConditional contained start="^[?!]" end="[ \t]" skipwhite nextgroup=espeaklistEntryPhrase,espeaklistEntryWord
23 syn region espeaklistEntryPhrase contained start="^(" end=")" skipwhite nextgroup=espeaklistEntryPronunciation
24 syn match espeaklistEntryWord contained "[^ \t\r\n]\+" skipwhite nextgroup=espeaklistEntryPronunciation,espeaklistFlag
25 syn match espeaklistEntryPronunciation contained "[^$/]*" skipwhite nextgroup=espeaklistFlag,espeaklistComment
26
27 " Define the default highlighting.
28 " Only used when an item doesn't have highlighting yet
29
30 hi def link espeaklistComment Comment
31 hi def link espeaklistFlag PreProc
32 hi def link espeaklistEntryConditional PreProc
33 hi def link espeaklistEntryPhrase espeaklistEntry
34 hi def link espeaklistEntryWord espeaklistEntry
35 hi def link espeaklistEntryPronunciation None
36 hi def link espeaklistEntry Identifier
37
38 let b:current_syntax = "espeaklist"
39 " vim: ts=8