Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Jade syntax highlighting errors #78

Open
sbfkcel opened this issue Sep 8, 2016 · 9 comments
Open

Jade syntax highlighting errors #78

sbfkcel opened this issue Sep 8, 2016 · 9 comments

Comments

@sbfkcel
Copy link

sbfkcel commented Sep 8, 2016

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
Copy link
Owner

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

@davidrios
Copy link
Owner

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
Copy link
Author

sbfkcel commented Sep 12, 2016

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

atom

@sbfkcel
Copy link
Author

sbfkcel commented Sep 13, 2016

@davidrios See above

@davidrios
Copy link
Owner

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
Copy link
Author

sbfkcel commented Sep 14, 2016

@davidrios

It has been updated to the latest
Problems still seems

SublimeText Version Build 3114
qq 20160914171130

@sbfkcel
Copy link
Author

sbfkcel commented Sep 14, 2016

SublimeText Version Build 3121

The problem still exists

@davidrios
Copy link
Owner

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.

@davidrios davidrios reopened this Sep 16, 2016
@sbfkcel
Copy link
Author

sbfkcel commented Sep 18, 2016

@davidrios

okay, thank you. ❤

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants