fix(html): correct column for error code frame (#5553)

- before
  ```html
  [error] test.html: SyntaxError: Unexpected character "/" (1:26)
  [error] > 1 | <div>footer content here<//>
  [error]     |                          ^
  ```
- after
  ```html
  [error] test.html: SyntaxError: Unexpected character "/" (1:27)
  [error] > 1 | <div>footer content here<//>
  [error]     |                           ^
  ```
This commit is contained in:
Ika authored and GitHub committed 2018-11-27 17:45:17 +08:00
1 parent 05ad885c3c
commit 4dd7c79bbf
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ function ngHtmlParser(
if (errors.length !== 0) {
const { msg, span } = errors[0];
const { line, col } = span.start;
throw createError(msg, { start: { line: line + 1, column: col } });
throw createError(msg, { start: { line: line + 1, column: col + 1 } });
}
const addType = node => {