Examples of SyntaxType


Examples of com.google.collide.codemirror2.SyntaxType

    model.cleanup();
  }

  public void onDocumentChanged(DocumentParser parser) {
    model.cleanup();
    SyntaxType syntax = (parser != null) ? parser.getSyntaxType() : SyntaxType.NONE;

    boolean oldAcceptCubeUpdates = acceptCubeUpdates;
    if (currentOutlineParser != null) {
      currentOutlineParser.cleanup();
      currentOutlineParser = null;
View Full Code Here

Examples of com.google.collide.codemirror2.SyntaxType

    JsonStringMap<CodeBlock> codeBlockMap = codeGraph.getCodeBlockMap();
    JsonArray<String> keys = codeBlockMap.getKeys();
    for (int i = 0; i < keys.size(); i++) {
      String key = keys.get(i);
      CodeBlock fileCodeBlock = codeBlockMap.get(key);
      SyntaxType fileMode = SyntaxType.syntaxTypeByFileName(fileCodeBlock.getName());
      if (mode.equals(fileMode)) {
        FileIndex fileIndex = new FileIndex(fileCodeBlock, new PathUtil(fileCodeBlock.getName()));
        fileIdToData.put(fileCodeBlock.getId(), fileIndex);

        String filePath = fileIndex.path.getPathString();
View Full Code Here

Examples of com.google.collide.codemirror2.SyntaxType

  }

  public void testAutocompletionMode() {
    Autocompleter autocompleter = helper.setup(path, "", 0, 0, false);

    SyntaxType mode = SyntaxType.NONE;
    assertTrue(autocompleter.getAutocompleter(mode) instanceof  NoneAutocompleter);

    mode = SyntaxType.YAML;
    assertTrue(autocompleter.getAutocompleter(mode) instanceof  NoneAutocompleter);
View Full Code Here

Examples of com.google.collide.codemirror2.SyntaxType

  }

  public void testAllSyntaxTypesResolvable() {
    SyntaxType[] types = SyntaxType.values();
    for (int i = 0, l = types.length; i < l; i++) {
      SyntaxType syntaxType = types[i];
      try {
        LanguageHelperResolver.getHelper(syntaxType);
      } catch (Exception ex) {
        fail("Can't obtain helper for " + syntaxType);
      }
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.