-
Notifications
You must be signed in to change notification settings - Fork 789
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
AddBackticksToIdentifierIfNeeded adds ticks for not
word.
#12303
Comments
|
Hm, interesting, it got changed in #12072, And here's the new logic by which we check whether we need to wrap it: fsharp/src/fsharp/PrettyNaming.fs Lines 257 to 265 in b3d46d4
The lookup in cc @dsyme |
Hmmm yes I see, it was incorrect to use "keywordsWithDescription", which is mis-named - some of the entries in that table are not keywords (e.g. |
So a fix would be to renamed fsharp/src/fsharp/PrettyNaming.fs Lines 158 to 235 in b3d46d4
Remove |
Consider |
Well, sort of. But in any case for the purposes of backtick escape it's not a keyword. |
@dsyme what was the outcome here again of fixing this? Lines 265 to 355 in 2f81541
|
Please provide a succinct description of the issue.
Repro steps
Local fsi:
Expected behavior
In previews version of FCS, no ticks are added.
Actual behavior
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information (optional):
FCS 41.0.0-preview.21472.3
The text was updated successfully, but these errors were encountered: