Fix: Added nagative look-ahead keywords for function invocations in the Rust Language #3883
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rust language
Resolves #3881
Changes
Updated Rust function invocation regex handler to address keywords that can be used with parentheses.
Negative look-ahead addresses the following keywords:
if
else if
for
while
match
Before:
![image](https://private-user-images.githubusercontent.com/77292466/273481032-661a8173-50cc-4b9a-8aab-a017b6ebf236.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MTQ1NDIsIm5iZiI6MTcxODQxNDI0MiwicGF0aCI6Ii83NzI5MjQ2Ni8yNzM0ODEwMzItNjYxYTgxNzMtNTBjYy00YjlhLThhYWItYTAxN2I2ZWJmMjM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE1VDAxMTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiYmZiNTY1MTUyMDY2YTIzMDZhZTE3ODFjYTAzZmVmNjZiOGJjMWY0ZTE0M2Q4OTgxOWZmYTYxMjQwMGNmYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4x2B1NYmv_IBBHwgKz5XBzfcNcQh3doHZD5CJ_xKopA)
After:
![image](https://private-user-images.githubusercontent.com/77292466/273481087-5e322159-883b-459a-b633-b2a336e7cc01.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MTQ1NDIsIm5iZiI6MTcxODQxNDI0MiwicGF0aCI6Ii83NzI5MjQ2Ni8yNzM0ODEwODctNWUzMjIxNTktODgzYi00NTlhLWI2MzMtYjJhMzM2ZTdjYzAxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE1VDAxMTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwZDIyNTU3YWNlZjU2YjU4YzBmOWE1ZjViMjZlNjBmNWY3MjNiNTdkYjMyMTE1MTQxOTMzZDhmMDYyY2VjYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.J3lDRoxCHR879rFCGs5sCwOStYTGYPm-lgVKlErkfxQ)
Checklist
CHANGES.md