jq.vim 557 B

123456789101112131415161718192021222324
  1. " Vim compiler file
  2. " Language: jq
  3. " Maintainer: Vito <vito.blog@gmail.com>
  4. " Last Change: 2024 Apr 29
  5. " 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
  6. " 2024 Oct 04 by Konfekt (unset compiler)
  7. " Upstream: https://github.com/vito-c/jq.vim
  8. if exists('b:did_ftplugin')
  9. finish
  10. endif
  11. let b:did_ftplugin = 1
  12. setlocal include=^\\s*\\%(import\\\|include\\)
  13. setlocal commentstring=#\ %s
  14. let b:undo_ftplugin = 'setl commentstring< include<'
  15. if !exists('current_compiler')
  16. let b:undo_ftplugin ..= "| compiler make"
  17. compiler jq
  18. endif