Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token < #115

Open
jpcercal opened this issue Feb 26, 2018 · 1 comment
Open

Unexpected token < #115

jpcercal opened this issue Feb 26, 2018 · 1 comment

Comments

@jpcercal
Copy link

I can't process my HTML that contains this snippet.

for s in "${precmd_functions[@]}"; do
  if [ "$s" = "powerline_precmd" ]; then
    return
  fi
done

The error message and the stack:

Fatal error: Unexpected token <
SyntaxError: Unexpected token <
    at Function (<anonymous>)
    at HTMLProcessor.template (/usr/share/blog/node_modules/htmlprocessor/node_modules/lodash/dist/lodash.js:6307:22)
    at /usr/share/blog/node_modules/grunt-processhtml/tasks/processhtml.js:59:26
    at /usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:769:13
    at iterate (/usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:262:13)
    at async.forEachOfSeries.async.eachOfSeries (/usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:281:9)
    at _concat (/usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:768:9)
    at Object.concatSeries (/usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:347:20)
    at /usr/share/blog/node_modules/grunt-processhtml/tasks/processhtml.js:54:13
    at /usr/share/blog/node_modules/grunt-processhtml/node_modules/async/lib/async.js:181:20

I suspect that this problem is because of this string ${.

@dciccale
Copy link
Owner

Hi, could you provide an example I can run and see the failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants