aboutsummaryrefslogtreecommitdiffstats
path: root/src/snippets.el
diff options
context:
space:
mode:
authorDave Mayo <dave_mayo@harvard.edu>2016-09-05 23:53:01 -0400
committerDave Mayo <dave_mayo@harvard.edu>2016-09-06 00:07:43 -0400
commit1a64b7dfece4357df0b0d96929225057951fe781 (patch)
treeaf07641cd1b9d669521c80ee5b3a641cd3789dd0 /src/snippets.el
parent3c2d5c3e86c317601cbf8d976c5611b8c73ac178 (diff)
downloademmet-mode-1a64b7dfece4357df0b0d96929225057951fe781.tar.lz
emmet-mode-1a64b7dfece4357df0b0d96929225057951fe781.tar.xz
emmet-mode-1a64b7dfece4357df0b0d96929225057951fe781.zip
Added multi-line * wrap functionality as per #81
This is a proof-of-concept - it needs to do the token-replacement jazz the original version did, because right now this will fail if the content of the txt/lines includes unmatched braces in various configurations. I think the overall plan is sound: split expression into leading and terminal components, render the text as a list (either a one-element list of all text or a multiline list, depending on trailing *), and create a terminal phrase consisting of "terminal-element{TOKEN}" joined on "+" To do: render list into a-list of '((hash-of-txt . txt), ...), mapconcat the hash replacement instead of the text, then run replace over result. Write tests. Also, tests appear to be broken on master, at least on my machine.
Diffstat (limited to 'src/snippets.el')
0 files changed, 0 insertions, 0 deletions