Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CQL language support #3811

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Querela
Copy link

@Querela Querela commented Jul 11, 2024

This pull requests add support for CQL - Contextual Query Language. This is a query language used in SRU (Search/Retrieve via URL), standardized by the Library of Congress and part of an OASIS Standard. It is often used in library search engines and can be used to query key-value based datasets.

Note that this grammar/language is mostly used as a single query (line), not multiple query statements together, as parsing can be a bit ambiguous. Basically, any identifier can function as index, operator or value of a search clause triple...
So, the recommendation is to only use inline <code> for highlighting, and never try to combine multiple query over line-breaks in <pre><code> blocks.
The Spec is not quite clear whether line breaks are to be ignored as standard whitespaces, and can be part of string values, or if there shouldn't be any. So, I did not insert an artificial line break separator (which would make some things easier).

Refs:

Copy link

No JS Changes

Generated by 🚫 dangerJS against f2f44fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant