public SyntaxDefinition(string syntaxId)
        {
            ArgumentValidator.ThrowIfNullOrEmpty(syntaxId, "syntaxId");

            this.m_syntaxId = syntaxId;
            this.m_allDistinctSetsOfItems = new List <SetOfSyntaxItems>(4);
            this.GroupsByName             = new Dictionary <string, Group>();
            this.m_clustersByName         = new Dictionary <string, Cluster>();
            this.m_keywordChars           = new bool[256];
            this.m_cntAllSyntaxItems      = 0;
            this.PossibleHighlightModes   = new List <HighlightMode>(30);

            VimCharacterList.AddCharacters(this.m_keywordChars, VimCharacterList.StandardKeywordCharacters);

            this.m_patternsWithMatchGroup = new List <KeyValuePair <Pattern, Group> >();

            this.m_syntaxContexts = new List <SyntaxContext>(2);
            this.m_syntaxContexts.Add(new SyntaxContext(this, this.m_syntaxId));
        }
 public void SetKeywordChars(string vimCharList)
 {
     this.m_keywordChars = new bool[256];
     VimCharacterList.AddCharacters(this.m_keywordChars, vimCharList);
 }
 public void AddKeywordChars(string vimCharList)
 {
     VimCharacterList.AddCharacters(this.m_keywordChars, vimCharList);
 }