org-babel: parse src block switches
commitdcc669f20ae3321530dc06c7c414db85dccd4738
authorDan Davison <davison@stats.ox.ac.uk>
Sun, 1 Nov 2009 01:19:38 +0000 (31 21:19 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Sun, 1 Nov 2009 15:05:41 +0000 (1 10:05 -0500)
tree7593d625c0a5f3be668e4eceba88d3ce74c45543
parentc7d3844bd966758c8e4b30015b3d372dd80b9d48
org-babel: parse src block switches

The switches are flags like -n and must *precede* the first colon
after the language (i.e. precede the first header argument). So the
general src block syntax is
\#+begin_src lang <switches> :header1 val1 :header2 val2 ...
...

org-babel-get-src-block-info now returns a list
(lang body params-alist switches)
contrib/babel/lisp/org-babel.el