Skip to content

[v2.0.1] text beginning with ## throws an error #36

@aleclarson

Description

@aleclarson
~/pug-cli/node_modules/pug-lexer/index.js:60
    throw err;
    ^

Error: test.pug:78:7
    76| 
    77|       this is rendered as standalone text
  > 78|       ##this too
--------------^
    79|       "this too"
    80| 
    81|     div(style="background-color: #eef") some examples of dot text blocks bellow:

"#this" is not a valid ID.
    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.id (~/pug-cli/node_modules/pug-lexer/index.js:428:12)
    at Lexer.callLexerFunction (~/pug-cli/node_modules/pug-lexer/index.js:1456:23)
    at Lexer.advance (~/pug-cli/node_modules/pug-lexer/index.js:1490: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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions