Data Realms Fan Forums http://45.55.195.193/ |
|
Comment blocks do not work. http://45.55.195.193/viewtopic.php?f=73&t=20896 |
Page 1 of 1 |
Author: | Yazuak [ Sun Dec 26, 2010 5:08 am ] |
Post subject: | Comment blocks do not work. |
I tried to comment out a section of my code with /* */ (which works in fine gmod's implementation of lua), but CC told me there was an "unexpected character near /" Anyone else get this error? I hate having to comment out line by line. |
Author: | zalo [ Sun Dec 26, 2010 5:30 am ] |
Post subject: | Re: Comment blocks do not work. |
Since comments in .inis are //, I guess Data made them -- in Lua. I believe the way to do block comments is --[[ and ]]-- . This too: http://www.ozone3d.net/blogs/demoniak3d/?p=36 |
Author: | alphagamer774 [ Sun Dec 26, 2010 5:53 am ] |
Post subject: | Re: Comment blocks do not work. |
/* BLEHBLEHBLEH BLEHBLEHBLEH */ EDIT: OH ♥♥♥♥ I'M DUMB. Serves me right for not reading your post. |
Author: | CaveCricket48 [ Sun Dec 26, 2010 5:54 am ] |
Post subject: | Re: Comment blocks do not work. |
It works for me as Code: --[[ Comment here More comments Blah Blah --]] |
Author: | Grif [ Sun Dec 26, 2010 7:06 am ] |
Post subject: | Re: Comment blocks do not work. |
Standard lua block comments start with --[[ and are terminated by ]]. I think --]] is just used for syntactic cleanliness. |
Author: | Petethegoat [ Sun Dec 26, 2010 9:11 pm ] |
Post subject: | Re: Comment blocks do not work. |
Garry just added C style commenting because he preferred it to regular commenting in Lua. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |