A
A
Alexander Mischuk2018-07-06 11:36:33
Pug
Alexander Mischuk, 2018-07-06 11:36:33

Where is the problem that breaks pug highlighting in sublime text?

For example:

-
  var dropdownLocations = [
    { location: 'United Arab Emirates' },
    ...
    { location: 'Dubai' }
]
.dropdown__list
  each item in dropdownLocations
     .dropdown__item
       a(class="dropdown__link" href="#") #{item.location}

If you comment out the line with the each loop, then everything is fine, but the problem is clearly somewhere else.
I tried to set the backlight and pug, and jade - the same thing.
Upd
Before:
5b3f33c807e28362840678.jpeg
After:
5b3f33e168a47837007469.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question