Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Support for LUA?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Support for LUA?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Support for LUA?
    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.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2007 at 9:10pm
I have created a color scheme for LUA. If anybody is interested, just let me know and I will upload it.
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2007 at 4:46am
 
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?
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2007 at 6:21am
Well, I got it working. I think :)
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2007 at 5:31pm
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
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2007 at 7:06pm
 
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 
 
 
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2007 at 10:57am
See link above. Please notify me if you improve the scheme somehow. Also note that some lines should be uncommented (math.*, debug.* etc).
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2007 at 4:42pm
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.
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2007 at 3:47pm
Looks like Python made it in, but no Lua
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2007 at 4:16pm

Originally posted by apuhjee apuhjee wrote:

Looks like Python made it in, but no Lua

Huh?  Made it in what?  Has 11.2 been released?
 
 
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2007 at 4:21pm
Originally posted by znakeeye znakeeye wrote:

Has anybody written a syntax color scheme for LUA (www.lua.org)?
 
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...
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2007 at 12:34pm
LUA will be scheduled for 11.2.1.
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2007 at 2:18pm
Thanks - that's good news.
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2007 at 4:21pm
 
Excellent!  I'd be happy to help test it...
 
-Erik
 
Back to Top
Tomasz View Drop Down
Senior Member
Senior Member


Joined: 05 August 2006
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2007 at 9:17am
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.
Back to Top
collabear View Drop Down
Newbie
Newbie


Joined: 13 September 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote collabear Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2007 at 11:40am
Originally posted by SuperMario SuperMario wrote:

LUA will be scheduled for 11.2.1.
 
Where can i find the schemas file?
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2007 at 4:00am
In the SyntaxEdit Sample or see link in the first post.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2008 at 8:07pm

Have you guys tested this _LUA.schclass file? Is it good enough? :)

Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2008 at 9:26pm
it's just colour highlighting - no structural analysis (so no collapse).
 
add to that other problems with syntaxedit.... -> we still use scintilla...
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 6:28pm
adrien, I find it hard to make a better edit control than Scintilla. It's been refined for years.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.148 seconds.