[patch] CodeTools/SourceChanger: avoid change of text/identifiers/kewords in comments
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Description:
=== (+2,-2) components/codetools/sourcechanger.pas ===
@@ -1062,7 +1062,7 @@
//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
Mantis conversion info:
-
Mantis ID: 16209
-
Version: 0.9.29 (SVN)
-
Fixed in version: 0.9.30
-
Target version: 0.9.30