Shopify / Shopify/liquid

Hash syntax error

Open
#1,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

I can't figure out how to resolve this syntax error and it's only occurring when using hash.

Code:
{% assign add_auth = hash "Authorization", authorization_header %}

Error:
Liquid syntax error (line 57): Expected end_of_string but found string in "{{hash "Authorization", authorization_header }}"

Thanks in advance whoever helps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied assign expression in the Liquid parser and compare the error with the documented hash syntax. The issue mentions no files or tests; done means determining whether the syntax is supported and documenting the expected resolution or correcting the diagnostic if it is not.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.