davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Jade syntax highlighting errors #78

Open sbfkcel opened 8 years ago

sbfkcel commented 8 years ago

Jade syntax highlighting errors

jade-error

Example Code:

    - site.categories.each(function(item){
        - var id = item.id;
        - var url = item.path;
        - var name = item.name;

        li.slideMenu__list
            a(class='sideMenu__menu #{currentClass}' href='#{root + url}' id='#{id}')
                span.sideMenu__name #{name}
    - });
davidrios commented 8 years ago

Are you using the Babel plugin? If so, that's probably the cause, try disabling it.

davidrios commented 8 years ago

Meanwhile, you can use idiomatic Jade for that case, like this:

for item in site.categories
  li.slideMenu__list
      a(class='sideMenu__menu #{currentClass}' href=(root + item.path) id=item.id)
          span.sideMenu__name= item.name
sbfkcel commented 8 years ago

Not enabled Babel plugin~~ Such wording in Atom is not an error.

atom

sbfkcel commented 8 years ago

@davidrios See above

davidrios commented 8 years ago

I have updated the bundle, have you tried the latest version to see if it solves your problem? Which version of sublime are you using?

sbfkcel commented 8 years ago

@davidrios

It has been updated to the latest Problems still seems

SublimeText Version Build 3114 qq 20160914171130

sbfkcel commented 8 years ago

SublimeText Version Build 3121

The problem still exists

davidrios commented 8 years ago

I see, it's a problem with the latest version of sublime. I'm looking into it, meanwhile you can revert to the old stable version, build 3103, as a workaround.

sbfkcel commented 8 years ago

@davidrios

okay, thank you. ❤