Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
24
2 changes: 1 addition & 1 deletion CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ Query composition rules:
- `injections.scm`: `core + routine local`

`scripts/sync_queries.py` only manages `highlights.scm`, `indents.scm`, and
`injections.scm`. `studio-highlights.scm` files are intentionally excluded from
query sync and from Python query-copy verification.
`injections.scm`.

Manual query commands:

Expand All @@ -118,20 +117,17 @@ Run from repository root.
cargo test --lib --package tree-sitter-objectscript

./scripts/rust_routine_crate.sh stage /tmp/tsroutine
cp objectscript_routine/queries/studio-highlights.scm /tmp/tsroutine/objectscript_routine/queries/
cp objectscript_routine/queries/highlights.scm /tmp/tsroutine/objectscript_routine/queries/
cargo build --manifest-path /tmp/tsroutine/Cargo.toml

./scripts/rust_playground_crate.sh stage /tmp/tsplayground
cp objectscript/queries/studio-highlights.scm /tmp/tsplayground/objectscript/queries/
cp objectscript/queries/highlights.scm /tmp/tsplayground/objectscript/queries/
cargo build --manifest-path /tmp/tsplayground/Cargo.toml
```

The root `Cargo.toml` only covers the published UDL crate
(`tree-sitter-objectscript`). The routine and playground crates are staged from
their template directories before building or publishing. Their current Rust
templates include `STUDIO_HIGHLIGHTS_QUERY`, so local staged builds need the
matching `studio-highlights.scm` copied into the staged query directory until
the staging scripts are updated to do that automatically.
their template directories before building or publishing.

- Python:

Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ make test

The routine and playground Rust crates are staged from `bindings/rust-routine` and
`bindings/rust-playground` via helper scripts. See
[CONTRIBUTING.md](CONTRIBUTING.md) for the current local build workflow and the
temporary `studio-highlights.scm` copy step those staged crates need today.
[CONTRIBUTING.md](CONTRIBUTING.md) for the current local build workflow.

For Node bindings specifically, `.nvmrc` pins the expected Node version.

Expand Down Expand Up @@ -96,8 +95,7 @@ If you change an upstream grammar (`expr` or `core`), regenerate downstream gram

It composes the layered query trees for `core`, `udl`, `objectscript`, and
`objectscript_routine`, then mirrors those composed files into the Python
binding query directories. `studio-highlights.scm` files are intentionally left
out of that sync process and are maintained separately.
binding query directories.

## Corpus Sync

Expand Down
24 changes: 7 additions & 17 deletions bindings/python/tree_sitter_objectscript/queries/highlights.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading