Skip to content

Commit 576c94d

Browse files
authored
Merge pull request #7 from gtg2619/detail-optimiz
Add shortcut key support for comments, bracket highlighting and auto-closing
2 parents 79db793 + 69ad664 commit 576c94d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

syntaxes/sage.tmLanguage.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"fileTypes": [
33
"sage"
44
],
5+
"comments": {
6+
"lineComment": "#",
7+
"blockComment": ["'''", "'''"]
8+
},
59
"scopeName": "source.sage",
610
"name": "Sage",
711
"patterns": [
@@ -12,6 +16,22 @@
1216
"include": "source.python"
1317
}
1418
],
19+
"brackets": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"]
23+
],
24+
"autoClosingPairs": [
25+
{ "open": "{", "close": "}" },
26+
{ "open": "[", "close": "]" },
27+
{ "open": "(", "close": ")" },
28+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
29+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
30+
],
31+
"surroundingPairs": [
32+
["'", "'"],
33+
["\"", "\""]
34+
],
1535
"repository": {
1636
"sageSpecific": {
1737
"patterns": [

0 commit comments

Comments
 (0)