// Path: src/cmake/filetypes/CMakeFile.java
// public class CMakeFile extends PsiFileBase{
//     public static CMakeFile create(@NotNull FileViewProvider viewProvider) {
//         return new CMakeFile(viewProvider);
//     }
//     protected CMakeFile(@NotNull FileViewProvider viewProvider) {
//         super(viewProvider, CMakeLanguage.INSTANCE);
//     }
// 
//     @NotNull
//     @Override
//     public FileType getFileType() {
//         return CMakeFileType.INSTANCE;
//     }
// 
//     @Override
//     public String toString() {
//         return "CMake";
//     }
// 
//     @Override
//     public Icon getIcon(int flags) {
//         return super.getIcon(flags);
//     }
// }
// 
// Path: src/cmake/global/CMakeLanguage.java
// public class CMakeLanguage extends Language {
//     public static final CMakeLanguage INSTANCE = new CMakeLanguage();
// 
//     private CMakeLanguage() {
//         super("CMake");
//     }
// }


import cmake.filetypes.CMakeFile;
import cmake.global.CMakeLanguage;
import com.intellij.lang.ASTNode;
import com.intellij.lang.Language;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.project.Project;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IFileElementType;
import com.intellij.psi.tree.TokenSet;
import org.jetbrains.annotations.NotNull;
import cmake.psi.CMakeTypes;
package cmake.parsing;


/**
 * Created by alex on 12/21/14.
 */
public class CMakeParserDefinition implements ParserDefinition {
    public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE);
    public static final TokenSet COMMENTS = TokenSet.create(CMakeTypes.LINE_COMMENT,
            CMakeTypes.BRACKET_COMMENT);
    public static final TokenSet STRINGS = TokenSet.create(CMakeTypes.QUOTED_ARGUMENT);
// Path: src/cmake/filetypes/CMakeFile.java
// public class CMakeFile extends PsiFileBase{
//     public static CMakeFile create(@NotNull FileViewProvider viewProvider) {
//         return new CMakeFile(viewProvider);
//     }
//     protected CMakeFile(@NotNull FileViewProvider viewProvider) {
//         super(viewProvider, CMakeLanguage.INSTANCE);
//     }
// 
//     @NotNull
//     @Override
//     public FileType getFileType() {
//         return CMakeFileType.INSTANCE;
//     }
// 
//     @Override
//     public String toString() {
//         return "CMake";
//     }
// 
//     @Override
//     public Icon getIcon(int flags) {
//         return super.getIcon(flags);
//     }
// }
// 
// Path: src/cmake/global/CMakeLanguage.java
// public class CMakeLanguage extends Language {
//     public static final CMakeLanguage INSTANCE = new CMakeLanguage();
// 
//     private CMakeLanguage() {
//         super("CMake");
//     }
// }


// Path: src/cmake/parsing/CMakeParserDefinition.java
import cmake.filetypes.CMakeFile;
import cmake.global.CMakeLanguage;
import com.intellij.lang.ASTNode;
import com.intellij.lang.Language;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.project.Project;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IFileElementType;
import com.intellij.psi.tree.TokenSet;
import org.jetbrains.annotations.NotNull;
import cmake.psi.CMakeTypes;

package cmake.parsing;


/**
 * Created by alex on 12/21/14.
 */
public class CMakeParserDefinition implements ParserDefinition {
    public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE);
    public static final TokenSet COMMENTS = TokenSet.create(CMakeTypes.LINE_COMMENT,
            CMakeTypes.BRACKET_COMMENT);
    public static final TokenSet STRINGS = TokenSet.create(CMakeTypes.QUOTED_ARGUMENT);
    public static final IFileElementType FILE = new IFileElementType(Language.<CMakeLanguage>findInstance(CMakeLanguage.class));