use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag in project Perl5-IDEA by Camelcade.
the class HTMLMasonBaseLexer method processCustomPerlCloser.
protected IElementType processCustomPerlCloser() {
CharSequence tokenText = yytext();
CharSequence tokenKey = tokenText.subSequence(3, tokenText.length() - 1);
assert myCustomTagsMap != null;
HTMLMasonCustomTag customTag = myCustomTagsMap.get(tokenKey.toString());
if (customTag != null && customTag.getRole() == HTMLMasonCustomTagRole.PERL) {
return processPerlCloser();
}
return delegateLexing();
}
use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag in project Perl5-IDEA by Camelcade.
the class HTMLMasonBaseLexer method processCustomArgsCloser.
protected IElementType processCustomArgsCloser() {
CharSequence tokenText = yytext();
CharSequence tokenKey = tokenText.subSequence(3, tokenText.length() - 1);
assert myCustomTagsMap != null;
HTMLMasonCustomTag customTag = myCustomTagsMap.get(tokenKey.toString());
if (customTag != null && customTag.getRole() == HTMLMasonCustomTagRole.ARGS) {
return processArgsCloser();
}
return delegateLexing();
}
Aggregations