jformatter.js
function (token) {
            var inline = false;
            if (token) {
                if (token.type === 'LineComment') {
                    inline = true;
                } else if (token.type === 'BlockComment') {
                    inline = (token.value.indexOf('\n') === -1);
                }
            }
            return inline;
        }
function (token) {
            var inline = false;
            if (token) {
                if (token.type === 'LineComment') {
                    inline = true;
                } else if (token.type === 'BlockComment') {
                    inline = (token.value.indexOf('\n') === -1);
                }
            }
            return inline;
        }
function ( token ) { var inline = false ; if ( token ) { if ( token . type === 'LineComment' ) { inline = true ; } else if ( token . type === 'BlockComment' ) { inline = ( token . value . indexOf ( '\n' ) === - 1 ) ; } } return inline ; }
check if a token is comment in one line

@param {Object} token - the token to check
@returns {boolean}
check if a token is comment in one line