ist.vim 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. " Vim syntax file
  2. " Language: Makeindex style file, *.ist
  3. " Maintainer: Peter Meszaros <pmeszaros@effice.hu>
  4. " Last Change: 2012 Jan 08 by Thilo Six
  5. " quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. setlocal iskeyword=$,@,48-57,_
  12. syn case ignore
  13. syn keyword IstInpSpec actual arg_close arg_open encap escape
  14. syn keyword IstInpSpec keyword level quote range_close range_open
  15. syn keyword IstInpSpec page_compositor
  16. syn keyword IstOutSpec preamble postamble setpage_prefix setpage_suffix group_skip
  17. syn keyword IstOutSpec headings_flag heading_prefix heading_suffix
  18. syn keyword IstOutSpec lethead_flag lethead_prefix lethead_suffix
  19. syn keyword IstOutSpec symhead_positive symhead_negative numhead_positive numhead_negative
  20. syn keyword IstOutSpec item_0 item_1 item_2 item_01
  21. syn keyword IstOutSpec item_x1 item_12 item_x2
  22. syn keyword IstOutSpec delim_0 delim_1 delim_2
  23. syn keyword IstOutSpec delim_n delim_r delim_t
  24. syn keyword IstOutSpec encap_prefix encap_infix encap_suffix
  25. syn keyword IstOutSpec line_max indent_space indent_length
  26. syn keyword IstOutSpec suffix_2p suffix_3p suffix_mp
  27. syn region IstString matchgroup=IstDoubleQuote start=+"+ skip=+\\"+ end=+"+ contains=IstSpecial
  28. syn match IstCharacter "'.'"
  29. syn match IstNumber "\d\+"
  30. syn match IstComment "^[\t ]*%.*$" contains=IstTodo
  31. syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained
  32. syn match IstTodo "DEBUG\|TODO" contained
  33. " Define the default highlighting.
  34. " Only when an item doesn't have highlighting yet
  35. hi def link IstInpSpec Type
  36. hi def link IstOutSpec Identifier
  37. hi def link IstString String
  38. hi def link IstNumber Number
  39. hi def link IstComment Comment
  40. hi def link IstTodo Todo
  41. hi def link IstSpecial Special
  42. hi def link IstDoubleQuote Label
  43. hi def link IstCharacter Label
  44. let b:current_syntax = "ist"
  45. let &cpo = s:cpo_save
  46. unlet s:cpo_save
  47. " vim: ts=8 sw=2