Вот пример, который из за цикла each выдает ошибку:
doctype html
html(lang="en")
head
meta(charset="UTF-8")
title= title
link(rel="stylesheet", href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css")
body
.container
h1= title
ul
each link in links
li= link
Ошибка:
SyntaxError: Unexpected token (1:18)
at Parser.pp.raise (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1745:13)
at Parser.pp.unexpected (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:2264:8)
at Parser.pp.parseBindingAtom (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1876:12)
at Parser.pp.parseMaybeDefault (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1920:23)
at Parser.pp.parseBindingList (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1896:23)
at Parser.pp.parseFunctionParams (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:2776:22)
at Parser.pp.parseFunction (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:2769:8)
at Parser.pp.parseExprAtom (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1129:19)
at Parser.pp.parseExprSubscripts (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1023:19)
at Parser.pp.parseMaybeUnary (E:\projects\angular\node_modules\jade\node_modules\with\node_modules\acorn\dist\acorn.js:1004:19)
Индентация правильная. Вроде все по документации. Почему может быть так?
UPD: В links обычный массив со строками. Даже если сделать
each link in ['link1', 'link2', 'link3'], то ошибка остается