S
S
Sergey2015-09-02 09:35:14
HTML
Sergey, 2015-09-02 09:35:14

Why does WebStrom underline the loop in Jade?

- for (var i = 1; i < 7; ++i) {
      .col-md-2.licenses-item
          .licenses-item--logo: img.licenses-item--logo--image(src='/img/index/client_1.png')
          .licenses-item--desc Лицензия
      - }

The brackets {} are underlined in red, but the code is generated without errors. Writes missing }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Popov, 2015-09-02
@gangstarcj

Apparently because it is configured to work only by nesting through tabulation, something like this:

for (var i = 1; i < 7; ++i)
      .col-md-2.licenses-item
          .licenses-item--logo: img.licenses-item--logo--image(src='/img/index/client_1.png')
          .licenses-item--desc Лицензия

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question