Skip to content

Commit 8928c4f

Browse files
authored
Merge pull request #22 from tenzir/topic/comment-tokens
Add comment tokens
2 parents 2e008f0 + ddf2912 commit 8928c4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ import { data } from "../output.js";
77
const punctuation = `"+" "-" "*" "/" "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;
88

99
export const TenzirQueryLang = LRLanguage.define({
10+
languageData: {
11+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
12+
},
1013
parser: parser.configure({
1114
props: [
1215
styleTags({
1316
"Scalar true false null DollarIdent": t.literal,
14-
"String": t.string,
17+
String: t.string,
1518
"StringEsc and else if in let match meta not or this": t.keyword,
1619
"OpName! FnIdent": t.name,
1720
[punctuation]: t.punctuation,

0 commit comments

Comments
 (0)