Closed zanona closed 8 years ago
This is bits difficult to implement. For example, emmet doesn't work with script{obj={foo:'b}ar'};}
. Please try this on http://docs.emmet.io/
FYI, single quote must not work with escaping. because we may use {} like below.
{don't expand single quote}
Thanks @mattn I see that script{obj={foo:'b}ar'};}
indeed won't work on emmet website as you mentioned. Although script{obj={foo:'bar'};}
seems to work fine?
What the behavior do you expect about below?
script{"don't}+div{don't"}
I believe something like the below?
<script>"don't</script>
<div>don't"</div>
Now if I could scape the curly brace like:
script{"don't\}+div\{don't"}
I would expect something like:
<script>
"don't}+div{don't"
</script>
Thanks a lot @mattn! I'm afraid, there is still an edge case causing errors such:
script{obj={foo:'${1}'};}
outputting:
<script>obj={foo:''</script>
instead of:
<script>obj={foo:'_'};</script>
fixed.
Thanks again @mattn, Sorry if I am seeming too picky but here's another case where it's returning an error:
script{${1}}+div{${1}}
output:
<script>}+div{</script>
expected would be:
<script>_</script>
<div></div>
please try again
@mattn thanks a lot for your work on this! The past change works great but when using with white space characters like:
script{${1} foo bar}+div{${1}}
It still outputs
<script> foo bar}+div{</script>
instead of
<script> foo bar</script>
<div></div>
note that this simple parser doesn't work with nested braces
Understood! Thanks a lot for all your help @mattn. It seems to be working great now! Have a great weekend
Apparently when using content replacement on tags if there's a curly brace followed by a character, it will ignore the rest of the expression To replicate:
Expands to: