Changeset 681 in dev for trunk/ab5.0/abdev/abdev/Replace.cpp
- Timestamp:
- Jul 12, 2008, 9:23:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/Replace.cpp
r655 r681 51 51 52 52 //予約語(青色) 53 BOOL bResult=0;54 if(DocType==WNDTYPE_BASIC) {55 i2=IsBasicReservedWord(pTemp);56 bResult=IsManagementCommand(i2);57 } 58 else if(DocType==WNDTYPE_HTML) bResult=IsHtmlReservedWord(pTemp);59 60 if( bResult){53 bool result = false; 54 if(DocType==WNDTYPE_BASIC) 55 { 56 result = ActiveBasic::IDE::Program::ablang->IsExistKeyword( pTemp ); 57 } 58 else if(DocType==WNDTYPE_HTML) result=IsHtmlReservedWord(pTemp); 59 60 if(result){ 61 61 for(i2=cr2.cpMin;i2<cr2.cpMax;i2++){ 62 62 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i2]=tci.rgbStatement; … … 64 64 } 65 65 } 66 if(IsStr|| pBuf[i]=='\"'&&IsStr==0){66 if(IsStr||ActiveBasic::IDE::Program::ablang->IsQuoteMark( pBuf[i] )&&IsStr==0){ 67 67 //文字列カラー(""で囲まれる範囲) 68 68 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbString; 69 69 } 70 70 if(pBuf[i]=='\0') break; 71 if(pBuf[i]=='\"') IsStr^=1; 71 if( ActiveBasic::IDE::Program::ablang->IsQuoteMark( pBuf[i] ) ) 72 { 73 IsStr^=1; 74 } 72 75 if(pBuf[i]=='\r'&&pBuf[i+1]=='\n'){ 73 76 i++;
Note:
See TracChangeset
for help on using the changeset viewer.