Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/codemirror-language-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"outDir": "./dist/esm",
"tsBuildInfoFile": "./dist/esm/tsconfig.tsbuildInfo",
"module": "es6",
"moduleResolution": "node",
"rootDir": "src",
"resolveJsonModule": false,
"lib": [
Expand All @@ -15,4 +16,3 @@
]
}
}

2 changes: 1 addition & 1 deletion packages/lang-jsonc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"outDir": "./dist/esm",
"tsBuildInfoFile": "./dist/esm/tsconfig.tsbuildInfo",
"module": "es6",
"moduleResolution": "node",
"rootDir": "src",
"resolveJsonModule": false,
"lib": [
Expand All @@ -15,4 +16,3 @@
]
}
}

1 change: 1 addition & 0 deletions packages/liquid-html-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@ohm-js/wasm": "^0.6.8",
"line-column": "^1.0.2",
"ohm-js": "^17.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/liquid-html-parser/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import lineColumn from 'line-column';
import { MatchResult } from 'ohm-js';
import { MatchResult } from '@ohm-js/wasm';
import { NodeTypes, Position } from './types';

interface LineColPosition {
Expand Down
6 changes: 3 additions & 3 deletions packages/liquid-html-parser/src/grammar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('Unit: liquidHtmlGrammar', () => {
expectMatchSucceeded('<6h>').to.be.false;

function expectMatchSucceeded(text: string) {
const match = grammar.LiquidHTML.match(text, 'Node');
using match = grammar.LiquidHTML.match(text, 'Node');
return expect(match.succeeded(), text);
}
});
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('Unit: liquidHtmlGrammar', () => {
`).to.be.true;

function expectMatchSucceeded(text: string) {
const match = grammar.LiquidStatement.match(text.trimStart(), 'Node');
using match = grammar.LiquidStatement.match(text.trimStart(), 'Node');
return expect(match.succeeded(), text);
}
});
Expand All @@ -156,7 +156,7 @@ describe('Unit: liquidHtmlGrammar', () => {
});

function expectMatchSucceeded(text: string) {
const match = placeholderGrammars.LiquidHTML.match(text.trimStart(), 'Node');
using match = placeholderGrammars.LiquidHTML.match(text.trimStart(), 'Node');
return expect(match.succeeded(), text);
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/liquid-html-parser/src/grammar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { grammars, Grammar } from 'ohm-js';
import { grammars, Grammar } from '@ohm-js/wasm/compat';

export const liquidHtmlGrammars = grammars(require('../grammar/liquid-html.ohm.js'));

Expand Down
Loading
Loading