hhsnopek / code-frame

Minimal Code Frame like babel-code-frame, but smaller
MIT License
23 stars 4 forks source link

Missed last line #12

Closed ai closed 8 years ago

ai commented 8 years ago
framer('\nfunction (foo) {\n\tconsole.log(foo\n}', 3, 24)
//   2 | function (foo) {
// > 3 |         console.log(foo
//     |                        ^
//   4 |

Why line 4 is empty? Do I understand correctly, that it is a issue and it should be with }4 | }?

ai commented 8 years ago

Here is a code, seems like code was forgotten =^_^= https://github.com/hhsnopek/code-frame/blob/master/lib/index.js#L31

But anyway we need to rewrite this code if we decide to fix #13.

hhsnopek commented 8 years ago

Closing this as it was an intention, discussion to continue in #13