Repository navigation
Expand file tree
/
Copy pathvss-extension.json
More file actions
87 lines (87 loc) · 3.52 KB
/
Copy pathvss-extension.json
File metadata and controls
87 lines (87 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"manifestVersion": 1,
"id": "semantic-programminglanguage",
"publisher": "semanticprogramminglanguage",
"version": "1.2.0",
"name": "Semantic Programming Language",
"description": "Hybrid syntax highlighting and source preview for Semantic Programming Language .se and .sp files in Azure DevOps Repos.",
"public": true,
"categories": ["Azure Repos"],
"targets": [{ "id": "Microsoft.VisualStudio.Services" }],
"icons": { "default": "Resources/icon.png" },
"content": { "details": { "path": "overview.md" } },
"links": {
"getstarted": { "uri": "https://www.semantic-programming-language.com/" },
"support": { "uri": "https://github.com/SemanticProgrammingLanguage" },
"repository": { "uri": "https://github.com/SemanticProgrammingLanguage" }
},
"files": [
{ "path": "dist", "addressable": true },
{ "path": "grammar/semantic.tmLanguage.json", "addressable": true },
{ "path": "Resources/icon.png", "addressable": true },
{
"path": "overview.md",
"addressable": true
},
{ "path": "LICENSE.txt" }
],
"contributions": [
{
"id": "semantic-language",
"type": "ms.vss-features.code-editor-language",
"description": "Native Monaco/Monarch syntax highlighting for Semantic source files.",
"targets": ["ms.vss-features.editor"],
"properties": {
"extensions": [".se", ".sp"],
"mimetypes": ["text/x-semantic", "text/plain"],
"language": {
"displayName": "Semantic Programming Language",
"defaultToken": "",
"tokenPostfix": ".semantic",
"ignoreCase": false,
"keywords": ["program", "object", "list", "ranges", "types", "type", "scopes", "scope", "nodes", "node", "relations"],
"constants": ["true", "false", "null", "unknown"],
"tokenizer": {
"root": [
["#.*$", "comment"],
["^\\s*(se|sp)\\s+\\d+\\s*$", "keyword"],
["\"([^\"\\\\]|\\\\.)*\"", "string"],
["%\\d+", "variable"],
["@\\d+", "type"],
["\\b\\d+\\s*-\\s*\\d+\\b", "number"],
["[+-]?(?:0[xX][0-9A-Fa-f]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?)", "number"],
["[A-Za-z_][A-Za-z0-9_.-]*", { "cases": { "@keywords": "keyword", "@constants": "constant", "@default": "identifier" } }],
["->|=", "operator"],
["[{}\\[\\]()]", "delimiter.bracket"],
["[:,;]", "delimiter"]
]
}
}
}
},
{
"id": "semantic-code-editor-contribution",
"type": "ms.vss-code-web.code-editor-contribution",
"description": "Legacy SDK language registration fallback for Semantic source files.",
"targets": ["ms.vss-code-web.code-editor-contribution-collection"],
"properties": {
"uri": "dist/CodeEditorContribution/CodeEditorContribution.html",
"registeredObjectId": "semantic-code-editor-contribution"
}
},
{
"id": "semantic-content-renderer",
"type": "ms.vss-code-web.content-renderer",
"description": "TextMate-driven rendered preview for Semantic .se and .sp source files.",
"targets": ["ms.vss-code-web.content-renderer-collection"],
"properties": {
"name": "Semantic source preview",
"uri": "dist/SemanticRenderer/index.html",
"fileExtensions": ["se", "sp"],
"mimeTypes": ["text/x-semantic", "text/plain"],
"defaultBehavior": "showRenderedContent",
"registeredObjectId": "semantic_content_renderer"
}
}
]
}