@tenzir/codemirror-lang-tql 0.4.2 → 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.
@@ -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: yarn install
25
- - run: yarn build
26
- - run: yarn publish
24
+ - run: pnpm install
25
+ - run: pnpm build
26
+ - run: pnpm publish
27
27
  env:
28
28
  NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -14,8 +14,8 @@ jobs:
14
14
  with:
15
15
  node-version: "20"
16
16
  - run: corepack enable
17
- - run: yarn install
18
- - run: yarn build
17
+ - run: pnpm install
18
+ - run: pnpm build
19
19
 
20
20
  - uses: JS-DevTools/npm-publish@v3
21
21
  with:
package/dist/index.cjs CHANGED
@@ -97,17 +97,20 @@ 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: (value) => spec_Ident[value] || -1}],
100
+ specialized: [{term: 1, get: value => spec_Ident[value] || -1}],
101
101
  tokenPrec: 885
102
102
  });
103
103
 
104
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
- "String": highlight.tags.string,
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,
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: import("@codemirror/state").Extension;
3
+ declare const tqlCompletion: any;
4
4
  declare function TQL(): LanguageSupport;
5
5
  export { TenzirQueryLang, tqlCompletion, TQL };
package/dist/index.js CHANGED
@@ -93,17 +93,20 @@ 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: (value) => spec_Ident[value] || -1}],
96
+ specialized: [{term: 1, get: value => spec_Ident[value] || -1}],
97
97
  tokenPrec: 885
98
98
  });
99
99
 
100
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
- "String": tags.string,
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,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
- "version": "0.4.2",
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": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
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 };