[code] Head-scratcher with file_types.patterns

From: Michael Richter <ttmrichter.att.gmail.com>
Date: Mon, 26 Oct 2015 21:49:46 +0800

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.

"Perhaps people don't believe this, but throughout all of the discussions
of entering China our focus has really been what's best for the Chinese
people. It's not been about our revenue or profit or whatnot."
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
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 - 09:49:46 EDT

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