Skip to content

Commit c5823bf

Browse files
committed
add "range" key to locationProps
1 parent 5e8666e commit c5823bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/parsers/md/textlint-markdown-to-ast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export default {
1010
displayName: "textlint",
1111
version: pkg.version,
1212
homepage: pkg.homepage,
13-
locationProps: new Set(['loc']),
13+
locationProps: new Set(['loc', 'range']),
1414

1515
loadParser(callback) {
1616
require(['markdown-to-ast/lib/markdown/markdown-parser'], callback);
1717
},
18-
18+
1919
parse(parser, text) {
2020
return parser.parse(text);
2121
},

src/parsers/txt/textlint-txt-to-ast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
displayName: "textlint",
1111
version: pkg.version,
1212
homepage: pkg.homepage,
13-
locationProps: new Set(['loc']),
13+
locationProps: new Set(['loc', 'range']),
1414

1515
loadParser(callback) {
1616
require(['txt-to-ast/index'], callback);

0 commit comments

Comments
 (0)