qb64.vim 587 B

123456789101112131415161718192021222324252627
  1. " Vim filetype plugin file
  2. " Language: QB64
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. if exists("b:did_ftplugin")
  5. finish
  6. endif
  7. let s:cpo_save = &cpo
  8. set cpo&vim
  9. runtime! ftplugin/basic.vim
  10. let s:not_end = '\%(end\s\+\)\@<!'
  11. let b:match_words ..= ',' ..
  12. \ s:not_end .. '\<declare\>:\<end\s\+declare\>,' ..
  13. \ '\<select\s\+everycase\>:\%(select\s\+\)\@<!\<case\%(\s\+\%(else\|is\)\)\=\>:\<end\s\+select\>,' ..
  14. \ '$IF\>:$\%(ELSEIF\|ELSE\)\>:$END\s*IF\>'
  15. unlet s:not_end
  16. let &cpo = s:cpo_save
  17. unlet s:cpo_save
  18. " vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker: