PIML Syntax Highlighter for VS Code
This extension provides comprehensive syntax highlighting for PIML (Parenthesis Intended Markup Language) files in Visual Studio Code.
This extension provides comprehensive syntax highlighting for PIML (Parenthesis Intended Markup Language) files in Visual Studio Code.
Features
- Key Highlighting: Recognizes and highlights PIML keys, enclosed in parentheses (e.g.,
(my key)). - Comment Support: Highlights single-line comments starting with
#. - Primitive Data Types:
- Booleans:
true,false - Null/Empty:
nil - Numbers: Integers and floating-point numbers (e.g.,
100,99.99)
- Booleans:
- String Highlighting:
- Single-line Strings: Values following a key on the same line.
- Multi-line Strings: Indented blocks of text following a key, preserving newlines and handling escaped characters.
- Escape Sequences: Highlights common escape sequences like
\n,\t,\\,\(,\#.
- Collection Types:
- Arrays (Lists): Items prefixed with
>(e.g.,> item). - Sets: Items prefixed with
>|(e.g.,>| unique_item). - List of Objects: Recognizes the
> (item_key)syntax for lists containing objects.
- Arrays (Lists): Items prefixed with
Requirements
Visual Studio Code version 1.x.x or higher.
Extension Settings
This extension does not contribute any VS Code settings.
Known Issues
Currently, there are no known issues. If you encounter any problems, please report them on the GitHub repository.
Release Notes
1.0.0
Initial release of the PIML Syntax Highlighter. This version includes comprehensive highlighting for all PIML syntax elements as defined in the PIML specification v1.1.0.
Usage
- Install the "PIML Syntax Highlighter" extension from the VS Code Marketplace.
- Open any file with a
.pimlextension. - The PIML syntax elements will be automatically highlighted.
Development
To contribute to this extension:
- Clone the repository:
git clone https://github.com/your-repo/piml-highlighter.git - Navigate to the project directory:
cd piml-highlighter - Install dependencies:
npm install - To package the extension:
npx vsce package - To install the packaged extension locally:
code --install-extension piml-highlighter-0.1.0.vsix
Enjoy PIML highlighting in VS Code!