Fix #78 further: Support C++ style // comments.

svn path=/trunk/yasm/; revision=2232
This commit is contained in:
Peter Johnson 2009-09-12 02:38:35 +00:00
parent f3f0f20466
commit d9e4f1bc19
3 changed files with 4 additions and 1 deletions

View file

@ -480,6 +480,7 @@ scan:
} else
goto line_comment;
}
"//" { goto line_comment; }
ws+ { goto scan; }

View file

@ -2,6 +2,8 @@
/* So is this */
// and so is this
.byte 0 /* at end of line? */
.byte 0 /* at end of line,

View file

@ -1 +1 @@
-:23: warning: end of file in comment
-:25: warning: end of file in comment