[TxMt] Re: Using „First Line Match” in grammars

dipnlik dipnlik at gmail.com
Thu Oct 30 09:40:13 UTC 2014


On Wed, Oct 29, 2014 at 5:56 PM, Allan Odgaard <mailinglist at textmate.org> wrote:
> On 29 Oct 2014, at 17:03, Stefan Daschek wrote:
>
>>> Can we identify Rails projects (for the project scope)?
>>
>>
>> Maybe by checking if there's a toplevel `Gemfile` with a line matching
>> `gem\s+'rails'`?
>>
>> Most newer Rails projects use binstubs, so checking for the existence of
>> `bin/rails` would also be possible. (But there are still many Rails projects
>> without binstubs.)
>
>
> The current system (to identify projects) looks for a file (glob) in a
> file’s current or ancestor directory. It can’t check the content of other
> files or similar.

  The RSpec bundle decides if the current project is a Rails project
by looking for a ./config/boot.rb file.

--
:: dip
--


More information about the textmate mailing list