Beispiel #1
0
 public void SetCompletionInfos(CompletionDB cdb, string[] completiontrg, string[] completiontrgtolower, int line, int start, int end)
 {
     _cdb             = cdb;
     _targets         = completiontrgtolower;
     _origcasetargets = completiontrg;
     _line            = line;
     _start           = start;
     _end             = end;
 }
Beispiel #2
0
        // Implementation of IVsProvideColorableItems
        public SQLanguageService(SQVSProjectPackage pkg)
        {
            _package = pkg;
            if (_completiondb == null)
            {
                _completiondb = new CompletionDB(squirrelVersion);
            }

            colorableItems = new ColorableItem[] {
                // The first 6 items in this list MUST be these default items.
                new SquirrelColorableItem("Keyword", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("Comment", COLORINDEX.CI_DARKGREEN, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("Identifier", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("String", COLORINDEX.CI_MAROON, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("Number", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("Text", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK),
                new SquirrelColorableItem("SQ - Attribute", COLORINDEX.CI_DARKGRAY, COLORINDEX.CI_USERTEXT_BK)
            };
        }