From b8f66fdc792a8c04e2c1c1bd7fa3dd8f668bede4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:39:48 +0000 Subject: [PATCH 1/3] Initial plan From b8b794828845db3a1219dae45f450ce4f33039ba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:44:36 +0000 Subject: [PATCH 2/3] Polish VS Code syntax highlighting scopes Agent-Logs-Url: https://github.com/DKFuH/OrgScript/sessions/2eedd53a-c4c5-49e1-9da5-f9de2c3b39cb Co-authored-by: DKFuH <44840246+DKFuH@users.noreply.github.com> --- editors/vscode/README.md | 11 +++++++++++ .../vscode/syntaxes/orgscript.tmLanguage.json | 19 +++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 71b0148..83fcc46 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -76,6 +76,17 @@ Current editor support for annotations: - `org-metric` - `org-event` +## Local Testing + +To test the extension locally without publishing it: + +1. Open the `editors/vscode` folder in VS Code. +2. Press **F5** to launch the Extension Development Host (configured in `.vscode/launch.json`). +3. In the new VS Code window, open any `.orgs` file from the `examples/` folder. +4. Use **Developer: Inspect Editor Tokens and Scopes** (via the Command Palette) to verify that tokens receive the expected TextMate scopes. + +Recommended test file: `examples/lead-qualification.orgs` — it exercises the header, annotations, dotted references, operators, and conditional blocks together. + ## Contributing OrgScript is open-source. Join us on [GitHub](https://github.com/DKFuH/OrgScript) to contribute to the language spec or tooling. diff --git a/editors/vscode/syntaxes/orgscript.tmLanguage.json b/editors/vscode/syntaxes/orgscript.tmLanguage.json index fc53094..e648003 100644 --- a/editors/vscode/syntaxes/orgscript.tmLanguage.json +++ b/editors/vscode/syntaxes/orgscript.tmLanguage.json @@ -203,16 +203,27 @@ "operators": { "patterns": [ { - "match": "(!=|<=|>=|->|=|<|>)", - "name": "keyword.operator.orgscript" + "match": "->", + "name": "keyword.operator.arrow.orgscript" + }, + { + "match": "(!=|<=|>=|=|<|>)", + "name": "keyword.operator.comparison.orgscript" } ] }, "references": { "patterns": [ { - "match": "\\b[A-Za-z_][A-Za-z0-9_-]*(?:\\.[A-Za-z_][A-Za-z0-9_-]*)+\\b", - "name": "variable.other.property.orgscript" + "match": "\\b([A-Za-z_][A-Za-z0-9_-]*)((?:\\.[A-Za-z_][A-Za-z0-9_-]*)+)\\b", + "captures": { + "1": { + "name": "variable.other.object.orgscript" + }, + "2": { + "name": "variable.other.property.orgscript" + } + } } ] } From 511fb69b20e135bccfef6088ac899ff7fb1e82db Mon Sep 17 00:00:00 2001 From: DKFuH Date: Wed, 1 Apr 2026 10:53:48 +0200 Subject: [PATCH 3/3] docs(vscode): clarify local testing path --- editors/vscode/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editors/vscode/README.md b/editors/vscode/README.md index 83fcc46..e3410e4 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -82,10 +82,10 @@ To test the extension locally without publishing it: 1. Open the `editors/vscode` folder in VS Code. 2. Press **F5** to launch the Extension Development Host (configured in `.vscode/launch.json`). -3. In the new VS Code window, open any `.orgs` file from the `examples/` folder. +3. In the new VS Code window, open any `.orgs` file from the repository `examples/` folder (one level up). 4. Use **Developer: Inspect Editor Tokens and Scopes** (via the Command Palette) to verify that tokens receive the expected TextMate scopes. -Recommended test file: `examples/lead-qualification.orgs` — it exercises the header, annotations, dotted references, operators, and conditional blocks together. +Recommended test file: `../examples/lead-qualification.orgs` — it exercises the header, annotations, dotted references, operators, and conditional blocks together. ## Contributing