]> git.wh0rd.org Git - nano.git/commitdiff
Adding syntax colouring for PO files.
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 3 Apr 2014 10:54:46 +0000 (10:54 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Thu, 3 Apr 2014 10:54:46 +0000 (10:54 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4709 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/po.nanorc [new file with mode: 0644]

index a6ff7a47100c61c7c2336657f70d80935c7cad79..74f9be4e74fa0d5f4464a4c468880bfa3a0d457f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2014-04-03  Benno Schulenberg  <bensberg@justemail.net>
        * configure.ac: Remove unused '*_support' variables.
+       * doc/syntax/po.nanorc: New file, syntax colouring for PO files.
 
 2014-04-02  Benno Schulenberg  <bensberg@justemail.net>
        * configure.ac, doc/Makefile.am: Try to build the info documentation
diff --git a/doc/syntax/po.nanorc b/doc/syntax/po.nanorc
new file mode 100644 (file)
index 0000000..08c2237
--- /dev/null
@@ -0,0 +1,24 @@
+## Syntax colouring for PO files.
+##
+syntax "po" "\.pot?$"
+# Comments.
+color green "^#.*$"
+color yellow "Copyright|\(C\)"
+# Header fields.
+color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language\-Team|Language|X\-Generator|Plural\-Forms)\>"
+color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>"
+# Encodings and numbers.
+color yellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]"
+color yellow "[0-9]|pre[0-9]|[0-9]bit"
+# Msgids.
+color brightblue "\<(msgid|msgid_plural|msgstr)\>"
+# Tags.
+color red "\<fuzzy\>"
+color yellow "\<c-format\>"
+# Format specifiers.
+color brightmagenta "%([1-9]\$)?[a-z]*"
+# Quotes and newlines.
+color yellow "\""
+color cyan "\\n"
+# Obsolete strings.
+color red "#~.*$"