forked from microsoft/qsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguage-configuration.json
40 lines (40 loc) · 1.58 KB
/
language-configuration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"comments": {
"lineComment": "//"
},
// symbols used as brackets
"brackets": [
["[", "]"],
["(", ")"],
["{", "}"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["[", "]"],
["(", ")"],
["{", "}"],
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["[", "]"],
["(", ")"],
["{", "}"],
["\"", "\""]
],
// This is the default word pattern from https://code.visualstudio.com/api/language-extensions/language-configuration-guide
// with the following modifications:
// @foo - Attributes, including the leading '@', are treated as one word.
// foo.bar - Qualified names, including the dots, are treated as one word.
//
// This setting influences how completions are committed when a partial word has been typed.
// Some completions contain non-word characters (e.g. '@' and '.'), and when these completions are
// committed, they must replace the entire word that has been typed until the cursor, including any special
// characters.
//
// If you change this word pattern, please verify that Monaco and VS Code completions are working as intended
// for attributes and namespaces, by explicitly invoking completions after typing '@', '@Entr', 'Microsoft.Q', etc.
//
// This setting is duplicated for the Monaco setting for the playground: playground/src/main.tsx
"wordPattern": "(-?\\d*\\.\\d\\w*)|(@\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\.\\'\\\"\\,\\<\\>\\/\\?\\s]+)"
}