Lines Matching refs:isComment
100 var isComment = token && /\bcomment\b/.test(token);
103 mode.modifyStateForTokenPre(this._lastToken, this._lastContent, token, state, content, isComment);
106 if (this._builder.lastTokenWasNewline && mode.removeLastNewline(this._lastToken, this._lastContent, token, state, content, isComment, firstTokenOnLine))
110 if (!this._builder.lastTokenWasWhitespace && mode.shouldHaveSpaceAfterLastToken(this._lastToken, this._lastContent, token, state, content, isComment))
114 if (!this._builder.lastTokenWasWhitespace && mode.shouldHaveSpaceBeforeToken(this._lastToken, this._lastContent, token, state, content, isComment))
118 var dedents = mode.dedentsBeforeToken(this._lastToken, this._lastContent, token, state, content, isComment);
123 if (mode.newlineBeforeToken(this._lastToken, this._lastContent, token, state, content, isComment))
127 if (mode.indentBeforeToken(this._lastToken, this._lastContent, token, state, content, isComment))
135 mode.modifyStateForTokenPost(this._lastToken, this._lastContent, token, state, content, isComment);
138 if (!isComment && mode.indentAfterToken(this._lastToken, this._lastContent, token, state, content, isComment))
142 var newlines = mode.newlinesAfterToken(this._lastToken, this._lastContent, token, state, content, isComment);