@tenzir/codemirror-lang-tql 0.4.1 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/continuous-release.yml +31 -0
- package/.github/workflows/npm-publish-github-packages.yml +3 -3
- package/.github/workflows/npm-publish-npmjs.yml +2 -2
- package/dist/index.cjs +7 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -4
- package/package.json +2 -2
- package/dist/index.d.cts +0 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Publish Every Commit
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
pull_request:
|
|
7
|
+
types:
|
|
8
|
+
- opened
|
|
9
|
+
- synchronize
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- run: corepack enable
|
|
20
|
+
- uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: 20
|
|
23
|
+
cache: "pnpm"
|
|
24
|
+
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: pnpm install
|
|
27
|
+
|
|
28
|
+
- name: Build
|
|
29
|
+
run: pnpm build
|
|
30
|
+
|
|
31
|
+
- run: pnpx pkg-pr-new publish
|
|
@@ -21,8 +21,8 @@ jobs:
|
|
|
21
21
|
node-version: 18
|
|
22
22
|
registry-url: https://npm.pkg.github.com/
|
|
23
23
|
- run: corepack enable
|
|
24
|
-
- run:
|
|
25
|
-
- run:
|
|
26
|
-
- run:
|
|
24
|
+
- run: pnpm install
|
|
25
|
+
- run: pnpm build
|
|
26
|
+
- run: pnpm publish
|
|
27
27
|
env:
|
|
28
28
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
package/dist/index.cjs
CHANGED
|
@@ -97,20 +97,23 @@ const parser = lr.LRParser.deserialize({
|
|
|
97
97
|
tokenizers: [1, 2, newlines, identifiers, new lr.LocalTokenGroup("b~RPz{U~XP!P!Q[~aO!j~~", 17, 71)],
|
|
98
98
|
topRules: {"Pipeline":[0,6]},
|
|
99
99
|
dynamicPrecedences: {"49":2,"56":1},
|
|
100
|
-
specialized: [{term: 1, get:
|
|
100
|
+
specialized: [{term: 1, get: value => spec_Ident[value] || -1}],
|
|
101
101
|
tokenPrec: 885
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
const
|
|
104
|
+
const punctuation = `"+" "-" "*" "/" "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;
|
|
105
105
|
const TenzirQueryLang = language.LRLanguage.define({
|
|
106
|
+
languageData: {
|
|
107
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
|
108
|
+
},
|
|
106
109
|
parser: parser.configure({
|
|
107
110
|
props: [
|
|
108
111
|
highlight.styleTags({
|
|
109
112
|
"Scalar true false null DollarIdent": highlight.tags.literal,
|
|
110
|
-
|
|
113
|
+
String: highlight.tags.string,
|
|
111
114
|
"StringEsc and else if in let match meta not or this": highlight.tags.keyword,
|
|
112
115
|
"OpName! FnIdent": highlight.tags.name,
|
|
113
|
-
[
|
|
116
|
+
[punctuation]: highlight.tags.punctuation,
|
|
114
117
|
"LineComment BlockComment": highlight.tags.comment,
|
|
115
118
|
}),
|
|
116
119
|
],
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
2
2
|
declare const TenzirQueryLang: LRLanguage;
|
|
3
|
-
declare const tqlCompletion:
|
|
3
|
+
declare const tqlCompletion: any;
|
|
4
4
|
declare function TQL(): LanguageSupport;
|
|
5
5
|
export { TenzirQueryLang, tqlCompletion, TQL };
|
package/dist/index.js
CHANGED
|
@@ -93,20 +93,23 @@ const parser = LRParser.deserialize({
|
|
|
93
93
|
tokenizers: [1, 2, newlines, identifiers, new LocalTokenGroup("b~RPz{U~XP!P!Q[~aO!j~~", 17, 71)],
|
|
94
94
|
topRules: {"Pipeline":[0,6]},
|
|
95
95
|
dynamicPrecedences: {"49":2,"56":1},
|
|
96
|
-
specialized: [{term: 1, get:
|
|
96
|
+
specialized: [{term: 1, get: value => spec_Ident[value] || -1}],
|
|
97
97
|
tokenPrec: 885
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
const
|
|
100
|
+
const punctuation = `"+" "-" "*" "/" "=" "." "'" ":" "!" "?" "<" ">" "@" "%" "&" "#" ";" "^" "\`"`;
|
|
101
101
|
const TenzirQueryLang = LRLanguage.define({
|
|
102
|
+
languageData: {
|
|
103
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
|
104
|
+
},
|
|
102
105
|
parser: parser.configure({
|
|
103
106
|
props: [
|
|
104
107
|
styleTags({
|
|
105
108
|
"Scalar true false null DollarIdent": tags.literal,
|
|
106
|
-
|
|
109
|
+
String: tags.string,
|
|
107
110
|
"StringEsc and else if in let match meta not or this": tags.keyword,
|
|
108
111
|
"OpName! FnIdent": tags.name,
|
|
109
|
-
[
|
|
112
|
+
[punctuation]: tags.punctuation,
|
|
110
113
|
"LineComment BlockComment": tags.comment,
|
|
111
114
|
}),
|
|
112
115
|
],
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.4.
|
|
10
|
+
"version": "0.4.4",
|
|
11
11
|
"description": "Tenzir Query Language (TQL) support for CodeMirror",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "lezer-generator src/tql.grammar -o src/parser && rollup -c",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"typescript": "^4.3.4"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
|
-
"packageManager": "
|
|
43
|
+
"packageManager": "pnpm@9.8.0+sha512.8e4c3550fb500e808dbc30bb0ce4dd1eb614e30b1c55245f211591ec2cdf9c611cabd34e1364b42f564bd54b3945ed0f49d61d1bbf2ec9bd74b866fcdc723276"
|
|
44
44
|
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
2
|
-
declare const TenzirQueryLang: LRLanguage;
|
|
3
|
-
declare const tqlCompletion: import("@codemirror/state").Extension;
|
|
4
|
-
declare function TQL(): LanguageSupport;
|
|
5
|
-
export { TenzirQueryLang, tqlCompletion, TQL };
|