On 08/03/09 17:11, cadabras wrote:
>> If I'm understanding you correctly, your workplace will permit you to
>> submit some of your source code here as long as you have properly
>> "sanitized" it to remove confidential information.  For example, the
>> phrase "My Company Name" would become "AA AAAAAAA AAAA".
> Yes, you are, but I did not replace only strings like "My Company
> Name", but also strings like
> "class MyClass : public MyMotherClass" with
> "AAAAA AAAAAAA : AAAAAA AAAAAAAAAAAAA"
>
>> It's best to reduce the size of your source code to the smallest
>> possible example that demonstrates the bug.
> My file is large and I cannot reduce it very much because the problem
> occurs only with files with big c/c++ comments.

Theeeen it could be a problem with how far the syntax analysis looks 
back to find the start of a syntax group. If

        :syn sync fromstart

makes the highlighting become right, then the above explanation is 
almost certainly right. If you don't want to incur the performance loss 
resulting from always analysing that file's syntax from the beginning, 
you could use either

        :syn sync ccomment

to analyze the syntax based on whether we're inside a C comment or not, or

        :syn sync minlines=500

or similar, with a high-enough minlines value -- higher than the number 
of lines in your longest C comment.


See ":help :syn-sync"

> My file is a typical bad designed c++ class: a lot of bad code and a
> lot of useless commented old code.
>
> I obviously can submit a good description to reproduce the problem.
>
> I could submit the file using rapidshare.de. Do you agree?

Best regards,
Tony.
-- 
Wi n0t trei a h0liday in Sweden thi yer?
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui