2
0

maf.vim 873 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. "
  2. " SRT - Secure, Reliable, Transport
  3. " Copyright (c) 2020 Haivision Systems Inc.
  4. "
  5. " This Source Code Form is subject to the terms of the Mozilla Public
  6. " License, v. 2.0. If a copy of the MPL was not distributed with this
  7. " file, You can obtain one at http://mozilla.org/MPL/2.0/.
  8. "
  9. " This file describes MAF ("manifest") file syntax used by
  10. " SRT project.
  11. "
  12. if exists("b:current_syntax")
  13. finish
  14. endif
  15. " conditionals
  16. syn match mafCondition contained " - [!A-Za-z].*"hs=s+2
  17. " section
  18. syn match mafSection "^[A-Z][0-9A-Za-z_].*$" contains=mafCondition
  19. syn match mafsection "^ .*$" contains=mafCondition
  20. " comments
  21. syn match mafComment "^\s*\zs#.*$"
  22. syn match mafComment "\s\zs#.*$"
  23. syn match mafComment contained "#.*$"
  24. " hilites
  25. hi def link mafComment Comment
  26. hi def link mafSection Statement
  27. hi def link mafCondition Number
  28. let b:current_syntax = "maf"