]> git.wh0rd.org Git - nano.git/commitdiff
Some small extra colourings.
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 13 Apr 2014 15:57:05 +0000 (15:57 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Sun, 13 Apr 2014 15:57:05 +0000 (15:57 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4762 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/c.nanorc
doc/syntax/changelog.nanorc
doc/syntax/po.nanorc

index 0b4df1cc3d4096ab5ff453a07d2e153b03c6e4ca..2f6d63e8c526a919e2ccf9ac92828833c97fb1c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
        Go-To-Line menu.
        * global.c (shortcut_init): Delete a misplaced setting of 'currmenu'.
        * global.c (shortcut_init, strtomenu): Cosmetic tweaks.
+       * doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings.
 
 2014-04-10  Benno Schulenberg  <bensberg@justemail.net>
        * doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.
index d85fee9e2ac912db097209a5113cdaeacb71b12c..39946f9eb3cc6fa6b45d2a2677bcdb44e551527c 100644 (file)
@@ -23,9 +23,12 @@ color brightyellow "<[^=     ]*>" ""(\\.|[^"])*""
 ## This string is VERY resource intensive!
 color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 
-## Comment highlighting
+## Comments
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
 
+## Reminders
+color ,yellow "(FIXME|TODO|XXX)"
+
 ## Trailing whitespace
 color ,green "[[:space:]]+$"
index 99b46ca55f63b4250c22425709fea24798dd5b10..84c07b09086cb11af8b45ee1d5322f39aa978bea 100644 (file)
@@ -1,19 +1,28 @@
 ## Colouring for Changelogs.
 ##
-syntax "changelog" "^Change[Ll]og"
+syntax "changelog" "Change[Ll]og.*"
 
 # Author lines.
 color green "^(19|20).*$"
 # Dates.
-color red "^(19|20)[-0123456789]*"
+color red "^(19|20)[0-9-]{8}"
 # Email addresses.
 color yellow "<[^>]*@[^>]*>"
 
 # Changed files.
 color magenta "[[:space:]]\*[[:space:]].*:"
 
+# Command-line options.
+color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
+
+# Bug numbers.
+color cyan "bug #[0-9]{5}"
+
 # Probable variables, for variety.
 color brightred "\<[A-Z_][0-9A-Z_]+\>" 
 
+# Key sequences.
+color brightblue "\^[A-Z]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
+
 # Trailing whitespace.
 color ,green "[[:space:]]+$"
index 08c2237fae28899ae04c5df7f3348f801cda317f..db5acfac8afc72f1d8309783fa69295d1cc7ec9f 100644 (file)
@@ -1,4 +1,4 @@
-## Syntax colouring for PO files.
+## Colouring for PO files.
 ##
 syntax "po" "\.pot?$"
 # Comments.
@@ -20,5 +20,7 @@ color brightmagenta "%([1-9]\$)?[a-z]*"
 # Quotes and newlines.
 color yellow "\""
 color cyan "\\n"
+# Reminders.
+color ,yellow "(FIXME|TODO|XXX)"
 # Obsolete strings.
 color red "#~.*$"