[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA and #-style comments
- From: mgix@...
- Date: Thu, 10 Mar 2005 11:20:52 -0800 (PST)
Forgot to attach the patch. Here it is:
*** lua-5.0.2/src/llex.c 2003-03-24 04:39:34.000000000 -0800
--- /root/lua-5.0.2/src/llex.c 2005-03-10 11:18:17.000000000 -0800
***************
*** 315,320 ****
--- 315,325 ----
for (;;) {
switch (LS->current) {
+ case '#': {
+ while(LS->current != '\n' && LS->current != EOZ)
+ next(LS);
+ continue;
+ }
case '\n': {
inclinenumber(LS);
continue;