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

Expression with operator name combined with deref inside parens breaks folding and Intellisense #445

Closed
OpalMonkey opened this issue Nov 28, 2023 · 0 comments

Comments

@OpalMonkey
Copy link

OpalMonkey commented Nov 28, 2023

Having an operator name combined with a deref to form a variable name, then enclosed in parentheses, breaks folding, hover info, and in some cases, autocomplete.

In this example, the folding is fine above the breaking line but broken below. Hover info is broken for both functions. Autocomplete seems fine, though in the much larger file I found this in, it's broken, too—which also extends to files that include the broken file.

Edit: In my original case, I can't simply omit the parentheses to avoid the issue because it's a parameter to a function call.

/**
 * Function one.
 * @return {string}
**/
IsTest1() {
	Return 'one'
}

OutputDebug IsTest1() ; <- Hover info for user functions doesn't work.
name := 'Test2'
result := (Is%name%()) ; <- Breaking line.
OutputDebug result

/**
 * Function two.
 * @return {string}
**/
IsTest2() {
	Return 'two'
}
@thqby thqby closed this as completed in 73b384e Nov 30, 2023
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

1 participant