Author Topic: .lua predefined lexer specification (does one exist)?  (Read 13802 times)

tpanar

  • New Community Member
  • Posts: 1
  • Hero Points: 0
.lua predefined lexer specification (does one exist)?
« on: August 14, 2006, 05:43:02 pm »
I'm starting to look into lua, and would like to keep using SE to edit with (along with all the very flexible color coding). Does anyone have a lexar already defined for lua that they would be willing to share?

Regards,
-Tammie

skywise

  • Senior Community Member
  • Posts: 331
  • Hero Points: 10
Re: .lua predefined lexer specification (does one exist)?
« Reply #1 on: September 12, 2006, 04:08:32 pm »
Seconded!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4965
  • Hero Points: 409
Re: .lua predefined lexer specification (does one exist)?
« Reply #2 on: September 13, 2006, 06:11:45 pm »
I think you already know that you can create a lexer yourself for this language.  It's pretty quick to do this because the "new..." button for adding keywords supports multiple space delimited words.  Use "Tools"->"Options"->"File Extension Setup"->"New..." to add a new extension called "lua".  While in the Extension Options dialog, click on the Advanced Tab then click on "Color Coding...".   SlickEdit can support the string and comment styles of LUA.  Too bad the language statements aren't terminated with something like a semicolon.  More advanced features like SmartPaste are very difficult with out it.

hutnut

  • Community Member
  • Posts: 9
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #3 on: September 14, 2006, 06:06:51 pm »
I tried creating (in the process of) a lexer for .lua. I followed the steps outlined in the help as well as Clark's reply. I was mainly concerned with the tagging of functions so I could easily navigate around. The functions are highlighted properly via the 'idparenfunction' in the .vlx file, although, I can't get VSlick to properly find the function. It seemed that the .lua files were not being picked up even though I included the wildcard in the file list to tag. I then modified the .lua extension setup to 'Refer to...' the c extension and then the .java extension. The .lua files were then picked up properly for tagging (as seen from the files that were contained within the tag file). Is this a requirement? Even so, VSlick still couldn't locate the function when highlighted or selecting go to definition. Any help?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4965
  • Hero Points: 409
Re: .lua predefined lexer specification (does one exist)?
« Reply #4 on: September 14, 2006, 07:31:31 pm »
Ah, you want some context tagging features. It's declaration syntax is significantly different from other languages.  This is doable but requires a significant amount of work.  The more users that need this, the higher up the queue this will get.

bobm

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #5 on: September 20, 2006, 08:56:26 pm »
/signed

support for Lua would be great

natros

  • Community Member
  • Posts: 59
  • Hero Points: 1
Re: .lua predefined lexer specification (does one exist)?
« Reply #6 on: September 20, 2006, 09:44:05 pm »
lua support would be great

Kodros

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #7 on: September 29, 2006, 09:11:28 pm »
/signed

samkch

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #8 on: October 17, 2006, 12:35:47 am »
I also hope Slickedit supports Lua language.
Thanks!

jchick

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #9 on: February 28, 2007, 01:48:44 pm »
I recently sent an email to features@slickedit.com (don't remember if it was this exact address) asking for lua support. I was impressed with the quick response.

In short, I was told that demand for lua support is limited and not a high priority, however it's possible that documentation will improve so that others can add full tagging support for other languages.

I did look into what it what takes to add full lua support and it's not trivial. That said, I would love it if someone had some documentation for the tagging database functions. I've only managed the simplest of tasks by copying existing SE code and modifying it slightly to meet my needs. The SE codebase is huge, its a daunting task trying to figure out everything thats going without some kind of guide.

BHayes

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #10 on: March 14, 2007, 05:33:03 pm »
Yes!!  Please add tagging support for LUA.  Color coding is nice and all, but tagging would really help.

wraith808

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #11 on: January 07, 2008, 10:28:39 pm »
/signed

RA

  • Community Member
  • Posts: 23
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #12 on: January 08, 2008, 07:27:05 pm »
/signed

Tyrathect

  • Community Member
  • Posts: 5
  • Hero Points: 1
Re: .lua predefined lexer specification (does one exist)?
« Reply #13 on: January 08, 2008, 09:16:37 pm »
/signed

mdevey

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Re: .lua predefined lexer specification (does one exist)?
« Reply #14 on: March 04, 2008, 12:09:26 am »
/signed