Initial commit - UCXL VS Code extension

- Added UCXL VS Code extension with syntax highlighting
- Implemented language configuration and grammar definitions
- Created extension package with examples and documentation
- Added syntax highlighting for UCXL code structures

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-08-27 09:39:31 +10:00
commit 8d40cd98ac
10 changed files with 486 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
{
"scopeName": "source.ucxl",
"patterns": [
{
"name": "keyword.scheme.ucxl",
"match": "\\bucxl://"
},
{
"name": "entity.name.agent.ucxl",
"match": "(?<=ucxl://)[a-zA-Z0-9_-]+(?=:)"
},
{
"name": "support.class.topic.ucxl",
"match": "(?<=:)[a-zA-Z0-9_-]+(?=@)"
},
{
"name": "entity.name.project.ucxl",
"match": "(?<=@)[a-zA-Z0-9_-]+(?=:)"
},
{
"name": "variable.parameter.context.ucxl",
"match": "(?<=:)[a-zA-Z0-9_-]+(?=/)"
},
{
"name": "constant.language.temporal.ucxl",
"match": "(?<=/)(#|~\\*|\\^\\*|~~|\\^\\^|~\\d+|\\^\\d+)(?=/)"
},
{
"name": "string.path.ucxl",
"match": "(?<=/)[^\\s]+"
}
]
}

View File

@@ -0,0 +1,36 @@
{
"scopeName": "source.ucxl",
"name": "UCXL",
"patterns": [
{
"name": "meta.ucxl",
"match": "^ucxl://([A-Z0-9]{5})" ,
"captures": {
"1": { "name": "constant.language.agent.ucxl" }
}
},
{
"match": "^ucxl://[A-Z0-9]{5}:([a-zA-Z0-9_-]+)",
"captures": {
"1": { "name": "entity.name.role.ucxl" }
}
},
{
"match": "@([a-zA-Z0-9_-]+):([a-zA-Z0-9_-]+)",
"captures": {
"1": { "name": "entity.name.project.ucxl" },
"2": { "name": "entity.name.task.ucxl" }
}
},
{
"match": "\\/(#|~\\*|\\^\\*|~~|\\^\\^|~\\d+|\\^\\d+)\\/",
"captures": {
"1": { "name": "constant.language.temporal.ucxl" }
}
},
{
"match": "\\/([^\\s]+)$",
"name": "string.path.ucxl"
}
]
}