@mavnn/codemirror-lang-ink 0.9.15-rc0 → 0.9.15-rc1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -137,9 +137,9 @@ const InkLanguage = LRLanguage.define({
137
137
  parser: parser.configure({
138
138
  props: [
139
139
  foldNodeProp.add({
140
- Knot: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to).from }),
141
- Function: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to).from }),
142
- Stitch: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to).from }),
140
+ Knot: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to - 1).to }),
141
+ Function: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to - 1).to }),
142
+ Stitch: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: state.doc.lineAt(tree.to - 1).to }),
143
143
  }),
144
144
  styleTags({
145
145
  BlockComment: tags.blockComment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mavnn/codemirror-lang-ink",
3
- "version": "0.9.15-rc0",
3
+ "version": "0.9.15-rc1",
4
4
  "description": "Ink language support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "pre-gen": "mkdir -p src/generated && lezer-generator src/syntax.grammar -o src/generated/parser",