dotnet / dotnet/fsharp

AddBackticksToIdentifierIfNeeded adds ticks for `not` word.

Open
#12,303 7 comments 0 reactions 0 assignees View on GitHub
Area-LangService-API Bug Impact-Medium Regression
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

Please provide a succinct description of the issue.

**Repro steps**

Local fsi:

```fsharp
#r @"C:\Users\fverdonck\Projects\fsharp\artifacts\bin\FSharp.Core\Debug\netstandard2.0\FSharp.Core.dll"
#r @"C:\Users\fverdonck\Projects\fsharp\artifacts\bin\FSharp.Compiler.Service\Debug\netstandard2.0\FSharp.Compiler.Service.dll"

FSharp.Compiler.Syntax.PrettyNaming.AddBackticksToIdentifierIfNeeded "not"
|> printfn "FSharp.Compiler.Syntax.PrettyNaming.AddBackticksToIdentifierIfNeeded : %s"
```

> dotnet artifacts\bin\fsi\Debug\net5.0\fsi.dll C:\Users\fverdonck\Projects\scripts\fsharp\ast-from-local-compiler.fsx

**Expected behavior**

In previews version of FCS, no ticks are added.

**Actual behavior**

``not``

**Known workarounds**

Provide a description of any known workarounds.

**Related information**

Provide any related information (optional):

FCS 41.0.0-preview.21472.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.