Re: Lua syntax support?
Re: Lua syntax support?
- Subject: Re: Lua syntax support?
- From: James Baldwin <email@hidden>
- Date: Wed, 2 Feb 2005 10:47:51 -0500
Pardon, but I was not subscribed to the list until after this was
posted:
Or perhaps someone has already done this for Lua
http://www.lua.org/about.html
I went ahead and wrote up a spec yesterday, but due to some mail
routing issues (my fault) I wasn't subscribed to the list until just
now.
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?
If you have any questions/comments please feel free to ping me with
them. I will make this available at http://www.ghoulsgate.net as soon
as the A records propagate.
File Lua.pbfilespec:
/*
* Lua.pbfilespec
*
* James Baldwin <email@hidden>
* 1 February 2005
*
* Lua source file specification.
* Install into: /Library/Application Support/Apple/Developer
Tools/Specifications
*
* More information about the Lua language can be found at
http://www.lua.org
*
*/
(
{
Identifier = sourcecode.lua;
BasedOn = sourcecode;
Name = "Lua Files";
Extensions = (lua);
MIMETypes = ("text/lua");
ComputerLanguage = lua;
IsTextFile = YES;
}
)
File Lua.pblangspec:
/*
* Lua.pblangspec
*
* James Baldwin <email@hidden>
* 1 February 2005
*
* Lua language specification file.
* Install into: /Library/Application Support/Apple/Developer
Tools/Specifications
*
* More information about the Lua language can be found at
http://www.lua.org
*
*/
(
// Lua
{
Identifier = lua;
Name = "Lua";
Description = "Lua";
BasedOn = "pbx_root_language";
SupportsIndentation = YES;
Indentation = {
};
SyntaxColoring = {
CaseSensitive = YES;
CommentsCanBeNested = YES;
MultiLineComment = (
( "--[[", "]]" )
);
SingleLineComment = (
"--",
"#"
);
String = (
( "'", "'" ),
( "\"", "\""),
( "[[", "]]")
);
Keywords = (
"and",
"break",
"do",
"else",
"elseif",
"end",
"false",
"for",
"function",
"if",
"repeat",
"return",
"then",
"true",
"until",
"while"
);
};
}
)
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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