Skip to content

Commit

Permalink
Merge pull request #22 from tenzir/topic/comment-tokens
Browse files Browse the repository at this point in the history
Add comment tokens
  • Loading branch information
dit7ya authored Jan 20, 2025
2 parents 2e008f0 + ddf2912 commit 8928c4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import { data } from "../output.js";
const punctuation = `"+" "-" "*" "/" "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;

export const TenzirQueryLang = LRLanguage.define({
languageData: {
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
},
parser: parser.configure({
props: [
styleTags({
"Scalar true false null DollarIdent": t.literal,
"String": t.string,
String: t.string,
"StringEsc and else if in let match meta not or this": t.keyword,
"OpName! FnIdent": t.name,
[punctuation]: t.punctuation,
Expand Down

0 comments on commit 8928c4f

Please sign in to comment.