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.

32 lines
682 B

  1. " Quit when a (custom) syntax file was already loaded
  2. if exists("b:current_syntax")
  3. finish
  4. endif
  5. if !exists("u_boot_highlight_cpp")
  6. let u_boot_highlight_cpp = 1
  7. endif
  8. " case sensitive
  9. syn case match
  10. syn match scrProperty "\${[a-z\._]\+}"
  11. syn match scrHexNumber "0x[0-9a-fA-F]\+"
  12. if u_boot_highlight_cpp != 0
  13. syn match cppHash "^[ \t]*#.*$"
  14. syn match cppLineComment "\/\/.*"
  15. syn region cppComment start="/\*" end="\*/"
  16. hi link cppHash PreProc
  17. hi link cppLineComment Comment
  18. hi link cppComment Comment
  19. else
  20. syn match scrComment "^[ \t]*#.*$"
  21. hi link scrComment Comment
  22. endif
  23. hi link scrProperty Identifier
  24. hi link scrHexNumber Constant
  25. let b:current_syntax = "uboot"