codetools: do not beautify identifiers in comment, bug #16209

git-svn-id: trunk@24664 -
This commit is contained in:
mattias 2010-04-17 15:05:45 +00:00
parent 2d1eaa0ddf
commit 5dafb4b21e

View File

@ -1062,7 +1062,8 @@ begin
//DebugLn('[TBeautifyCodeOptions.AddAtom] NewAtom=',NewAtom,' s="',s,'"');
// beautify identifier
if IsIdentStartChar[NewAtom[1]] then begin
if IsIdentStartChar[NewAtom[1]]
and (CommentLvl = 0) then begin
if AllKeyWords.DoItCaseInsensitive(NewAtom) then
NewAtom:=BeautifyWord(NewAtom,KeyWordPolicy)
else