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

When assigning an array to a variable, brackets are highlighted as an error #36

Closed
jpolete opened this issue Jul 18, 2019 · 2 comments
Closed
Labels
Milestone

Comments

@jpolete
Copy link

jpolete commented Jul 18, 2019

Love this plugin. Thanks for all your work on it.

When I assign an array to a variable using set, the square brackets are highlighted as a error with an extraneous input error.

extraneous input '[' expecting {'not', 'null', 'none', '{', '('...

Example:

{%
set actions = [
  {
    'url': '/some-url',
    'icon': 'plus',
    'label': 'New'
  }, 
  {
    'url': '/other-url',
    'icon': 'trash',
    'label': 'delete'
  },
]
%}
@bjansen bjansen added the t-bug label Jul 18, 2019
@bjansen bjansen added this to the 0.6 milestone Jul 18, 2019
@bjansen
Copy link
Owner

bjansen commented Jul 18, 2019

Hi there, and thanks for the positive feedback! I just fixed the problem, I'll try to make a release tomorrow.

@jpolete
Copy link
Author

jpolete commented Jul 18, 2019

Wow. Awesome. Thank you.

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

No branches or pull requests

2 participants