about summary refs log tree commit diff stats
path: root/js/baba-yaga/dev/textmate/README.md
blob: d4635cd9018e3a357c526951210615d29a545cc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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)