Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1246: namespace coloring bug
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Aug 13 2004 :  4:40:55 PM  Show Profile
When specifying a classname with its namespace like "myspace::myclass" it is correctly colored. When giving it a global scope like "::myspace::myclass" the classname is black and unrecognized.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 16 2004 :  12:54:39 PM  Show Profile
using .NET 2003 and VAX 1246
in a .h i added:

namespace feline {
    class test_colour
    {
    public:
        const char *getColour() const;
        void setColour(const char *colour);
    protected:
        char *m_pszColour;
    };
}

and then into the matching cpp file i added:


    feline::test_colour foo;
    ::feline::test_colour bar;

i have the class name coloured correctly on both lines.

i will try on .NET 2002 tonight when i get home.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Aug 16 2004 :  1:29:20 PM  Show Profile
Seems that it happens only when the scope is in the same namespace. Like:
namespace feline {
    class test_colour
    {
    public:
        const char *getColour() const;
        void setColour(const char *colour);
    protected:
        char *m_pszColour;
    };
 class test
 {
  public:
    test(const ::feline::test_colour& color);
 };
}

At least I see it like that. Using it outside the scope it seems fine.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 16 2004 :  4:32:37 PM  Show Profile
using .NET 2002 and VAX 1246 the colouring is correct with both examples.

i tried your example first, and there was a problem with the colouring for perhaps 1 second, until VAX finished parsing the code. since then it has been fine.

i have placed your example into a C++ .h file. i have not declared any other namespace's in this project. does this go wrong for you in a simple project?

i will test your example on .NET 2003 tomorrow, at work.

zen is the art of being at one with the two'ness

Edited by - feline on Aug 16 2004 4:33:30 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 17 2004 :  07:11:45 AM  Show Profile
Uniwares, your example is coloured correctly on .NET 2003 with VAX 1246 as well.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Aug 24 2004 :  9:31:33 PM  Show Profile
Not for me unfortunately...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 25 2004 :  5:09:07 PM  Show Profile
using .NET 2002 and VAX 1246 i have just created a new win32 console application / project.

i loaded stdafx.h, and at the bottom of this 13 line .h file i added your example:

namespace feline {
    class test_colour
    {
    public:
        const char *getColour() const;
        void setColour(const char *colour);
    protected:
        char *m_pszColour;
    };
 class test
 {
  public:
    test(const ::feline::test_colour& color);
 };
}|


at first there was no VAX syntax highlighting. as soon as i pressed enter to move the caret onto a new line VAX applied syntax highlighting to this new block, showing the correct colouring for "::feline::test_colour"

this is the only thing i have done in this project.

do you have the time to try this quick test? if this works for you, then it suggests there is something else in your projects confusing VAX. if it doesn't work for you, then we can try and find what is different between your machine and mine.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000