Skip to content

Commit e4b825d

Browse files
committed
Initial version
0 parents  commit e4b825d

File tree

8 files changed

+1271
-0
lines changed

8 files changed

+1271
-0
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}"
11+
],
12+
"outFiles": []
13+
}
14+
]
15+
}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Usecode C (UCC) Syntax Highlighting for VSCode
2+
3+
This lightweight extension provides TextMate-based syntax highlighting for Exult's UseCode C (\*.ucc, \*.uc, and \*.uh), UseCode eXTracted (\*.ucxt), and UseCode Assembly (\*.uca) files.
4+
5+
Initial version was vibe-coded with `Copilot/GPT-5 mini`.
6+
7+
Install locally for testing:
8+
9+
1. Open the `vscode-usecode-syntax` folder in VSCode.
10+
2. Run "Extension: Install from VSIX..." after packaging or use the "Run Extension" debugger to test the grammar in the Extension Development Host.
11+
12+
Notes:
13+
14+
- The grammar attempts to highlight keywords, script commands, types, numbers, strings, comments, directives, function names, and other identifiers.
15+
16+
- Script commands are lexed by the original project in a separate scanner state; the grammar approximates common command forms.

language-configuration.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[
2+
{
3+
"comments": {
4+
"lineComment": "//",
5+
"blockComment": [
6+
"/*",
7+
"*/"
8+
]
9+
},
10+
"brackets": [
11+
[
12+
"{",
13+
"}"
14+
],
15+
[
16+
"[",
17+
"]"
18+
],
19+
[
20+
"(",
21+
")"
22+
]
23+
],
24+
"autoClosingPairs": [
25+
{
26+
"open": "(",
27+
"close": ")"
28+
},
29+
{
30+
"open": "[",
31+
"close": "]"
32+
},
33+
{
34+
"open": "{",
35+
"close": "}"
36+
},
37+
{
38+
"open": "\"",
39+
"close": "\"",
40+
"notIn": [
41+
"string",
42+
"comment"
43+
]
44+
}
45+
],
46+
"surroundingPairs": [
47+
{
48+
"open": "(",
49+
"close": ")"
50+
},
51+
{
52+
"open": "[",
53+
"close": "]"
54+
},
55+
{
56+
"open": "{",
57+
"close": "}"
58+
},
59+
{
60+
"open": "\"",
61+
"close": "\""
62+
}
63+
]
64+
}
65+
]

package.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "usecode-syntax",
3+
"displayName": "Exult Usecode Syntax",
4+
"description": "Syntax highlighting for Exult's UseCode C (UCC) files (.ucc/.uc/.uh), UseCode eXTracted files (.ucxt), and UseCode Assembly files (.uca).",
5+
"version": "0.1.0",
6+
"publisher": "Exult Team",
7+
"engines": {
8+
"vscode": "^1.60.0"
9+
},
10+
"categories": [
11+
"Programming Languages"
12+
],
13+
"contributes": {
14+
"languages": [
15+
{
16+
"id": "usecode",
17+
"aliases": [
18+
"UseCode",
19+
"Usecode",
20+
"usecode",
21+
"UCC",
22+
"ucc"
23+
],
24+
"extensions": [
25+
".ucc",
26+
".uc",
27+
".ucxt",
28+
".uh"
29+
],
30+
"configuration": "./language-configuration.json"
31+
},
32+
{
33+
"id": "usecode-asm",
34+
"aliases": [
35+
"Usecode Assembly",
36+
"usecode-asm",
37+
"uca"
38+
],
39+
"extensions": [
40+
".uca"
41+
],
42+
"configuration": "./language-configuration.json"
43+
}
44+
],
45+
"grammars": [
46+
{
47+
"language": "usecode",
48+
"scopeName": "source.usecode",
49+
"path": "./syntaxes/usecode.tmLanguage.json"
50+
},
51+
{
52+
"language": "usecode-asm",
53+
"scopeName": "source.usecode-asm",
54+
"path": "./syntaxes/usecode-asm.tmLanguage.json"
55+
}
56+
]
57+
}
58+
}

0 commit comments

Comments
 (0)