]> git.draconx.ca Git - gob-dx.git/blobdiff - src/lexer.l
Release 2.0.18
[gob-dx.git] / src / lexer.l
index 1a58a9ccd6f929f8fddb7a79f5aa49f9b9a3ce97..bad0c9adba2c68a936d27b33f650ec7cc475420d 100644 (file)
@@ -1,7 +1,7 @@
 /* GOB C Preprocessor
  * Copyright (C) 1999-2000 the Free Software Foundation.
  * Copyright (C) 2000 Eazel, Inc.
- * Copyright (C) 2001-2009 George (Jiri) Lebl
+ * Copyright (C) 2001-2011 George (Jiri) Lebl
  *
  * Author: George Lebl
  *
@@ -346,6 +346,16 @@ REJECT;
                        if(look_for_includes==0)
                                look_for_includes=1;
                }
+^\%(ct|ctop)\{         {
+                       BEGIN(C_CODE);
+                       parenth_depth = 1;
+                       class_after_c = FALSE;
+                       code_type = CTCODE;
+                       clear_cbuf();
+                       ccode_line = line_no;
+                       if(look_for_includes==0)
+                               look_for_includes=1;
+               }
 ^\%(ad|afterdecls)\{           {
                        BEGIN(C_CODE);
                        parenth_depth = 1;