Skip to content

Commit 3403ad2

Browse files
committed
Release 0.2.0 -- the streamlined grammar
1 parent e419dbe commit 3403ad2

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-gram"
33
description = "Gram grammar for tree-sitter"
4-
version = "0.1.11"
4+
version = "0.2.0"
55
license = "MIT"
66
readme = "README.md"
77
keywords = ["incremental", "parsing", "tree-sitter", "gram"]

DEVELOP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ python -m pip install .
3333

3434
1. Bump all build files to matching version (global search & replace)
3535
- `tree-sitter version 1.2.3`
36+
- `npm run zed:publish`
3637
2. Commit changes
3738
- `git commit -am "Release 1.2.3" `
3839
3. Tag with new version using `git tag -a <version> -m "<description>"
39-
4. `git push --follow-tags`
40+
4. `git push --follow-tags`

Makefile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editors/zed/extension.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
id = "gram"
22
name = "Gram Language Support"
3-
version = "0.1.11"
3+
version = "0.2.0"
44
schema_version = 1
55
authors = ["Gram Data Contributors"]
66
description = "Support for Gram notation - a subject-oriented notation for structured data"
77

88
# path = "grammars/tree-sitter-gram"
99
[grammars.gram]
10-
repository = "file:///Users/akollegger/Developer/gram-data/tree-sitter-gram"
11-
rev = "adb4b71a1fe3ac11f5a48ec85624d7a125924692"
10+
repository = "https://github.com/gram-data/tree-sitter-gram"
11+
rev = "e419dbe99e299517f615f79616c836de4cb2550d"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gram-data/tree-sitter-gram",
3-
"version": "0.1.11",
3+
"version": "0.2.0",
44
"description": "subject-oriented notation for structured data",
55
"homepage": "https://gram-data.github.io",
66
"repository": {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "tree-sitter-gram"
77
description = "Gram grammar for tree-sitter"
8-
version = "0.1.11"
8+
version = "0.2.0"
99
keywords = ["incremental", "parsing", "tree-sitter", "gram"]
1010
classifiers = [
1111
"Intended Audience :: Developers",

scripts/prepare-zed-extension.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ npx tree-sitter test
3535
# Sync top-level queries into Zed extension
3636
echo "📝 Syncing Tree-sitter queries into Zed extension..."
3737
QUERIES_SRC="$PROJECT_ROOT/queries"
38-
QUERIES_DST="$ZED_EXTENSION_DIR/languages/gram/queries"
38+
QUERIES_DST="$ZED_EXTENSION_DIR/languages/gram"
3939

4040
if [ ! -d "$QUERIES_SRC" ] || [ ! -f "$QUERIES_SRC/highlights.scm" ]; then
4141
echo "❌ Error: Missing canonical queries. Expected at: $QUERIES_SRC/highlights.scm"
4242
exit 1
4343
fi
4444

45-
rm -rf "$QUERIES_DST"
4645
mkdir -p "$QUERIES_DST"
4746
cp "$QUERIES_SRC"/*.scm "$QUERIES_DST"/
4847

@@ -87,7 +86,7 @@ echo "✅ Validating extension structure..."
8786
required_files=(
8887
"$ZED_EXTENSION_DIR/extension.toml"
8988
"$ZED_EXTENSION_DIR/languages/gram/config.toml"
90-
"$ZED_EXTENSION_DIR/languages/gram/queries/highlights.scm"
89+
"$ZED_EXTENSION_DIR/languages/gram/highlights.scm"
9190
)
9291

9392
for file in "${required_files[@]}"; do
@@ -98,7 +97,7 @@ for file in "${required_files[@]}"; do
9897
done
9998

10099
# Explicit check for highlights.scm copied from queries/
101-
HIGHLIGHTS_FILE="$ZED_EXTENSION_DIR/languages/gram/queries/highlights.scm"
100+
HIGHLIGHTS_FILE="$ZED_EXTENSION_DIR/languages/gram/highlights.scm"
102101
if [ ! -f "$HIGHLIGHTS_FILE" ]; then
103102
echo "❌ Error: Missing required file: $HIGHLIGHTS_FILE"
104103
exit 1

src/parser.c

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tree-sitter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"metadata": {
14-
"version": "0.1.11",
14+
"version": "0.2.0",
1515
"license": "ISC",
1616
"description": "subject-oriented notation for structured data",
1717
"links": {

0 commit comments

Comments
 (0)