nl_tokens: Check indentation for variable declarations
pl_tokens: function checkIndentInVariableDeclarations ( node ) { var elements = filterOutSameLineVars ( node ) ; var nodeIndent = getNodeIndent ( node ) ; var lastElement = elements [ elements . length - 1 ] ; var elementsIndent = nodeIndent + indentSize * options . VariableDeclarator [ node . kind ] ; // Comma can be placed before declaration checkNodesIndent ( elements , elementsIndent , true ) ; // Only check the last line if there is any token after the last item if ( context . getLastToken ( node ) . loc . end . line <= lastElement . loc . end . line ) { return ; } var tokenBeforeLastElement = context . getTokenBefore ( lastElement ) ; if ( tokenBeforeLastElement . value === "," ) { // Special case for comma-first syntax where the semicolon is indented checkLastNodeLineIndent ( <mask> , getNodeIndent ( tokenBeforeLastElement ) ) ; } else { checkLastNodeLineIndent ( node , elementsIndent - indentSize ) ; } }