[TxMt] properties parser?

Xavier Noria fxn at hashref.com
Tue Jan 4 20:10:32 UTC 2005


On Jan 4, 2005, at 8:59 PM, Eric Hsu wrote:

>> I would like to automate some customization for some bundles (as
>> colors), is the format in those .plist files standard (for instance
>> Perl.plist)? If it is and you wanted to search for a parser for some
>> programming language which keyword would you use?
>
> If you are asking whether the 'names' of each color class (e.g. 
> Comments) in the .plist is standard across the bundles, I'd say  it 
> would be a miracle if they were, since they were all hacked by 
> individuals who wanted their favorite language colored.

Well not. Since names are clearly free as in

     name = "q() quotes, line start"

my idea was to inspect the .plists I want to customise, hard-code those 
literals in a config file of my own, and use a parser to modify them by 
hand. So it's a rather dirty solution to ease maintenance until some 
generic coloring schema is provided by TextMate itself.

I asked whether a parser exists before I write some even more dirty 
hack because if for zero price I could robustly deal with the elements 
of, say,

	{ name = "q() quotes, line start"; begin = "^q[qwx]*\\("; end = 
"\\)";	 patterns = (
	      { match = "(\\<(.*)\\>)"; foregroundColor = "#009933";} );
	},

that could be better. Otherwise I'll write something ad-hoc.

-- fxn




More information about the textmate mailing list