Skip to content

feat: add jq syntax highlighting#10539

Open
bradleyjames wants to merge 1 commit intowarpdotdev:masterfrom
bradleyjames:brad/BRAD-syntax-jq
Open

feat: add jq syntax highlighting#10539
bradleyjames wants to merge 1 commit intowarpdotdev:masterfrom
bradleyjames:brad/BRAD-syntax-jq

Conversation

@bradleyjames
Copy link
Copy Markdown
Contributor

@bradleyjames bradleyjames commented May 9, 2026

Description

Adds jq to the list of syntax-highlighted languages by enabling the lang-jq feature on arborium and registering jq in crates/languages/src/lib.rs (SUPPORTED_LANGUAGES, extension mapping, highlight-query lookup). Adds crates/languages/grammars/jq/config.yaml with display name, 2-space indent, # comment prefix, and standard brackets — uses arborium's bundled highlights, so no .scm files are needed. Also keeps the two parallel "kept-in-sync" language lists current: ProgrammingLanguage::to_extension in the AI agent, and is_development_text_extension in warp_util/file_type.rs.

Testing

  • I have manually tested my changes locally with ./script/run

Automated coverage:

  • cargo test -p languagesall_supported_languages_load_successfully confirms the grammar + bundled highlight query parse cleanly
  • cargo clippy --workspace --exclude warp_completer --exclude command-signatures-v2 --all-targets --tests -- -D warnings — clean
  • cargo nextest run --workspace --exclude command-signatures-v2 — only failures are pre-existing on master (5 SSH integration tests + 1 settings-migration test that depends on absent ~/.warp-oss/settings.toml); verified by re-running with my changes stashed

Screenshots / Videos

Screenshot 2026-05-08 at 8 36 05 PM

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Used claude code

CHANGELOG-IMPROVEMENT: jq syntax highlighting for code blocks and .jq files

Wires up the existing arborium tree-sitter jq grammar by enabling the
lang-jq feature, registering jq in SUPPORTED_LANGUAGES with a `.jq`
extension mapping, and adding a config.yaml for indent and bracket
metadata. Also keeps the parallel ProgrammingLanguage::to_extension and
is_development_text_extension lists in sync.
@cla-bot cla-bot Bot added the cla-signed label May 9, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 9, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 9, 2026

@bradleyjames

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @kevinyang372.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds jq syntax-highlighting support by enabling arborium's jq grammar feature, registering jq in the languages crate, adding the grammar config, and keeping the AI/code-file extension allowlists in sync.

Concerns

  • No blocking correctness or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot requested a review from kevinyang372 May 9, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant