tadatuta / bemmet

Simple Emmet-like tool to expand shorcuts into BEMJSON
http://tadatuta.github.io/bemmet/
Other
47 stars 4 forks source link

Support parentheses #4

Closed blond closed 8 years ago

blond commented 9 years ago

Often BEMJSON files wrap in code parentheses to eval code.

(page)

After processing you get error message:

Uncaught TypeError: Cannot read property 'modName' of undefined

Expected

({
    block: 'page',
    content: {}
})
tadatuta commented 9 years ago

I'll suggest a workaround:

  1. Type page
  2. Press hotkey to run bemmet
  3. Press cmd + a
  4. Press (
  5. ...
  6. PROFIT!!!
blond commented 9 years ago

bemmet should not throw an error.

And 6 action — too much for a tool that reduces the number of actions ;)

tadatuta commented 9 years ago

well I agree that it's not good and should be fixed but that's not something urgent