Toon Language SupportA Visual Studio Code extension providing comprehensive language support for Toon files, including syntax highlighting, hover information, jump-to-definition, and real-time error detection. OverviewToon stands for Token-Oriented Object Notation - a structured data format language optimized for AI systems. Toon provides a clean, readable syntax for representing configuration data, metadata, and structured information in a way that's both human-friendly and ideal for AI-driven workflows. Toon is designed to be simple yet powerful, supporting three main syntax patterns: key-value pairs for configuration, simple arrays with size validation, and structured arrays for tabular data with typed columns. FeaturesLanguage SyntaxToon supports three primary syntax patterns for organizing data: Key-Value PairsSimple key-value pairs for configuration and metadata. Perfect for storing context, settings, and properties.
Use case: Configuration files, metadata, simple data structures Simple ArraysArrays with explicit size declarations and comma-separated values. The extension validates that the number of values matches the declared size.
Use case: Lists of items where size validation is important Structured ArraysTabular data with field definitions and multi-line data rows. Each row must have values matching the declared fields.
Use case: Structured data, tables, records with multiple fields Extension CapabilitiesSyntax HighlightingThe extension automatically recognizes
Hover InformationHover over elements in your Toon files to see contextual information:
Simply hover your mouse over any element to see its details. Jump to DefinitionNavigate quickly from structured array data values to their field definitions:
This feature works with structured arrays, allowing you to jump from a data value back to the field declaration. Error DetectionThe extension provides real-time validation with four specialized validators: ArraySizeValidator
StructuredArrayFieldValidator
KeyValuePairValidator
ArraySyntaxValidator
All errors are displayed inline with red squiggly underlines and appear in the Problems panel. Getting StartedInstallation
Usage
ExamplesHere's a complete example demonstrating all Toon features:
More examples can be found in the
|