Renklendirme çalışmalarına başlandı
This commit is contained in:
parent
2bf52f5f21
commit
b5bdc3f5b4
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"comments": {
|
||||||
|
"lineComment": {
|
||||||
|
"comment": "//"
|
||||||
|
},
|
||||||
|
"blockComment": ["/*", "*/"]
|
||||||
|
},
|
||||||
|
"brackets": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"]
|
||||||
|
],
|
||||||
|
"autoClosingPairs": [
|
||||||
|
{ "open": "{", "close": "}" },
|
||||||
|
{ "open": "[", "close": "]" },
|
||||||
|
{ "open": "(", "close": ")" },
|
||||||
|
{ "open": "\"", "close": "\"" },
|
||||||
|
{ "open": "'", "close": "'" }
|
||||||
|
],
|
||||||
|
"surroundingPairs": [
|
||||||
|
["{", "}"],
|
||||||
|
["[", "]"],
|
||||||
|
["(", ")"],
|
||||||
|
["\"", "\""],
|
||||||
|
["'", "'"]
|
||||||
|
],
|
||||||
|
"indentationRules": {
|
||||||
|
"increaseIndentPattern": "^.*\\{\\s*$",
|
||||||
|
"decreaseIndentPattern": "^\\s*\\}.*$"
|
||||||
|
},
|
||||||
|
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"name": "saqut-support",
|
||||||
|
"displayName": "saQut Language Support",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"engines": { "vscode": "^1.60.0" },
|
||||||
|
"categories": ["Programming Languages"],
|
||||||
|
"contributes": {
|
||||||
|
"languages": [{
|
||||||
|
"id": "saqut",
|
||||||
|
"aliases": ["saQut", "saqut"],
|
||||||
|
"extensions": [".sqt"],
|
||||||
|
"configuration": "./language-configuration.json"
|
||||||
|
}],
|
||||||
|
"grammars": [{
|
||||||
|
"language": "saqut",
|
||||||
|
"scopeName": "source.sqt",
|
||||||
|
"path": "./syntaxes/saqut.tmLanguage.json"
|
||||||
|
}],
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"language": "saqut",
|
||||||
|
"path": "./snippets/saqut.code-snippets"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"If Statement": {
|
||||||
|
"prefix": "if",
|
||||||
|
"body": [
|
||||||
|
"if (${1:condition}) {",
|
||||||
|
"\t$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "If Koşulu"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
{
|
||||||
|
"scopeName": "source.sqt",
|
||||||
|
"patterns": [
|
||||||
|
{ "include": "#comments" },
|
||||||
|
{ "include": "#keywords" },
|
||||||
|
{ "include": "#classes" },
|
||||||
|
{ "include": "#structs" },
|
||||||
|
{ "include": "#enums" },
|
||||||
|
{ "include": "#strings" },
|
||||||
|
{ "include": "#numbers" },
|
||||||
|
{ "include": "#functions" }
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"keywords": {
|
||||||
|
"patterns": [{
|
||||||
|
"name": "keyword.control.saqut",
|
||||||
|
"match": "\\b(if|else|while|do|for|foreach|return|break|continue|switch|case|default)\\b"
|
||||||
|
}, {
|
||||||
|
"name": "storage.type.saqut",
|
||||||
|
"match": "\\b(int|float|double|string|bool|void|var|class|struct|enum|public|private|static|readonly|const)\\b"
|
||||||
|
}, {
|
||||||
|
"name": "variable.language.saqut",
|
||||||
|
"match": "\\b(this)\\b"
|
||||||
|
}, {
|
||||||
|
"name": "constant.language.saqut",
|
||||||
|
"match": "\\b(true|false|null)\\b"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"functions": {
|
||||||
|
"patterns": [{
|
||||||
|
"name": "entity.name.function.saqut",
|
||||||
|
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s*\\()"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"classes": {
|
||||||
|
"patterns": [{
|
||||||
|
"match": "\\b(class)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
||||||
|
"captures": {
|
||||||
|
"1": { "name": "storage.type.saqut" },
|
||||||
|
"2": { "name": "entity.name.class" }
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"structs": {
|
||||||
|
"patterns": [{
|
||||||
|
"match": "\\b(struct)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
||||||
|
"captures": {
|
||||||
|
"1": { "name": "storage.type.saqut" },
|
||||||
|
"2": { "name": "entity.name.struct" }
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"enums": {
|
||||||
|
"patterns": [{
|
||||||
|
"match": "\\b(enum)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
||||||
|
"captures": {
|
||||||
|
"1": { "name": "storage.type.saqut" },
|
||||||
|
"2": { "name": "entity.name.enum" }
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"strings": {
|
||||||
|
"name": "string.quoted.double.saqut",
|
||||||
|
"begin": "\"",
|
||||||
|
"end": "\"",
|
||||||
|
"patterns": [
|
||||||
|
{ "name": "constant.character.escape.saqut", "match": "\\\\." }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"numbers": {
|
||||||
|
"name": "constant.numeric.saqut",
|
||||||
|
"match": "\\b(0x[0-9a-fA-F]+|[0-9]+(\\.[0-9]+)?)\\b"
|
||||||
|
},
|
||||||
|
"comments": {
|
||||||
|
"patterns": [
|
||||||
|
{ "name": "comment.line.double-slash.saqut", "match": "//.*$" },
|
||||||
|
{ "name": "comment.block.saqut", "begin": "/\\*", "end": "\\*/" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue