summaryrefslogtreecommitdiff
path: root/minie/e2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'minie/e2c.c')
-rw-r--r--minie/e2c.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/minie/e2c.c b/minie/e2c.c
index 0001c4f..09b151d 100644
--- a/minie/e2c.c
+++ b/minie/e2c.c
@@ -228,8 +228,23 @@ static void string( void )
look = getChar( );
}
+static void skipComment( void )
+{
+ look = getChar( );
+cont:
+ while( look != '*' ) {
+ look = getChar( );
+ }
+ look = getChar( );
+ if( look != ')' ) {
+ goto cont;
+ }
+ look = getChar( );
+}
+
static Symbol getSym( void )
{
+next:
skipWhite( );
/*
num = 0;
@@ -389,6 +404,10 @@ static Symbol getSym( void )
return S_slash;
case '(':
look = getChar( );
+ if( look == '*' ) {
+ skipComment( );
+ goto next;
+ }
return S_lparen;
case ')':
look = getChar( );