[SVN] New trend in SH

Chris Thomas chris at m-audio.com
Mon Jan 17 21:05:02 UTC 2005


On Jan 17, 2005, at 12:00 AM, Allan Odgaard wrote:

> Seeing the recent keyword lists by Eric and Chris makes me think that 
> associating style with keyword(-pattern) alone will accomplish 90% of 
> what I wanted to do with the CSS-inspired system, and it's rather easy 
> to do an editor for this.
>
> So me thinks I should do this as first step for probably beta 4, since 
> I think I can do it in less than a day (yeah, I know I don't have the 
> best track record for time-estimates ;) ) -- the full system will just 
> be a superset of keyword-matching, so as of such, the user 
> contributions with regard to style-sheets and syntaxes should remain 
> compatible in the future.
>
> The only limitations I see with keyword matching compared to the 
> current system is associating different styles to the same languages 
> (e.g. depending on whether or not it is embedded or hosts an embedded 
> language).
>
> To remedy this I can just let the styles in the syntax files take 
> precedence, so to obtain the above, one would just leave the styles in 
> the syntax files.
As a workaround, yup. Iff I understand what you're saying: It sounds 
like this is the big missing piece that the CSS-like hierarchical 
system would address, because /HTML/Ruby could have, say, a different 
background color than either /HTML or /Ruby. And you'd eventually want 
the user to be able to alter this without editing syntax files, but 
that can certainly wait.

Chris




More information about the textmate-dev mailing list