feat: migrate to ESM
This commit is contained in:
parent
67f50b85f5
commit
39a67eec61
59 changed files with 132 additions and 80 deletions
|
|
@ -64,7 +64,7 @@ There should be a file called `grammar.js` with the following contents:
|
|||
/// <reference types="tree-sitter-cli/dsl" />
|
||||
// @ts-check
|
||||
|
||||
module.exports = grammar({
|
||||
export default grammar({
|
||||
name: 'LOWER_PARSER_NAME',
|
||||
|
||||
rules: {
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ A construct like `[x, y]` could be legitimately parsed as both an array literal
|
|||
pattern (like in `let [x, y] = arr`).
|
||||
|
||||
```js
|
||||
module.exports = grammar({
|
||||
export default grammar({
|
||||
name: "javascript",
|
||||
|
||||
rules: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue