[TxMt] HTML bundle & HTML usage ( Was: Input Patterns?)

Mats Persson mats at imediatec.co.uk
Tue Apr 5 13:39:40 UTC 2005


On 5 Apr 2005, at 14:16, max at machinate.org wrote:
> Seeing as how you seem to be sorting out all the html stuff, I have a 
> query about the css syntax file. I'm not sure if this is a bug in its 
> syntax highlighting, or if I am writing invalid code, but when there 
> is no space between selector and the opening '{', all the enclosed 
> content is not coloured, eg:
>
> selector{
> 	not coloured
> }
> selector {
> 	coloured
> }
> This problem only applies to css (php), but thought I'd query it.

Yes, Max, that's a known issue. I'm in two minds regarding this:
1. Yes, the regex can/should/need to be improved to better handle that 
kind of thing;
2. Is it not better to have the syntax cut off when your code is 
slightly wrong ?? Your code is still valid and working, but I - 
possibly anal-retentive as I am - prefer to have a space between key 
items, in this case the selector and the opening brace {.

However, and this is an important point. I am no regex expert, and I 
did the syntax files as an exercise in learning regex while doing 
something good for others. So I'm hoping that others would do the same 
in return. If you know how to improve it, please do so, or tell me how.

> anyway, keep up the good work,

Thanks, but I'm starting to get tired, and sure could need a few 
helping hands.  I'll be happy enough with code blocks in a single 
document that I then can convert into Commands/snippets etc. if you 
can't do the TM conversion bits.


Kind regards,

Mats

----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -




More information about the textmate mailing list