Re: [code] Head-scratcher with file_types.patterns

From: Mitchell <m.att.foicica.com>
Date: Mon, 26 Oct 2015 10:10:51 -0400 (EDT)

Hi Michael,

On Mon, 26 Oct 2015, Michael Richter wrote:

> I have these three lines of code in my init.lua:
>
> textadept.file_types.patterns['^#!.+/regina'] = 'rexx'
>> textadept.file_types.patterns['^#!.+/rexx'] = 'rexx'
>> textadept.file_types.patterns['ft=rexx'] = 'rexx'
>
>
> The last one works (as long as it's in the first line of the file). The
> first two do not. I cannot find any set of incantations that will make the
> first two work. I'm positive I'm doing something utterly stupid here, but
> I just can't see what it would be.

Very odd indeed. What are the shbang lines of the files that are not being
detected properly? Your patterns worked for me for "#!/usr/bin/regina" and
"#!/usr/bin/rexx".

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 26 Oct 2015 - 10:10:51 EDT

This archive was generated by hypermail 2.2.0 : Tue 27 Oct 2015 - 06:50:54 EDT