Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
lexers written in lua
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sergio Spina  
View profile  
 More options Sep 22 2012, 5:25 pm
From: Sergio Spina <sergio.am.sp...@gmail.com>
Date: Sat, 22 Sep 2012 14:25:55 -0700 (PDT)
Local: Sat, Sep 22 2012 5:25 pm
Subject: lexers written in lua

Hallo to all of you.

I'm trying to write a lexer in lua, according to the exampe in this page<http://www.scintilla.org/ScriptLexer.html>,
but it seems to be a difficult task.

Is there someone who has written a lexer in lua? Can he/she post the code?
What is the name of the file? In what directory was saved the file with the
lexer? Can he/she post the lines in the .properties file regarding the
lexer?

Many thank for every help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kagehi  
View profile  
 More options Sep 23 2012, 2:37 am
From: Kagehi <shadowfy...@hotmail.com>
Date: Sat, 22 Sep 2012 23:37:03 -0700 (PDT)
Local: Sun, Sep 23 2012 2:37 am
Subject: Re: lexers written in lua

Umm. I did one for the language in Second Life, LSL, but probably not the
same way. I used something called Scintillua:

http://foicica.com/scintillua/

I think what it does is, basically, define "preset" lexer functions, and
effects, for doing the basics, then allows you to "extend" that, using the
same sort of Lua stuff that you are trying to mess with. This means that,
as long as most of your language definitions don't require anything really
odd, its fairly easy to set up. The instructions are.. a bit inspecific to
follow, which was the problem I ran into. Certain things are "required",
for example:

{ 'any_char', l.any_char }

which is in the M._rules. This has the effect of "turning off" what ever
highlighting was already in effect. I discovered, without it, it would
react to the first thing it found, but then all other code would fail to
highlight. The documentation also talks about existing style definitions. I
ended up adding what I needed manually for those, but otherwise you have to
add a line to import them. Obvious, in retrospect, but not so obvious if
you are hacking the thing together, and making assumptions. In any case, I
posts the lexer I made using it in the thread, and it might be a lot easier
to use scintallua, than to start completely from scratch, especially since
I have no idea how much "pre-work" is included, which you would have to do
yourself, to make lua do anything at all, without the stuff the guy already
did:

https://groups.google.com/forum/#!topic/scite-interest/vPh1OhBnreU


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe Lhoste  
View profile  
 More options Sep 24 2012, 4:15 am
From: Philippe Lhoste <Phi...@GMX.net>
Date: Mon, 24 Sep 2012 10:15:39 +0200
Local: Mon, Sep 24 2012 4:15 am
Subject: Re: lexers written in lua
On 22/09/2012 23:25, Sergio Spina wrote:

> I'm trying to write a lexer in lua, according to the exampe in this page
> <http://www.scintilla.org/ScriptLexer.html>, but it seems to be a difficult task.

> Is there someone who has written a lexer in lua? Can he/she post the code? What is the
> name of the file? In what directory was saved the file with the lexer? Can he/she post the
> lines in the .properties file regarding the lexer?

If you search the mailing list around the time the feature was introduced (last year?),
you can find some (simple) examples.

I will make another more detailed answer later...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jingcheng Zhang  
View profile  
 More options Sep 25 2012, 1:53 am
From: Jingcheng Zhang <dio...@gmail.com>
Date: Tue, 25 Sep 2012 13:53:21 +0800
Local: Tues, Sep 25 2012 1:53 am
Subject: Re: [scite] Re: lexers written in lua
Currently there is an OnStyle() handler defined.
When will OnFold() handler added?

Thanks.

--
Best regards,
Jingcheng Zhang
Beijing, P.R.China

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »