From aa00a0be8697982568ce7f24be8a4e8415951f49 Mon Sep 17 00:00:00 2001 From: Apostolos Kyratzakos <109310356+kyratzakos@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:43:28 +0300 Subject: [PATCH] feat(language): add typescript (kyratzakos) (#5332) --- frontend/static/languages/_groups.json | 3 +- frontend/static/languages/_list.json | 1 + .../static/languages/code_typescript.json | 204 ++++++++++++++++++ 3 files changed, 207 insertions(+), 1 deletion(-) create mode 100644 frontend/static/languages/code_typescript.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index b714962c7..657f57857 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -570,7 +570,8 @@ "code_gdscript_2", "code_assembly", "code_v", - "code_ook" + "code_ook", + "code_typescript" ] } ] diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index a4ad7601a..bf09cfd2b 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -331,5 +331,6 @@ ,"code_assembly" ,"code_v" ,"code_ook" + ,"code_typescript" ,"xhosa" ] diff --git a/frontend/static/languages/code_typescript.json b/frontend/static/languages/code_typescript.json new file mode 100644 index 000000000..5aff74946 --- /dev/null +++ b/frontend/static/languages/code_typescript.json @@ -0,0 +1,204 @@ +{ + "name": "code_typescript", + "noLazyMode": true, + "words": [ + "import", + "export", + "class", + "function", + "return", + "var", + "let", + "const", + "if", + "else", + "for", + "while", + "do", + "switch", + "case", + "break", + "continue", + "default", + "try", + "subscribe", + "throw", + "new", + "delete", + "void", + "async", + "await", + "this", + "super", + "extends", + "implements", + "interface", + "enum", + "type", + "null", + "undefined", + "true", + "false", + "any", + "number", + "string", + "boolean", + "symbol", + "Object", + "Array", + "Math", + "Date", + "RegExp", + "JSON", + "console", + "Promise", + "Map", + "Set", + "get", + "set", + "private", + "public", + "protected", + "static", + "readonly", + "constructor", + "toJSON", + "require", + "package", + "debug", + "env", + "warn", + "util", + "info", + "setTimeout", + "clearTimeout", + "setInterval", + "clearInterval", + "parseFloat", + "parseInt", + "decodeURI", + "decodeURIComponent", + "encodeURI", + "encodeURIComponent", + "isNaN", + "isFinite", + "eval", + "hasOwnProperty", + "isPrototypeOf", + "propertyIsEnumerable", + "toLocaleString", + "toString", + "valueOf", + "asyncIterator", + "generator", + "yield", + "from", + "as", + "keyof", + "typeof", + "instanceOf", + "template", + "literal", + "components", + "directives", + "pipes", + "services", + "models", + "guards", + "decorators", + "metadata", + "ngOnInit", + "ngOnDestroy", + "ngOnChanges", + "ngDoCheck", + "ngAfterContentInit", + "ngAfterContentChecked", + "ngAfterViewInit", + "ngAfterViewChecked", + "ngOnModuleInit", + "ngOnModuleDestroy", + "inputs", + "outputs", + "host", + "global", + "process", + "module", + "exports", + "dirname", + "filename", + "resolve", + "reject", + "then", + "catch", + "finally", + "apply", + "call", + "bind", + "push", + "pop", + "shift", + "unshift", + "forEach", + "map", + "filter", + "reduce", + "reduceRight", + "slice", + "splice", + "index", + "length", + "reverse", + "sort", + "join", + "every", + "some", + "includes", + "find", + "findIndex", + "concat", + "copyWithin", + "fill", + "keys", + "values", + "entries", + "toFixed", + "toExponential", + "toPrecision", + "random", + "floor", + "ceil", + "round", + "max", + "min", + "abs", + "sin", + "cos", + "tan", + "log", + "exp", + "sqrt", + "pow", + "clamp", + "stringify", + "fetch", + "axios", + "query", + "mutation", + "subscription", + "graphql", + "rest", + "endpoint", + "api", + "url", + "uri", + "path", + "header", + "body", + "status", + "response", + "request", + "data", + "error", + "success" + ] +} \ No newline at end of file