Class Ek9LanguageWords

java.lang.Object
org.ek9lang.lsp.Ek9LanguageWords

final class Ek9LanguageWords extends Object
Designed for us in the LSP only as a set of words that are part of the language. But there is also some descriptive text that is provided with the work. These can be used for code completion or for the hover functionality. This might seem like a duplication of what ANTLR has generated, but we need to supply much more information around each word. This is to really help developers get started even very new developers. In the future might make this functional optional as you get used to it, you might now want the hover/help. This only deals with simple single word completion and simple cases.
  • Constructor Details

    • Ek9LanguageWords

      Ek9LanguageWords()
  • Method Details

    • getAllKeyWords

      List<String> getAllKeyWords()
    • exactMatch

      Get only an exact match for this search.
    • fuzzyMatch

      public List<String> fuzzyMatch(TokenResult search)
      Typically used for completion, where string is partial. Receive a TokenResults, so we can also see position in the line. This will affect the search results.