Пример #1
0
        public virtual void Create(ITextSearchService textSearchService, params string[] lines)
        {
            _textBuffer                = CreateTextBuffer(lines);
            _wordNavigator             = WordUtil.CreateTextStructureNavigator(WordKind.NormalWord, _textBuffer.ContentType);
            _globalSettings            = Vim.GlobalSettings;
            _globalSettings.Magic      = true;
            _globalSettings.IgnoreCase = true;
            _globalSettings.SmartCase  = false;

            _textSearch = textSearchService;
            _searchRaw  = new SearchService(_textSearch, _globalSettings);
            _search     = _searchRaw;
        }
Пример #2
0
 protected ITextStructureNavigator CreateTextStructureNavigator(ITextBuffer textBuffer, WordKind kind)
 {
     return(WordUtil.CreateTextStructureNavigator(kind, textBuffer.ContentType));
 }