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

Syntax highlight issue in closures #12

Closed
ryphill opened this issue Mar 30, 2018 · 1 comment
Closed

Syntax highlight issue in closures #12

ryphill opened this issue Mar 30, 2018 · 1 comment
Labels

Comments

@ryphill
Copy link

ryphill commented Mar 30, 2018

Using a try catch statement in a closure seems to cause the syntax highlighting to become a bit wonky. A code example that will cause it is:

<cfscript>
data = [1, 2, 3, 4];
data.each(function(item, index) {
	var errors = [];
	var flag = false;

	try {
		flag = true;
	} catch (any e) {
		flag = false;
	}

	if (flag) {
		error.append({'index': index});
	}
});
</cfscript>

Example of how it looks for me:
cfm_highlight_issue

I'm using vscode-cfml version 0.3.1 and vscode version 1.21.1

@KamasamaK
Copy link
Owner

This is fixed in 0.4.0

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