po.syntax 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # ---------------------------------------------------
  2. # po.syntax
  3. # GNU Gettext PO files syntax highlighting template.
  4. # Syntax highlighting rules for files produced with
  5. # Gettext tools as used in Midnight Commander and
  6. # Cooledit editors.
  7. #
  8. # It highlights:
  9. # - Original and translated messages (blue/green)
  10. # - Generic comments added by Gettext (white)
  11. # - C-style format modifiers,
  12. # as in c.syntax (brightgreen)
  13. # - Messages marked as "fuzzy" (brightred)
  14. # - Untranslated messages (brightred)
  15. # - Unused messages (red)
  16. #
  17. # Author: David Martin <dmartina@excite.es>
  18. # August 17, 2001
  19. # ---------------------------------------------------
  20. context default
  21. keyword linestart msgstr\s\"\"\n\n brightred
  22. keyword linestart msgid brightcyan
  23. keyword linestart msgstr brightcyan
  24. context linestart #,\sfuzzy \n\n brightred
  25. context linestart #: \n white
  26. context linestart #, \n white
  27. keyword c-format yellow
  28. context linestart #~ \n red
  29. context linestart # \n brown
  30. spellcheck
  31. context exclusive linestart msgid \n cyan
  32. spellcheck
  33. keyword \"\n\"
  34. keyword \\" brightgreen
  35. keyword \\\n brightgreen
  36. keyword %% brightgreen
  37. keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgG\} brightgreen
  38. keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diouxX\} brightgreen
  39. keyword %\[hl\]n brightgreen
  40. keyword %\[.\]\[0123456789\]s brightgreen
  41. keyword %[*] brightgreen
  42. keyword %c brightgreen
  43. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  44. keyword \\\\ brightgreen
  45. keyword \\' brightgreen
  46. keyword \\\{abtnvfr\} brightgreen
  47. context exclusive linestart msgstr \n green
  48. spellcheck
  49. keyword \"\n\"
  50. keyword \\" brightgreen
  51. keyword \\\n brightgreen
  52. keyword %% brightgreen
  53. keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgG\} brightgreen
  54. keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diouxX\} brightgreen
  55. keyword %\[hl\]n brightgreen
  56. keyword %\[.\]\[0123456789\]s brightgreen
  57. keyword %[*] brightgreen
  58. keyword %c brightgreen
  59. keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
  60. keyword \\\\ brightgreen
  61. keyword \\' brightgreen
  62. keyword \\\{abtnvfr\} brightgreen