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

Remove code comments when extracting variables. #4

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

a1dancole
Copy link
Contributor

This was causing an infinite loop in extractContextVariableNames due to braces being inside comments and counts not matching.

I know you had a solution you were working on, but this worked for me when trying to get around this problem for an app I've been using for DevOps Pipeliness testing. So just throwing it in the pot if it gets you any closer to a solution :)

This relates to findClosingCharacter never returns and possibly MSAPP file processing not completing

…nfinite loop in extractContextVariableNames due to braces being inside comments and counts not matching
@a1dancole
Copy link
Contributor Author

a1dancole commented Jun 5, 2023

This problem was came up for me with \\ comments, but this solution will work for /* */ comments.

image

Was the formula that presented the problem for me, for reference.

@modery modery merged commit 5f77476 into modery:main Jan 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants