jshint/jshint — Issue #305: Incorrect column numbers for missing semicolons after strings
Author: gregspurrier
Created: 2011-10-12 15:20:17+00:00
State: open

The column numbers given for semicolons that are missing after string literals are off by two. For example, with the following file:

// 111
// 456789012
var a = 1
var b = '1'
var c = "1"

The output of jshint is:

semi.js: line 3, col 10, Missing semicolon.
semi.js: line 4, col 10, Missing semicolon.
semi.js: line 5, col 10, Missing semicolon.

Notice that the last two errors give column 10 instead of column 12.