Color coded words in LassoLab

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Color coded words in LassoLab

Jolle Carlestam-3
I notice that only some reserved words in LassoLab files are color coded.

For example: protect, handle_failure, return, false, true, if and a number of other words are all colored.
But not: fail_if, include, inline, records etc.

I tried to find were this list of words is maintained but failed.
Is it possible to edit the list ourselves? Except for the missing standard Lasso words I'd like to add my own. Like the Knop methods and types.
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Color coded words in LassoLab

stevepiercy
This is an issue that affects not just LL.  The scripts Eric
from LS wrote to extract Lasso 9 keywords yields pretty good
results but not perfect.  See the project on GitHub for details.
http://lasso.2283332.n4.nabble.com/Pygments-now-with-more-Lasso-tt4634344.html
http://lasso.2283332.n4.nabble.com/Lasso-Syntax-Highlighter-tt4634592.html

--steve


On 6/18/12 at 11:21 AM, [hidden email] (Jolle
Carlestam) pronounced:

>I notice that only some reserved words in LassoLab files are color coded.
>
>For example: protect, handle_failure, return, false, true, if
>and a number of other words are all colored.
>But not: fail_if, include, inline, records etc.
>
>I tried to find were this list of words is maintained but failed.
>Is it possible to edit the list ourselves? Except for the
>missing standard Lasso words I'd like to add my own. Like the
>Knop methods and types.
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Color coded words in LassoLab

Eric Knibbe
I've updated the Lasso 9 keyword extractor and posted it at <https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/external/lasso9-keywords.lasso>. It'll generate a list of over 3700 L9 built-in keywords, and it's what I used to generate the L9 section of the _lassobuiltins.py file at <https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/pygments/lexers/_lassobuiltins.py>.

For the Lasso 8 keywords, I merged the results of Steve's reference extraction tutorial at <http://www.stevepiercy.com/lasso_stuff/bbedit_ldml_syntax.lasso> with the output of tags_list, i.e.

local('l8tags' = list);
iterate(tags_list, local('i'));
        #l8tags->insert(string_removeleading(#i, -pattern='_global_'));
/iterate;
#l8tags->sort;
iterate(#l8tags, local('i'));
        #i+"<br>";
/iterate;

‐‐‐‐‐‐‐‐‐‐✂‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Eric3
 

On 2012-06-18, at 10:23 AM, Steve Piercy - Web Site Builder wrote:

> This is an issue that affects not just LL.  The scripts Eric from LS wrote to extract Lasso 9 keywords yields pretty good results but not perfect.  See the project on GitHub for details.
> http://lasso.2283332.n4.nabble.com/Pygments-now-with-more-Lasso-tt4634344.html
> http://lasso.2283332.n4.nabble.com/Lasso-Syntax-Highlighter-tt4634592.html
>
> --steve
>
>
> On 6/18/12 at 11:21 AM, [hidden email] (Jolle Carlestam) pronounced:
>
>> I notice that only some reserved words in LassoLab files are color coded.
>>
>> For example: protect, handle_failure, return, false, true, if and a number of other words are all colored.
>> But not: fail_if, include, inline, records etc.
>>
>> I tried to find were this list of words is maintained but failed.
>> Is it possible to edit the list ourselves? Except for the missing standard Lasso words I'd like to add my own. Like the Knop methods and types.
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Color coded words in LassoLab

Jolle Carlestam-3
18 jun 2012 kl. 17:11 skrev Eric Knibbe:

> I've updated the Lasso 9 keyword extractor and posted it at <https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/external/lasso9-keywords.lasso>. It'll generate a list of over 3700 L9 built-in keywords, and it's what I used to generate the L9 section of the _lassobuiltins.py file at <https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/pygments/lexers/_lassobuiltins.py>.


Ok, I ran the extractor and got an impressive builtins.py. But then what?

My goal is to get a working code coloring in LassoLab. What do I do with the file to reach that goal?

HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Color coded words in LassoLab

stevepiercy
On 6/18/12 at 8:33 PM, [hidden email] (Jolle
Carlestam) pronounced:

>18 jun 2012 kl. 17:11 skrev Eric Knibbe:
>
>>I've updated the Lasso 9 keyword extractor and posted it at
><https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/external/
>lasso9-keywords.lasso>. It'll generate a list of over 3700 L9
>built-in keywords, and it's what I used to generate the L9
>section of the _lassobuiltins.py file at <https://bitbucket.org/EricFromCanada/pygments-main/src/67ae474e4bb4/pygments/
>lexers/_lassobuiltins.py>.
>
>Ok, I ran the extractor and got an impressive builtins.py. But then what?
>
>My goal is to get a working code coloring in LassoLab. What do
>I do with the file to reach that goal?

That's a question for Kyle.

Several of us also had issues with an Eclipse plugin for syntax coloring.
http://lasso.2283332.n4.nabble.com/LassoLab-Dark-Syntax-Coloring-Issue-tp4634458p4634473.html

I don't know whether it's related.  I don't want to dive in
because someone within LS may be working on it already or may
take a different direction, and thus could be a wasteful
duplication of effort on my part.  Transparency would be
beneficial to all, IMO.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Color coded words in LassoLab

Kyle Jessup-2
In reply to this post by Jolle Carlestam-3

On Jun 18, 2012, at 7:21 AM, Jolle Carlestam wrote:

> I notice that only some reserved words in LassoLab files are color coded.
>
> For example: protect, handle_failure, return, false, true, if and a number of other words are all colored.
> But not: fail_if, include, inline, records etc.

The "reserved words" are the things built into the language that you can't add to or change.

> I tried to find were this list of words is maintained but failed.
> Is it possible to edit the list ourselves? Except for the missing standard Lasso words I'd like to add my own. Like the Knop methods and types.

That feature would have to be added. Maybe another coloring category could be created in which you can craft your own list of custom words.
-Kyle
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>