Official language support for OrgScript (.orgs) - the human-readable, AI-friendly description language for business logic and operational systems.
- Syntax Highlighting: Comprehensive TextMate grammar for all OrgScript constructs.
- Language Detection: Automatically recognizes
.orgsfiles. - Smart Indentation: Lightweight configuration for indentation-based logic.
- Annotation-Aware Highlighting: Highlights whole-line
# commentsand@owner "value"-style metadata. - Snippets: Core block, comment, and annotation templates for faster authoring.
- Top-level Blocks:
process,stateflow,rule,role,policy,metric,event. - Core Statements:
when,if,else,then,assign,transition,notify,create,update,require,stop. - Comments and Annotations: Whole-line
# commentsand@owner "value"-style metadata. - Dotted References: Native support for field paths like
order.statusorlead.source. - Rich Literals: Highlights strings, booleans, and numeric values.
- Install the extension.
- Open any
.orgsfile. - Enjoy clean, high-contrast highlighting for your organizational logic.
Recommended test file:
examples/lead-qualification.orgs
It exercises:
- top-level annotations
- statement-level annotations
- whole-line comments
- strings, operators, and dotted references
The extension works best when used alongside the OrgScript CLI.
# Check your logic
orgscript check your-file.orgs
# Export to diagrams
orgscript export mermaid your-file.orgs > diagram.mmd
# Include annotation metadata in generated Markdown or HTML docs
orgscript export markdown your-file.orgs --with-annotations
orgscript export html your-file.orgs --with-annotations
# Export AI/index context with explicit annotation metadata
orgscript export context your-file.orgsCurrent editor support for annotations:
- whole-line comment highlighting for
# ... - TextMate highlighting for whole-line
@name "value"-style metadata - snippet helpers for comments, annotations, and top-level blocks
org-commentorg-annotationorg-processorg-statefloworg-ruleorg-roleorg-policyorg-metricorg-event
OrgScript is open-source. Join us on GitHub to contribute to the language spec or tooling.
Known v1 limits:
- TextMate highlighting only
- no semantic tokens
- no IntelliSense or hover support
- comments are whole-line only in the language and highlighted that way
- snippets are editor productivity helpers and do not imply parser support beyond the current CLI/spec
Part of the OrgScript Foundation.