lang-feel 0.2.0 → 0.3.2

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/dist/index.cjs CHANGED
@@ -29,14 +29,9 @@ const snippets = [
29
29
  detail: 'quantified expression',
30
30
  type: 'keyword'
31
31
  }),
32
- autocomplete.snippetCompletion('if ${condition} then ${value}', {
33
- label: 'if',
34
- detail: 'block',
35
- type: 'keyword'
36
- }),
37
32
  autocomplete.snippetCompletion('if ${condition} then ${value} else ${other value}', {
38
33
  label: 'if',
39
- detail: '/ else block',
34
+ detail: 'block',
40
35
  type: 'keyword'
41
36
  })
42
37
  ];
@@ -54,8 +49,8 @@ const feelLanguage = language.LRLanguage.define({
54
49
  'List FilterExpression': language.delimitedIndent({
55
50
  closing: ']'
56
51
  }),
57
- 'ParenthesizedExpression FunctionInvocation': language.delimitedIndent({
58
- closing: ')'
52
+ 'ParenthesizedExpression FunctionInvocation': language.continuedIndent({
53
+ except: /^\s*\)/
59
54
  }),
60
55
  'ForExpression QuantifiedExpression IfExpression': language.continuedIndent({
61
56
  except: /^\s*(then|else|return|satisfies)\b/
package/dist/index.js CHANGED
@@ -25,14 +25,9 @@ const snippets = [
25
25
  detail: 'quantified expression',
26
26
  type: 'keyword'
27
27
  }),
28
- /*@__PURE__*/snippetCompletion('if ${condition} then ${value}', {
29
- label: 'if',
30
- detail: 'block',
31
- type: 'keyword'
32
- }),
33
28
  /*@__PURE__*/snippetCompletion('if ${condition} then ${value} else ${other value}', {
34
29
  label: 'if',
35
- detail: '/ else block',
30
+ detail: 'block',
36
31
  type: 'keyword'
37
32
  })
38
33
  ];
@@ -50,8 +45,8 @@ const feelLanguage = /*@__PURE__*/LRLanguage.define({
50
45
  'List FilterExpression': /*@__PURE__*/delimitedIndent({
51
46
  closing: ']'
52
47
  }),
53
- 'ParenthesizedExpression FunctionInvocation': /*@__PURE__*/delimitedIndent({
54
- closing: ')'
48
+ 'ParenthesizedExpression FunctionInvocation': /*@__PURE__*/continuedIndent({
49
+ except: /^\s*\)/
55
50
  }),
56
51
  'ForExpression QuantifiedExpression IfExpression': /*@__PURE__*/continuedIndent({
57
52
  except: /^\s*(then|else|return|satisfies)\b/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lang-feel",
3
- "version": "0.2.0",
3
+ "version": "0.3.2",
4
4
  "description": "FEEL language support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "all": "run-s lint build test",
@@ -29,24 +29,24 @@
29
29
  "sideEffects": false,
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@codemirror/autocomplete": "^6.0.0",
33
- "@codemirror/language": "^6.0.0",
34
- "@codemirror/state": "^6.0.0",
35
- "@codemirror/view": "^6.0.0",
36
- "@lezer/common": "^1.0.0",
37
- "lezer-feel": "^0.16.0"
32
+ "@codemirror/autocomplete": "^6.4.0",
33
+ "@codemirror/language": "^6.4.0",
34
+ "@codemirror/state": "^6.2.0",
35
+ "@codemirror/view": "^6.7.3",
36
+ "@lezer/common": "^1.0.2",
37
+ "lezer-feel": "^0.16.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@codemirror/buildhelper": "^0.1.5",
41
- "@lezer/lr": "^1.0.0",
42
- "@typescript-eslint/eslint-plugin": "^5.37.0",
43
- "@typescript-eslint/parser": "^5.37.0",
40
+ "@codemirror/buildhelper": "^0.1.16",
41
+ "@lezer/lr": "^1.3.1",
42
+ "@typescript-eslint/eslint-plugin": "^5.48.2",
43
+ "@typescript-eslint/parser": "^5.48.2",
44
44
  "chokidar": "^3.5.3",
45
45
  "chokidar-cli": "^3.0.0",
46
- "eslint": "^8.23.1",
46
+ "eslint": "^8.32.0",
47
47
  "eslint-plugin-bpmn-io": "^0.16.0",
48
48
  "npm-run-all": "^4.1.5",
49
- "typescript": "^4.8.3"
49
+ "typescript": "^4.9.4"
50
50
  },
51
51
  "repository": {
52
52
  "type": "git",