Fix unresolved implicit dependency of c_ppline.st state on c.st
authorTim Retout <diocles@gnu.org>
Tue, 1 Jan 2008 17:26:59 +0000 (17:26 +0000)
committerTim Retout <diocles@gnu.org>
Tue, 1 Jan 2008 17:26:59 +0000 (17:26 +0000)
states/hl/ChangeLog
states/hl/c_ppline.st

index fb5a9be..a619549 100644 (file)
@@ -1,5 +1,8 @@
 2008-01-01  Tim Retout  <diocles@gnu.org>
 
+       * c_ppline.st (c_ppline): Move dependency on C rules to top of file,
+       to fix use of CHighlight.
+
        * bash.st (bash): Fix highlighting of escaped quote marks.
        * csh.st (csh): Likewise.  
        * ksh.st (ksh): Likewise.
index 2bde859..fec44d5 100644 (file)
@@ -3,11 +3,10 @@
  * Objective-C highlighting rules.
  */
 
+require_state (c);
+
 state c_ppline extends CHighlight
 {
-  BEGIN {
-    require_state (c);
-  }
   /* Comments within a pre-processor line. */
   /\/\*/ {
     comment_face (true);