Adjust empty-directive-name error offset

pull/6300/head
mhmd-22 5 years ago
parent 7d1338f275
commit 7864f010ee

@ -382,7 +382,7 @@ function read_attribute(parser: Parser, unique_names: Set<string>) {
parser.error({ parser.error({
code: 'empty-directive-name', code: 'empty-directive-name',
message: `${type} name cannot be empty` message: `${type} name cannot be empty`
}, start+colon_index); }, start + colon_index + 1);
} }
if (type === 'Binding' && directive_name !== 'this') { if (type === 'Binding' && directive_name !== 'this') {

@ -3,8 +3,8 @@
"message": "Class name cannot be empty", "message": "Class name cannot be empty",
"start": { "start": {
"line": 1, "line": 1,
"column": 9, "column": 10,
"character": 9 "character": 10
}, },
"pos": 9 "pos": 10
} }

@ -3,8 +3,8 @@
"message": "Action name cannot be empty", "message": "Action name cannot be empty",
"start": { "start": {
"line": 1, "line": 1,
"column": 7, "column": 8,
"character": 7 "character": 8
}, },
"pos": 7 "pos": 8
} }

Loading…
Cancel
Save