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

Logql: Fix grammar for String #14

Merged
merged 6 commits into from
Aug 9, 2022
Merged

Logql: Fix grammar for String #14

merged 6 commits into from
Aug 9, 2022

Conversation

ivanahuckova
Copy link
Member

@ivanahuckova ivanahuckova commented Aug 9, 2022

Currently our grammar has incorrectly matched string in 3 cases:

We are fixing this in this PR and adding tests.

Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

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

I think the package-lock.json is mandatory. The rest is looking good.

test/expression.txt Show resolved Hide resolved
@@ -1,6 +1,6 @@
# lezer-logql

LogQL lezer grammar based on https://github.com/grafana/loki/blob/main/pkg/logql/expr.y.
LogQL lezer grammar based on https://github.com/grafana/loki/blob/main/pkg/logql/syntax/expr.y.
Copy link
Contributor

Choose a reason for hiding this comment

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

Good Catch! 🤩

package.json Show resolved Hide resolved
ivanahuckova and others added 2 commits August 9, 2022 10:35
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

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

LGTM!

@ivanahuckova ivanahuckova merged commit 77c2c6c into main Aug 9, 2022
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.

None yet

2 participants