- '#' as the first character of a line starts a comment
[ginac.git] / ginsh / ginsh_lexer.ll
index d27d0fe275b8917ca06b32153e9e901716e6dd0b..ff585dab55a435f5305fc81e99f4603fa70a8d05 100644 (file)
@@ -56,6 +56,7 @@ AN    [0-9a-zA-Z_]
 [ \t\n]+               /* skip whitespace */
 \\$                    /* skip line continuations */
 "//".*                 /* skip comments starting with "//" */
+^"#".*                 /* skip lines starting with "#" */
 ^"!".*                 system(yytext + 1);     /* execute shell command */
 
                        /* special values */