github-linguist / github-linguist/linguist

Add Separate Grammar for CQL (Cassandra Query Language)

Open
#7,650 4 comments 0 reactions 0 assignees View on GitHub
Improvement
Dominant language
Ruby
Stars
13.7k
Forks
5.4k
Avg merge
1d 15h
Merged PRs (30d)
17

Description

Hey there!

I’d like to suggest adding a **dedicated grammar for CQL (Cassandra Query Language)** instead of grouping it under SQL.

Right now, `cql` code blocks are highlighted using the SQL grammar, but CQL syntax is quite different, no joins, different data types, and its own DDL/DML structure. Having a standalone grammar would make syntax highlighting much more accurate.

I’ve been working on **native CQL support for the Zed editor** via an [extension](https://zed.dev/extensions?query=CQL), which currently has around **15k downloads** and grows by about **2-3k new installs each month**.

It includes:

- A full **CQL 3.4+ grammar**
- **Extensions for DataStax HCD**
- **Planned ScyllaDB vector search support**

Both the grammar and the language server are open source and actively maintained:

- [**Tree-sitter grammar:**](https://github.com/Akzestia/tree-sitter-cql)
- [**Language server:**](https://github.com/Akzestia/cqlls)

Would love to see `cql` get its own grammar entry to better reflect the language’s syntax. Happy to help or test if needed!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.