states.man: Escape backslashes in namerules and startrules examples.
authorTim Retout <diocles@gnu.org>
Wed, 30 Dec 2009 17:53:14 +0000 (17:53 +0000)
committerTim Retout <diocles@gnu.org>
Wed, 30 Dec 2009 17:53:40 +0000 (17:53 +0000)
docs/ChangeLog
docs/states.man

index 10286d8..7bfc3de 100644 (file)
@@ -1,5 +1,8 @@
 2009-12-30  Tim Retout  <diocles@gnu.org>
 
+       * states.man (STATES PROGRAM FILES): Escape backslashes in
+       namerules and startrules examples.
+
        Small corrections probably originally by Michael Fedrowitz.
 
        * enscript.man (SYNOPSIS): Correct '-W' to '-w'.
index 60add58..9b66975 100644 (file)
@@ -141,14 +141,14 @@ following start and name rules can distinguish C and Fortran files:
 .nf
 namerules
 {
-  /\.(c|h)$/    c;
-  /\.[fF]$/     fortran;
+  /\\.(c|h)$/    c;
+  /\\.[fF]$/     fortran;
 }
 
 startrules
 {
-  /-\*- [cC] -\*-/      c;
-  /-\*- fortran -\*-/   fortran;
+  /-\\*- [cC] -\\*-/      c;
+  /-\\*- fortran -\\*-/   fortran;
 }
 .fi
 .RE