2007-12-27 Johan Dahlin <johan@gnome.org>
* src/scannerlexer.l (intsuffix): Add emacs mode line and
escape ' and " so it looks more like C.
svn path=/trunk/; revision=91
2007-12-27 Johan Dahlin <johan@gnome.org>
+ * src/scannerlexer.l (intsuffix): Add emacs mode line and
+ escape ' and " so it looks more like C.
+
* src/scanner.c:
Unlink temporary file used.
+/* -*- Mode: C -*-
/* GObject introspection: C lexer
*
* Copyright (c) 1997 Sandro Sigala <ssigala@globalnet.it>
fracconst ([0-9]*\.[0-9]+)|([0-9]+\.)
exppart [eE][-+]?[0-9]+
floatsuffix [fFlL]
-chartext ([^'])|(\\.)
-stringtext ([^"])|(\\.)
+chartext ([^\'])|(\\.)
+stringtext ([^\"])|(\\.)
%%
-"\n" { ++lineno; }
+"\n" { ++lineno; } /* " */
[\t\f\v\r ]+ { /* Ignore whitespace. */ }
"/*" { skip_comment(); }