Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions editors/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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.

## Contributing

OrgScript is open-source. Join us on [GitHub](https://github.com/DKFuH/OrgScript) to contribute to the language spec or tooling.
Expand Down
19 changes: 15 additions & 4 deletions editors/vscode/syntaxes/orgscript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
]
}
Expand Down
Loading