miksago/jade-tmbundle — Issue #15: source.js.embedded.jade end issue
Author: aoberoi
Created: 2011-11-18 07:33:03+00:00
State: open

there seems to be a problem with the way the source.js.embedded.jade scope is terminated. let me show you what i mean:

## (A) these work

1. ![working example](http://pixxus.com/up/jade/works1.png)
2. ![working example](http://pixxus.com/up/jade/works2.png)
3. ![working example](http://pixxus.com/up/jade/works3.png)
4. ![working example](http://pixxus.com/up/jade/works4.png)

## (B) these don't, but should
notice the change in color of the body tag, this should be blue like all the other tags

5. ![not working example](http://pixxus.com/up/jade/not1.png)
6. ![not working example](http://pixxus.com/up/jade/not2.png)
7. ![not working example](http://pixxus.com/up/jade/not3.png)
8. ![not working example](http://pixxus.com/up/jade/not4.png)
9. ![not working example](http://pixxus.com/up/jade/not5.png)

the weirdest issue is that (A1) and (A2) work, the only difference being where how much white space there is on line 5; but (B3), (B4), and (B5) do not. (B3) actually puts the newline between (A1) and (A2) and intermediately doesn't want to work.

i'm aware you're no longer actively maintaining this project and that you are accepting pull requests. my regex-foo isn't good enough to make a fix and i think for now this is the best place to make issues visible.