# Treetop TextMate Bundle

**URL:** <https://www.ruby-forum.com/t/treetop-textmate-bundle/128906>\
**Category:** Ruby\
**Created:** [February 12, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/treetop-textmate-bundle/128906 "2008-02-12T15:41:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [February 12, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/treetop-textmate-bundle/128906/1 "2008-02-12T15:41:50Z")

</div>

Given the recent interest in Treetop[1] (including my own), I took a  
first stab at making a TextMate[2] bundle for it last night, to  
provide syntax highlighting and some convenient snippets. I haven’t  
tested it with ‘e’ [3] yet, but will when I get into work.

Feedback and patches welcome, particularly from anyone who knows  
TextMate bundles well. I’m not sure I chose the best scopes in all  
cases, and I think the way I handled the inline Ruby may be a bit of a  
hack. At least things happen to _look_ good in the Cobalt bundle 😛

Known-missing: syntax support for subclassing of SyntaxNode.  
Future ideas: Command for validating the grammar by running it through  
`tt`

[1] [http://treetop.rubyforge.org/](http://treetop.rubyforge.org/)  
[2] [http://macromates.com/](http://macromates.com/)  
[3] [http://e-texteditor.com/](http://e-texteditor.com/)

---

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [February 12, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/treetop-textmate-bundle/128906/2 "2008-02-12T15:46:00Z")

</div>

On Feb 12, 7:38 am, Phrogz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Given the recent interest in Treetop[1] (including my own), I took a  
> first stab at making a TextMate[2] bundle for it last night…

I forgot to tell you how to get it:

I’ve checked this bundle into the main macromates Bundle repository.  
To install it, see section 5.7.3 here on how to use subversion to grab  
it:  
[http://macromates.com/textmate/manual/bundles](http://macromates.com/textmate/manual/bundles)  
or use the GetBundle bundle:  
[http://blog.macromates.com/2006/getting-more-bundles/](http://blog.macromates.com/2006/getting-more-bundles/)

---

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [February 12, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/treetop-textmate-bundle/128906/3 "2008-02-12T15:51:52Z")

</div>

On Feb 12, 2008, at 8:39 AM, Phrogz wrote:

> Feedback and patches welcome, particularly from anyone who knows  
> TextMate bundles well. I’m not sure I chose the best scopes in all  
> cases…

You have already received some of this on the bundle development list:

[http://comox.textdrive.com/pipermail/textmate-dev/2008-February/010886.html](http://comox.textdrive.com/pipermail/textmate-dev/2008-February/010886.html)

James Edward G. II

---

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [February 12, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/treetop-textmate-bundle/128906/4 "2008-02-12T16:00:45Z")

</div>

On Feb 12, 7:51 am, James G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Feb 12, 2008, at 8:39 AM, Phrogz wrote:
> 
> > Feedback and patches welcome, particularly from anyone who knows  
> > TextMate bundles well. I’m not sure I chose the best scopes in all  
> > cases…
> 
> You have already received some of this on the bundle development list:
> 
> [http://comox.textdrive.com/pipermail/textmate-dev/2008-February/01088](http://comox.textdrive.com/pipermail/textmate-dev/2008-February/01088)…

_blush_ Oops, thanks for that. Apparently I’m not on that list  
anymore.  
Others: as noted there, apparently my brash move has been gently fixed  
to not have the bundle in the main trunk. Please disregard the  
previous post on where to find it (until I get some apparent problems  
fixed and officially accepted).
