/** * Returns whether a given token is an internal token type that represents * an MLC or documentation comment continuing on to the next line. This is * done by languages such as JavaScript that are a little more verbose * than necessary so that their code can be copy-and-pasted into other * <code>TokenMaker</code>s that use them as nested languages (such as * HTML, JSP, etc.). * * @param t The token to check. This cannot be <code>null</code>. * @return Whether the token is an internal token representing the end of * a line for an MLC/doc comment continuing on to the next line. */ private boolean isInternalEolTokenForMLCs(Token t) { int type = t.getType(); if (type<0) { type = getClosestStandardTokenTypeForInternalType(type); return type==TokenTypes.COMMENT_MULTILINE || type==TokenTypes.COMMENT_DOCUMENTATION; } return false; }
/** * Returns whether a given token is an internal token type that represents * an MLC or documentation comment continuing on to the next line. This is * done by languages such as JavaScript that are a little more verbose * than necessary so that their code can be copy-and-pasted into other * <code>TokenMaker</code>s that use them as nested languages (such as * HTML, JSP, etc.). * * @param t The token to check. This cannot be <code>null</code>. * @return Whether the token is an internal token representing the end of * a line for an MLC/doc comment continuing on to the next line. */ private boolean isInternalEolTokenForMLCs(Token t) { int type = t.getType(); if (type<0) { type = getClosestStandardTokenTypeForInternalType(type); return type==TokenTypes.COMMENT_MULTILINE || type==TokenTypes.COMMENT_DOCUMENTATION; } return false; }