• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lua syntax support?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lua syntax support?


  • Subject: Re: Lua syntax support?
  • From: "E. Wing" <email@hidden>
  • Date: Wed, 2 Feb 2005 13:46:26 -0800

> From: James Baldwin
>
> There's at least 1 problem that I know of: according to the Lua
> reference manual at http://www.lua.org, a "#" can only indicate a
> comment at the beginning of a line (am I wrong?). I couldn't find any
> documentation on the language specification apart from the examples for
> the built in languages, and thus couldn't find a way to anchor it. I
> assumed it would be too much to hope for that a "^#" would work?
>

Actually, as far as I know, the # symbol is not a valid comment symbol
in Lua (5.0) with one exception.
The very first line of a file is allowed to use the # symbol for a
comment. I think this was done to accomodate Unix shells, e.g.
#!/usr/bin/lua

Anywhere else, the # symbol as a comment would be invalid.

I have no idea if Xcode can handle this exception.

FYI, I think I read in Lua 5.1, the block commenting system will be
enhanced to allow you to define your own custom patterns for comment
blocks. I think the intention was to allow people to define unque
comment blocks that would not clash with random data that could clash
with the predefined patterns.

Anyway, thanks for providing a file spec.

-Eric
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: How to put files in app bundle?
  • Next by Date: Subversion server
  • Previous by thread: Re: Lua syntax support?
  • Next by thread: How to put files in app bundle?
  • Index(es):
    • Date
    • Thread