diff options
Diffstat (limited to 'js/baba-yaga/dev/textmate/README.md')
-rw-r--r-- | js/baba-yaga/dev/textmate/README.md | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/js/baba-yaga/dev/textmate/README.md b/js/baba-yaga/dev/textmate/README.md new file mode 100644 index 0000000..d4635cd --- /dev/null +++ b/js/baba-yaga/dev/textmate/README.md @@ -0,0 +1,60 @@ +# Baba Yaga TextMate Bundle + +Syntax highlighting for the Baba Yaga programming language in TextMate. + +## Installation + +### Method 1: Double-click Installation +1. Double-click the `Baba Yaga.tmbundle` file +2. TextMate will automatically install the bundle +3. Restart TextMate + +### Method 2: Manual Installation +1. Copy the `Baba Yaga.tmbundle` folder to your TextMate bundles directory: + - macOS: `~/Library/Application Support/TextMate/Bundles/` + - Or use: `~/Library/Application Support/Avian/Bundles/` (for TextMate 2) + +2. Restart TextMate + +### Method 3: Git Installation +```bash +cd ~/Library/Application\ Support/TextMate/Bundles/ +git clone https://github.com/your-username/baba-yaga.git Baba\ Yaga.tmbundle +``` + +## Features +- Syntax highlighting for Baba Yaga language +- Support for `.baba` files +- Highlighting for: + - Keywords (when, then, is, with, etc.) + - Operators (->, =>, +, -, etc.) + - Functions and variables + - Strings and numbers + - Comments (// and /* */) + - When expressions + - Types (Bool, Int, Float, etc.) +- Code folding support +- Auto-indentation + +## Usage +Open any `.baba` file and TextMate should automatically detect the language and apply syntax highlighting. + +## Customization +You can customize the colors by modifying your theme or creating a custom theme that targets the `source.baba-yaga` scope. + +## Building the Bundle +If you need to modify the syntax highlighting: + +1. Edit the `Syntaxes/Baba Yaga.tmLanguage` file +2. Generate new UUIDs for the bundle and syntax files +3. Test in TextMate + +## UUID Generation +You can generate new UUIDs using: +```bash +uuidgen +``` + +Replace the placeholder UUIDs in: +- `Info.plist` (bundle UUID) +- `Syntaxes/Baba Yaga.tmLanguage` (syntax UUID) |