genoma / language-pug

A Pug (was Jade) syntax highlighting for Atom, derived from https://github.com/davidrios/jade-tmbundle
MIT License
26 stars 8 forks source link

[v2.0.1] space between subtag and parent is required #37

Open aleclarson opened 6 years ago

aleclarson commented 6 years ago
~/pug-cli/node_modules/pug-lexer/index.js:60
    throw err;
    ^

Error: test.pug:213:44
    211|     div:  span:   em= 'extra spaces between tags and js output'
    212| 
  > 213|     div(style="background-color: #ccf;"): p:.a subtag without spaces will work only if id or class is used directly.
----------------------------------------------------^
    214|       p: em and this will be a part of it
    215| 
    216|     p='output without spaces separating tag: ' + em_sometext

unexpected text ":.a s"
    at makeError (~/pug-cli/node_modules/pug-error/index.js:32:13)
    at Lexer.error (~/pug-cli/node_modules/pug-lexer/index.js:59:15)
    at Lexer.fail (~/pug-cli/node_modules/pug-lexer/index.js:1441:10)
    at Lexer.advance (~/pug-cli/node_modules/pug-lexer/index.js:1501:15)
    at Lexer.callLexerFunction (~/pug-cli/node_modules/pug-lexer/index.js:1456:23)
    at Lexer.getTokens (~/pug-cli/node_modules/pug-lexer/index.js:1512:12)
    at lex (~/pug-cli/node_modules/pug-lexer/index.js:12:42)
    at Object.lex (~/pug-cli/node_modules/pug/lib/index.js:99:27)
    at Function.loadString [as string] (~/pug-cli/node_modules/pug-load/index.js:44:24)
    at compileBody (~/pug-cli/node_modules/pug/lib/index.js:86:18)