Search in sources :

Example 6 with HTMLMasonCustomTag

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();
}
Also used : HTMLMasonCustomTag(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag)

Example 7 with HTMLMasonCustomTag

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();
}
Also used : HTMLMasonCustomTag(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag)

Aggregations

HTMLMasonCustomTag (com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag)5 HTMLMasonCustomTagRole (com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTagRole)2 VariableDescription (com.perl5.lang.mason2.idea.configuration.VariableDescription)2 WriteAction (com.intellij.openapi.application.WriteAction)1 FileTypeManagerEx (com.intellij.openapi.fileTypes.ex.FileTypeManagerEx)1 Project (com.intellij.openapi.project.Project)1 ComboBoxTableRenderer (com.intellij.openapi.ui.ComboBoxTableRenderer)1 Messages (com.intellij.openapi.ui.Messages)1 VerticalFlowLayout (com.intellij.openapi.ui.VerticalFlowLayout)1 StringUtil (com.intellij.openapi.util.text.StringUtil)1 CollectionListModel (com.intellij.ui.CollectionListModel)1 TableUtil (com.intellij.ui.TableUtil)1 ToolbarDecorator (com.intellij.ui.ToolbarDecorator)1 JBList (com.intellij.ui.components.JBList)1 JBTable (com.intellij.ui.table.JBTable)1 ColumnInfo (com.intellij.util.ui.ColumnInfo)1 FormBuilder (com.intellij.util.ui.FormBuilder)1 JBUI (com.intellij.util.ui.JBUI)1 ListTableModel (com.intellij.util.ui.ListTableModel)1 HTMLMasonSyntaxElements (com.perl5.lang.htmlmason.HTMLMasonSyntaxElements)1