package org.logtalk.intellij;


import org.jetbrains.annotations.NotNull;

import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;

public class LogtalkFileTypeFactory extends FileTypeFactory {

    @Override
    public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "lgt");
        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, "pl");
        //fileTypeConsumer.consume(PrologFileType.INSTANCE, "pl");
    }

}

@@ -396,18 +396,159 @@
 ANCE, %22l
+o
 gt
+alk%22);%0A        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, %22lgt%22);%0A        fileTypeConsumer.consume(LogtalkFileType.INSTANCE, %22prolog
 %22);%0A    

Update IntelliJ IDEA support to also recognize `*.logtalk` and `*.prolog` file extensions