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"));
    }

}

@@ -581,16 +581,28 @@
 %22, %22let%22
+, %22external%22
 ));%0A    
@@ -727,16 +727,28 @@
 , %22let%22,
+ %22external%22,
  %22match%22

add external in keyword contribution