KT-688: Show kotlin keywords as auto completion in IDEA

This commit is contained in:
Nikolay Krasko
2011-11-30 18:33:37 +04:00
parent ce1718e518
commit 1e3c45e65c
10 changed files with 256 additions and 1 deletions
@@ -8,10 +8,16 @@ import org.jetbrains.annotations.NotNull;
public class JetKeywordToken extends JetToken {
/**
* Generate soft keyword (identifier that has a keyword meaning only in some contexts)
*/
public static JetKeywordToken keyword(String value) {
return new JetKeywordToken(value, false);
}
/**
* Generate keyword (identifier that has a keyword meaning in all possible contexts)
*/
public static JetKeywordToken softKeyword(String value) {
return new JetKeywordToken(value, true);
}
@@ -29,6 +35,7 @@ public class JetKeywordToken extends JetToken {
return myValue;
}
public boolean isSoft() {
return myIsSoft;
}