Skip to content

Commit

Permalink
Merge pull request #20 from tenzir/topic/remove-comma-from-punctuation
Browse files Browse the repository at this point in the history
Remove comma from highlighted punctuation
  • Loading branch information
sunnewehr authored Aug 21, 2024
2 parents 15f3be3 + 78cbcfd commit 797b609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.4.1",
"version": "0.4.2",
"description": "Tenzir Query Language (TQL) support for CodeMirror",
"scripts": {
"build": "lezer-generator src/tql.grammar -o src/parser && rollup -c",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { styleTags, tags as t } from "@lezer/highlight";
import { completeFromList, Completion } from "@codemirror/autocomplete";
import { data } from "../output.js";

const puncation = `"+" "-" "*" "/" "," "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;
const punctuation = `"+" "-" "*" "/" "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;

export const TenzirQueryLang = LRLanguage.define({
parser: parser.configure({
Expand All @@ -14,7 +14,7 @@ export const TenzirQueryLang = LRLanguage.define({
"String": t.string,
"StringEsc and else if in let match meta not or this": t.keyword,
"OpName! FnIdent": t.name,
[puncation]: t.punctuation,
[punctuation]: t.punctuation,
"LineComment BlockComment": t.comment,
}),
],
Expand Down

0 comments on commit 797b609

Please sign in to comment.