On Thu, May 23, 2013 at 7:08 PM, Ron Savage <
r...@savage.net.au> wrote:
> Hi Paul
Hi! :-)
> On 23/05/13 19:39, Paul Bennett wrote:
>>
>> Based on my own "fun" while manually trying to make a .tmLanguage file
>
> Hmm. never heard of '.tmLanguage' :-).
It's a horrible, nasty, brutish-yet-subtle monster, constructed by
trying to use XML as a programming language instead of a markup
language.
It's possible to do this acceptably well (see also XSLT), but it's
also possible to do it incredibly badly (see also .tmLanguage). It
manages to be so bad, in part, thanks to being an application of the
Apple PList DTD, which brings its own set of weirdness to the party.
It's also not documented nearly as readably as I'd like it to be --
especially hard to find is a grammar for and discussion of it's notion
of "selectors", which are sort of like CSS selectors, but backwards:
if regexp $x matches (except it's seldom just a single regexp, more
usually several acting in collusion), then the text has selector $y.
Somewhere else in the bowels & brain of Textmate & ST2, there's a
mapping of selector syntax to things like color highlighting, and to
the stuff that lets you "jump to the definition of the 'thing' under
the cursor", and all that good stuff.
>> I'll gladly take a stab at vCard and related formats.
>
> Feel free to beat me to it, but I /am/ certainly heading in that direction,
> and a way of teaching myself about the SLIF technique.
Well, I don't want to tread on any toes, here. Have at it, and I'll
keep plugging at my seemingly-interminable list of projects in
progress.
--
Paul Bennett
PWBENNETT @ CPAN & github
paul.w....@gmail.com @ various Google things