Skip to content

Commit

Permalink
Fix wrong ast for v-for="(a, index) in list" (#97)
Browse files Browse the repository at this point in the history
* Fix wrong ast for v-for="(a, index) in list"

* fix

* fix
  • Loading branch information
ota-meshi authored Jan 21, 2021
1 parent 3196668 commit cd14790
Show file tree
Hide file tree
Showing 7 changed files with 1,017 additions and 76 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/mocha": "^5.2.4",
"@types/node": "^10.12.21",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.7.0",
"@typescript-eslint/parser": "^4.14.0",
"babel-eslint": "^10.0.1",
"chokidar": "^2.0.4",
"codecov": "^3.1.0",
Expand All @@ -47,6 +47,7 @@
"rollup": "^1.1.2",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"semver": "^7.3.4",
"ts-node": "^8.1.0",
"typescript": "~4.0.5",
"wait-on": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { fixLocations } from "../common/fix-locations"
// [1] = aliases.
// [2] = delimiter.
// [3] = iterator.
const ALIAS_ITERATOR = /^([\s\S]*?(?:\s|\)))(\bin|of\b)([\s\S]*)$/u
const ALIAS_ITERATOR = /^([\s\S]*?(?:\s|\)))(\bin\b|\bof\b)([\s\S]*)$/u
const PARENS = /^(\s*\()([\s\S]*?)(\)\s*)$/u
const DUMMY_PARENT: any = {}

Expand Down
Loading

0 comments on commit cd14790

Please sign in to comment.