eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

espeaklist.vim 1.7KB

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