Support for LUA? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 18 April 2007 at 2:16pm |
Has anybody written a syntax color scheme for LUA (www.lua.org)?
I believe this would be useful for many of us.
There it is.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I have created a color scheme for LUA. If anybody is interested, just let me know and I will upload it.
|
|
esc67
Newbie Joined: 09 June 2005 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
I tried this in 10.4.2 with mixed results. There are aspects of the language that don't work well to the codejock lex. Maybe it could be done int v11?
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Well, I got it working. I think :)
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
I tried a while using the sample framework, but it didn't work that well, wrapped out the function prototype lines etc. If you could upload would be appreciated
|
|
esc67
Newbie Joined: 09 June 2005 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Yes, please post! I'd be happy to test it and help.
It's nice to know there are at least three codejock && Lua users
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
See link above. Please notify me if you improve the scheme somehow. Also note that some lines should be uncommented (math.*, debug.* etc).
|
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
I was just about to post a request for this. I'd love it if Codejock could validate the correctness of this and make it part of the distribution. I'm sure there are just as many users wishing to edit Lua as there are people editing Codejock Schema files ;)
Cheers ~ jp |
|
I like mathematics because it is not human and has nothing particular
to do with this planet or with the whole accidental universe — because, like Spinoza's God, it won't love us in return. |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
Looks like Python made it in, but no Lua
|
|
esc67
Newbie Joined: 09 June 2005 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Huh? Made it in what? Has 11.2 been released?
Edit: Ah! I found your source: http://forum.codejock.com/forum_posts.asp?TID=7918
|
|
esc67
Newbie Joined: 09 June 2005 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
A color scheme is nice, but without expand-collapse regions I’ll stick with Scintilla. I tried valiantly to write a structural Lua scheme and pretty much failed.
Although Lua’s syntax is rather intuitive to program, its block structure doesn’t lend itself well to the model that SyntaxEdit expects. Unlike C, you can’t simply look for curly brackets everywhere.
[===[And don’t forget the cool "infinitely recursive" string literal delimeter!] ===] My experimental scheme stopped around the 10th level of nesting.
Then again, maybe it can be done...
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
LUA will be scheduled for 11.2.1.
|
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
Thanks - that's good news.
|
|
esc67
Newbie Joined: 09 June 2005 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Excellent! I'd be happy to help test it...
-Erik
|
|
Tomasz
Senior Member Joined: 05 August 2006 Status: Offline Points: 109 |
Post Options
Thanks(0)
|
I hope fixes to much more severe problems mentioned in https://forum.codejock.com/forum_posts.asp?TID=6210 are scheduled for 11.2.1 too. They were reported in January 2007. It is highest time to have them fixed by now.
|
|
collabear
Newbie Joined: 13 September 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Where can i find the schemas file?
|
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
In the SyntaxEdit Sample or see link in the first post.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Have you guys tested this _LUA.schclass file? Is it good enough? :) |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
it's just colour highlighting - no structural analysis (so no collapse).
add to that other problems with syntaxedit.... -> we still use scintilla...
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
adrien, I find it hard to make a better edit control than Scintilla. It's been refined for years.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |