mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Fix #78 further: Support C++ style // comments.
svn path=/trunk/yasm/; revision=2232
This commit is contained in:
parent
f3f0f20466
commit
d9e4f1bc19
3 changed files with 4 additions and 1 deletions
|
|
@ -480,6 +480,7 @@ scan:
|
|||
} else
|
||||
goto line_comment;
|
||||
}
|
||||
"//" { goto line_comment; }
|
||||
|
||||
ws+ { goto scan; }
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
/* So is this */
|
||||
|
||||
// and so is this
|
||||
|
||||
.byte 0 /* at end of line? */
|
||||
|
||||
.byte 0 /* at end of line,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
-:23: warning: end of file in comment
|
||||
-:25: warning: end of file in comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue