Forum: Ruby Subject: textpow 0.9.1 Released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2cc67fef9619c044dc8ca93ee718c6d3?d=identicon&s=25 Dizan Vasquez (Guest)
on 2007-06-14 11:31
(Received via mailing list)
textpow version 0.9.1 has been released!

* <http://textpow.rubyforge.org>

A library for parsing TextMate[http://macromates.com/] bundles.

Changes:

## 0.9.1 / 2007-06-14
* FIX: Score manager now handles multiple subtractions in scope
definitions.

* <http://textpow.rubyforge.org>
0158871402c1ecfa57952e8a379cfd10?d=identicon&s=25 Daniel Lucraft (lucraft)
on 2007-06-14 11:45
Dizan Vasquez wrote:
> textpow version 0.9.1 has been released!
>
> * <http://textpow.rubyforge.org>
>
> A library for parsing TextMate[http://macromates.com/] bundles.
>
> Changes:
>
> ## 0.9.1 / 2007-06-14
> * FIX: Score manager now handles multiple subtractions in scope
> definitions.
>
> * <http://textpow.rubyforge.org>

Hmmmm, can you explain how multiple subtractions in scopes work?

I assume you're talking about something like:
source.ruby - string - text.html.basic

Two questions:
(1) have you seen this come up in practice, and where?
(2) How are you interpreting this? As
   source.ruby - (string - text.html.basic)
or
   (source.ruby - string) - text.html.basic
or as something else entirely?

best
Dan
2cc67fef9619c044dc8ca93ee718c6d3?d=identicon&s=25 Dizan Vasquez (Guest)
on 2007-06-16 19:35
(Received via mailing list)
> Two questions:
> (1) have you seen this come up in practice, and where?

Well, I've found them while debugging the Brilliance themes in
ultraviolet, they include many uses of this.

> (2) How are you interpreting this? As
>    source.ruby - (string - text.html.basic)
> or
>    (source.ruby - string) - text.html.basic
> or as something else entirely?

As

(source.ruby - string) - text.html.basic

To be more precise: if any individual scope which is preceded by a
minus sign matches, then the score for the whole expression is zero
regardless of the non-minus matches.

Cheers,

Dizan
0158871402c1ecfa57952e8a379cfd10?d=identicon&s=25 Daniel Lucraft (lucraft)
on 2007-06-17 10:30
Dizan Vasquez wrote:
>
> Well, I've found them while debugging the Brilliance themes in
> ultraviolet, they include many uses of this.

Yes, I see them now. OK thanks for the tip.

> To be more precise: if any individual scope which is preceded by a
> minus sign matches, then the score for the whole expression is zero
> regardless of the non-minus matches.

Seems reasonable.

many thanks,
Dan
This topic is locked and can not be replied to.