-
Notifications
You must be signed in to change notification settings - Fork 23
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
Javascript object declaration breaking Liquid syntax highlight #157
Comments
Ouff. Good catch. Will do some tests and see what is happening and occurring here. |
@muchisx can you try on the latest version? This should be fixed. |
Hey @panoply ! ✅ Syntax doesnt brake anymore with JS objects declarations! Maybe totally unrelated but I noticed the IF statemant syntax is no longer detected
but these are not longer detected, should I move it to another issue or this change came with a reason? |
Move to another one brother |
Hi @panoply {% javascript %}
const testString = 'test';
const testNumber = 9999;
const testBoolean = false;
const testArray = ['test', 900, false, {}]
const testObject = {
test: 'test',
testtest: 'testtest',
}
{% endjavascript %}
{% # Testcomment %}
{% comment %}
Test comment
{% endcomment %}
<script>
const text = {
hey: 'hey'
}
</script>``` |
Hi!
So I noticed this, when an object is declared in JS inside a <script> tag on a .liquid file, the highlighting breaks on anything below that declaration.
Like this
The text was updated successfully, but these errors were encountered: