package com.reason.ide.insight;

import com.intellij.codeInsight.completion.CompletionType;
import com.intellij.openapi.project.DumbAware;
import com.reason.ide.insight.provider.KeywordCompletionProvider;
import org.jetbrains.annotations.NotNull;

abstract class KeywordCompletionContributor extends com.intellij.codeInsight.completion.CompletionContributor implements DumbAware {

    KeywordCompletionContributor(@NotNull CompletionPatterns patterns) {
        extend(CompletionType.BASIC, patterns.declaration(), new KeywordCompletionProvider("module", "open", "include", "type", "let"));
        extend(CompletionType.BASIC, patterns.keyword(), new KeywordCompletionProvider("module", "open", "include", "type", "let", "match"));
    }

}

package com.reason.ide.insight;

import com.intellij.codeInsight.completion.CompletionType;
import com.intellij.openapi.project.DumbAware;
import com.reason.ide.insight.provider.KeywordCompletionProvider;
import org.jetbrains.annotations.NotNull;

abstract class KeywordCompletionContributor extends com.intellij.codeInsight.completion.CompletionContributor implements DumbAware {

    KeywordCompletionContributor(@NotNull CompletionPatterns patterns) {
        extend(CompletionType.BASIC, patterns.declaration(), new KeywordCompletionProvider("module", "open", "include", "type", "let", "external"));
        extend(CompletionType.BASIC, patterns.keyword(), new KeywordCompletionProvider("module", "open", "include", "type", "let", "external", "match"));
    }

}

add external in keyword contribution