| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 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 |
|
| 28 |
|
| 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 |
|