Compare commits
2
Commits
c3b243288d
...
a72bfaeaeb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a72bfaeaeb
|
||
|
|
df5a4163c0
|
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": {
|
||||
"comment": "//",
|
||||
},
|
||||
"blockComment": [
|
||||
"/*",
|
||||
"*/"
|
||||
]
|
||||
},
|
||||
"brackets": [
|
||||
[
|
||||
"{",
|
||||
"}"
|
||||
],
|
||||
[
|
||||
"[",
|
||||
"]"
|
||||
],
|
||||
[
|
||||
"(",
|
||||
")"
|
||||
]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{
|
||||
"open": "{",
|
||||
"close": "}"
|
||||
},
|
||||
{
|
||||
"open": "[",
|
||||
"close": "]"
|
||||
},
|
||||
{
|
||||
"open": "(",
|
||||
"close": ")"
|
||||
},
|
||||
{
|
||||
"open": "'",
|
||||
"close": "'",
|
||||
"notIn": [
|
||||
"string",
|
||||
"comment"
|
||||
]
|
||||
},
|
||||
{
|
||||
"open": "\"",
|
||||
"close": "\"",
|
||||
"notIn": [
|
||||
"string"
|
||||
]
|
||||
},
|
||||
{
|
||||
"open": "/**",
|
||||
"close": " */",
|
||||
"notIn": [
|
||||
"string"
|
||||
]
|
||||
}
|
||||
],
|
||||
"surroundingPairs": [
|
||||
[
|
||||
"{",
|
||||
"}"
|
||||
],
|
||||
[
|
||||
"[",
|
||||
"]"
|
||||
],
|
||||
[
|
||||
"(",
|
||||
")"
|
||||
],
|
||||
[
|
||||
"'",
|
||||
"'"
|
||||
],
|
||||
[
|
||||
"\"",
|
||||
"\""
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{ "open": "{", "close": "}" },
|
||||
{ "open": "[", "close": "]" },
|
||||
{ "open": "(", "close": ")" }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
]
|
||||
}
|
||||
@@ -4,7 +4,9 @@
|
||||
"engines": {
|
||||
"vscode": "*"
|
||||
},
|
||||
"categories": ["Programming Languages"],
|
||||
"categories": [
|
||||
"Programming Languages"
|
||||
],
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
@@ -24,6 +26,12 @@
|
||||
"scopeName": "source.midas",
|
||||
"path": "./syntaxes/midas.tmLanguage.json"
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "midas",
|
||||
"path": "./snippets.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"Type alias": {
|
||||
"prefix": "alias",
|
||||
"body": "alias ${1:name} = $0",
|
||||
"description": "Declare a type alias"
|
||||
},
|
||||
"Derived type": {
|
||||
"prefix": "type",
|
||||
"body": "type ${1:name} = $0",
|
||||
"description": "Declare a derived type"
|
||||
},
|
||||
"Predicate": {
|
||||
"prefix": "predicate",
|
||||
"body": "predicate ${1:signature} = $0",
|
||||
"description": "Declare a predicate"
|
||||
},
|
||||
"Extend": {
|
||||
"prefix": "extend",
|
||||
"body": [
|
||||
"extend ${1:type} {",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Extend a type to add members"
|
||||
},
|
||||
"Property": {
|
||||
"prefix": "prop",
|
||||
"body": "prop ${1:name}: $0",
|
||||
"description": "Declare a property"
|
||||
},
|
||||
"Method": {
|
||||
"prefix": "def",
|
||||
"body": "def ${1:name}: $0",
|
||||
"description": "Declare a method"
|
||||
},
|
||||
"Function type": {
|
||||
"prefix": "fn",
|
||||
"body": "fn(${1:parameters}) -> ${2:returns}",
|
||||
"description": "A function type"
|
||||
},
|
||||
"Frame type": {
|
||||
"prefix": "frame",
|
||||
"body": [
|
||||
"Frame[",
|
||||
"\t$0",
|
||||
"]"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user