mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
In F# the `'` is prepended to an identifier to indicate it is generic in type and function signatures:
```
let fn (x: 'a ) (y: 'b) = ...
type Box< 'a, 'b > () = ...
type Inter =
abstract Op : 'a -> 'b -> 'c
```
It is also common convention to append it to binding names as it is a valid identifier char, e.g. `let x = 10 in let x' = x + 5`. These usages are vastly more common than using `'` to surround a character literal and as such the auto close behavior is incredibly annoying when writing F#.
25 lines
320 B
JSON
25 lines
320 B
JSON
{
|
|
"comments": {
|
|
"lineComment": "//",
|
|
"blockComment": [ "(*", "*)" ]
|
|
},
|
|
"brackets": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"]
|
|
],
|
|
"autoClosingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""]
|
|
],
|
|
"surroundingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""],
|
|
["'", "'"]
|
|
]
|
|
}
|