Skip to content

Commit

Permalink
Merge pull request #7 from gtg2619/detail-optimiz
Browse files Browse the repository at this point in the history
Add shortcut key support for comments, bracket highlighting and auto-closing
  • Loading branch information
n-WN authored Nov 24, 2024
2 parents 79db793 + 69ad664 commit 576c94d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions syntaxes/sage.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"fileTypes": [
"sage"
],
"comments": {
"lineComment": "#",
"blockComment": ["'''", "'''"]
},
"scopeName": "source.sage",
"name": "Sage",
"patterns": [
Expand All @@ -12,6 +16,22 @@
"include": "source.python"
}
],
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["'", "'"],
["\"", "\""]
],
"repository": {
"sageSpecific": {
"patterns": [
Expand Down

0 comments on commit 576c94d

Please sign in to comment.