Examples of CfmlLexer


Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

    }
    assertSameLinesWithFile(expectedFileName, result);
  }

  private void doTest() throws IOException {
    Lexer lexer = new CfmlLexer(true, null);
    String testText = loadFile(getTestName(true) + ".test.cfml");
    doFileLexerTest(lexer, testText, getDataSubpath() + getTestName(true) + ".test.expected");
  }
View Full Code Here

Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

  private static final TokenSet myCommentTypes =
    TokenSet.create(CfmlTokenTypes.COMMENT, CfscriptTokenTypes.COMMENT, CfmlTokenTypes.VAR_ANNOTATION);

  @NotNull
  public Lexer createLexer(Project project) {
    return new CfmlLexer(false, project);
  }
View Full Code Here

Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

      myProject = project;
    }

    @NotNull
    public Lexer getHighlightingLexer() {
      return new LayeredLexer(new CfmlLexer(true, myProject));
    }
View Full Code Here

Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

    if (file instanceof CfmlFile) {
      Project project = file.getProject();
      SqlLanguageDialect dialect = SqlDialectMappings.getMapping(project, file.getVirtualFile());
      Lexer sqlLexer = LanguageParserDefinitions.INSTANCE.forLanguage(dialect).createLexer(project);

      LayeredLexer cfmlLayeredLexer = new LayeredLexer(new CfmlLexer(true, project));

      cfmlLayeredLexer.registerLayer(new XmlHighlightingLexer(), CfmlElementTypes.TEMPLATE_TEXT);
      cfmlLayeredLexer.registerLayer(sqlLexer, CfmlElementTypes.SQL);

      return cfmlLayeredLexer;
View Full Code Here

Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

  public void testTagComment() throws Throwable {
    doTest();
  }

  public void testCommentBalance() throws Throwable {
    Lexer lexer = new CfmlLexer(true, null);
    String testText1 = loadFile(getTestName(true) + "1.test.cfml");
    String expected1 = getDataSubpath() + getTestName(true) + "1.test.expected";
    doFileLexerTest(lexer, testText1, expected1);

    String testText2 = loadFile(getTestName(true) + "2.test.cfml");
View Full Code Here

Examples of com.intellij.coldFusion.model.lexer.CfmlLexer

    }
    assertSameLinesWithFile(expectedFilePath, result);
  }

  private void doTest() throws IOException {
    Lexer lexer = new CfmlLexer(true, null);
    String testText = loadFile(getTestName(true) + ".test.cfml");
    doFileLexerTest(lexer, testText, getDataSubpath() + getTestName(true) + ".test.expected");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.