mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
29 lines
795 B
C#
29 lines
795 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Microsoft.VisualStudio;
|
|
using Microsoft.VisualStudio.Package;
|
|
using Microsoft.VisualStudio.TextManager.Interop;
|
|
using Microsoft.VisualStudio.OLE.Interop;
|
|
|
|
namespace Cosmos.VS.Package.XSharp {
|
|
internal class Scanner : IScanner {
|
|
private IVsTextBuffer m_buffer;
|
|
string m_source;
|
|
|
|
public Scanner(IVsTextBuffer buffer) {
|
|
m_buffer = buffer;
|
|
}
|
|
|
|
bool IScanner.ScanTokenAndProvideInfoAboutIt(TokenInfo tokenInfo, ref int state) {
|
|
tokenInfo.Type = TokenType.Unknown;
|
|
tokenInfo.Color = TokenColor.Text;
|
|
return true;
|
|
}
|
|
|
|
void IScanner.SetSource(string source, int offset) {
|
|
m_source = source.Substring(offset);
|
|
}
|
|
}
|
|
}
|