function getColumnInComment(variable,comment){var namePattern=new RegExp("[\\s,]"+lodash.escapeRegExp(variable.name)+"(?:$|[\\s,:])","g");// To ignore the first text "global".
namePattern.lastIndex=comment.value.indexOf("global")+6;// Search a given variable name.
var match=namePattern.exec(comment.value);return match?match.index+1:0;}
Gets the index of a given variable name in a given comment.
@param {escope.Variable} variable - A variable to get.
@param {ASTNode} comment - A comment node which includes the variable name.
@returns {number} The index of the variable name's location.
@private