Esempio n. 1
0
        public override Colorizer GetColorizer(IVsTextLines buffer)
        {
            NemerleColorizer colorizer;

            if (!_colorizers.TryGetValue(buffer, out colorizer))
            {
                colorizer = new NemerleColorizer(this, buffer, (NemerleScanner)GetScanner(buffer));

                _colorizers.Add(buffer, colorizer);
            }

            return(colorizer);
        }
Esempio n. 2
0
        public override Colorizer GetColorizer(IVsTextLines buffer)
        {
            NemerleColorizer colorizer;

            if (!_colorizers.TryGetValue(buffer, out colorizer))
            {
                colorizer = new NemerleColorizer(this, buffer, (NemerleScanner)GetScanner(buffer));

                _colorizers.Add(buffer, colorizer);
            }

            return colorizer;
        }