javalog.vim 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. " Vim syntax file
  2. " Language: java.util.logging output
  3. " Maintainer: rt_davies@yahoo.com
  4. " Last Change: 2007 Jun 12
  5. " Quit when a (custom) syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. " Case sensitive
  10. syn case match
  11. " Custom color defs
  12. hi javalogHeadColor guifg=#ACACFF
  13. hi javalogInfoColor guifg=Green guibg=DarkGray
  14. hi javalogFineColor guifg=#000099 guibg=DarkGray
  15. hi javalogFinerColor guifg=#FF9999 guibg=DarkGray
  16. hi javalogFinestColor guifg=#FFFFCC guibg=DarkGray
  17. " Severe
  18. syntax match javalogLevelSevere /^SEVERE:/
  19. hi link javalogLevelSevere ErrorMsg
  20. " Warning
  21. syntax match javalogLevelWarn /^WARNING:/
  22. hi link javalogLevelWarn WarningMsg
  23. " Info
  24. syntax match javalogInfo /^INFO:/
  25. hi link javalogInfo javalogInfoColor
  26. " Fine
  27. syntax match javalogFine /^FINE:/
  28. hi link javalogFine javalogFineColor
  29. " Finer
  30. syntax match javalogFiner /^FINER:/
  31. hi link javalogFiner javalogFinerColor
  32. " Finest
  33. syntax match javalogFinest /^FINEST:/
  34. hi link javalogFinest javalogFinestColor
  35. " Log entry headers
  36. syntax region javalogHeader start=/^Jan / end=/$/
  37. syntax region javalogHeader start=/^Feb / end=/$/
  38. syntax region javalogHeader start=/^Mar / end=/$/
  39. syntax region javalogHeader start=/^Apr / end=/$/
  40. syntax region javalogHeader start=/^May / end=/$/
  41. syntax region javalogHeader start=/^Jun / end=/$/
  42. syntax region javalogHeader start=/^Jul / end=/$/
  43. syntax region javalogHeader start=/^Aug / end=/$/
  44. syntax region javalogHeader start=/^Sep / end=/$/
  45. syntax region javalogHeader start=/^Oct / end=/$/
  46. syntax region javalogHeader start=/^Nov / end=/$/
  47. syntax region javalogHeader start=/^Dec / end=/$/
  48. hi link javalogHeader javalogHeadColor
  49. " Stack traces
  50. syntax region javaStacktrace start=/^com./ end=/$/
  51. syntax region javaStacktrace start=/^org./ end=/$/
  52. syntax region javaStacktrace start=/^net./ end=/$/
  53. syntax region javaStacktrace start=/^java./ end=/$/
  54. syntax region javaStacktrace start=/^ at/ end=/$/
  55. hi link javaStacktrace Identifier
  56. let b:current_syntax = "javalog"
  57. " vim: ts=8 sw=2