Skip to content

Commit 835bd0d

Browse files
committed
Initial commit
0 parents  commit 835bd0d

13 files changed

Lines changed: 656 additions & 0 deletions

.DS_Store

8 KB
Binary file not shown.

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.vsix

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": [
14+
"--extensionDevelopmentPath=${workspaceFolder}"
15+
]
16+
}
17+
]
18+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"**/.git": true,
5+
"**/.DS_Store": true,
6+
"**/node_modules": true
7+
}
8+
}

.vscodeignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.editorconfig
2+
.gitignore
3+
.vscodeignore
4+
.vscode/**
5+
syntaxes/tmlanguage.json

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# OScript for Visual Studio Code
2+
3+
Provides syntax highlighting for the OScript language in Visual Studio Code. OScript is used for development with OpenText Content Server (Livelink).

language-configuration.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": [ "/*", "*/" ]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
["{", "}"],
13+
["[", "]"],
14+
["(", ")"],
15+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
16+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
17+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
19+
],
20+
"surroundingPairs": [
21+
["{", "}"],
22+
["[", "]"],
23+
["(", ")"],
24+
["\"", "\""],
25+
["'", "'"],
26+
["`", "`"]
27+
],
28+
"indentationRules": {
29+
"increaseIndentPattern": "((\\b(case|default|else|for|function|if|object|repeat|switch|while)\\b((?!\\b(elseif|else|end|until)\\b).)*)|(\\{\\s*))$",
30+
"decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))"
31+
},
32+
"folding": {
33+
"markers": {
34+
"start": "#(?:ifdef|ifndef|else)\\b",
35+
"end": "#endif\\b"
36+
}
37+
}
38+
}

package-lock.json

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "vscode-oscript",
3+
"displayName": "OScript for Visual Studio Code",
4+
"description": "Syntax highlighting for the OScript language in Visual Studio Code.",
5+
"version": "0.0.1",
6+
"publisher": "prantlf",
7+
"author": {
8+
"name": "Ferdinand Prantl",
9+
"email": "prantlf@gmail.com",
10+
"url": "http://prantl.tk"
11+
},
12+
"license": "MIT",
13+
"licenses": [
14+
{
15+
"type": "MIT",
16+
"url": "https://github.com/prantlf/vscode-oscript/blob/master/LICENSE"
17+
}
18+
],
19+
"homepage": "https://github.com/prantlf/vscode-oscript#readme",
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/prantlf/vscode-oscript.git"
23+
},
24+
"bugs": {
25+
"url": "https://github.com/prantlf/vscode-oscript/issues"
26+
},
27+
"engines": {
28+
"vscode": "^1.37.0"
29+
},
30+
"categories": [
31+
"Programming Languages"
32+
],
33+
"contributes": {
34+
"languages": [
35+
{
36+
"id": "oscript",
37+
"aliases": [
38+
"OScript",
39+
"oscript"
40+
],
41+
"extensions": [
42+
".os",
43+
".osx"
44+
],
45+
"configuration": "./language-configuration.json"
46+
}
47+
],
48+
"grammars": [
49+
{
50+
"language": "oscript",
51+
"scopeName": "source.oscript",
52+
"path": "./syntaxes/oscript.tmLanguage.json"
53+
}
54+
]
55+
},
56+
"keywords": [
57+
"vscode-extension",
58+
"vscode-language",
59+
"oscript",
60+
"syntax-highlighting"
61+
],
62+
"scripts": {
63+
"test": "jsonlint -Dq language-configuration.json package.json syntaxes/oscript.tmLanguage.json"
64+
},
65+
"devDependencies": {
66+
"@prantlf/jsonlint": "10.2.0"
67+
}
68+
}

0 commit comments

Comments
 (0)