4 Jan 21:33
extensible syntax
From: Samuel Wales <samologist <at> gmail.com>
Subject: extensible syntax
Newsgroups: gmane.emacs.orgmode
Date: 2009-01-04 20:33:23 GMT
Subject: extensible syntax
Newsgroups: gmane.emacs.orgmode
Date: 2009-01-04 20:33:23 GMT
A general idea, which might or might not be useful.
There are occasionally questions about syntax, like this:
Also, I'm afraid definition matching regexp won't play
nicely with text indentation, ... -- Paul
Or this:
What would be safer? -- Carsten
I like the footnote implementation, so this is for future
features, not necessarily footnotes.
One issue when implementing new syntax (or changing existing
syntax or cleaning up code) is parsing risk, which I will
define as the risk that the syntax and the regexp or
matching code:
1) conflicts with user text
2) conflicts with existing features
3) will be hard to maintain
4) constrains future features by making them conflict
syntactically
5) makes you run out of syntax to use in the future
6) will require complicated regexps
7) doesn't readily handle stuff you might want in the
future, like being combined with another feature
8) will be hard to quote, escape, comment, *boldify*, etc.
9) doesn't handle nestability, print-readability,
(Continue reading)
RSS Feed