Changeset 681 in dev for trunk/ab5.0/abdev/abdev/TextEditor.cpp
- Timestamp:
- Jul 12, 2008, 9:23:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/TextEditor.cpp
r629 r681 109 109 } 110 110 111 BOOL bResult=0;112 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC) {113 i3=IsBasicReservedWord(str);114 bResult=IsManagementCommand(i3);111 bool result = false; 112 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC) 113 { 114 result = ActiveBasic::IDE::Program::ablang->IsExistKeyword( str ); 115 115 } 116 116 else if(MdiInfo[WndNum]->DocType==WNDTYPE_HTML){ 117 bResult=IsHtmlReservedWord(str);118 } 119 120 if( bResult){117 result=IsHtmlReservedWord(str); 118 } 119 120 if(result){ 121 121 for(i3=i-i2;i3<i;i3++){ 122 122 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i3]=tci.rgbStatement; … … 132 132 } 133 133 else{ 134 if(IsStr||pBuf[i]=='\"'&&IsStr==0){ 134 if( IsStr || ActiveBasic::IDE::Program::ablang->IsQuoteMark( pBuf[i] ) && IsStr == 0 ) 135 { 135 136 //文字列カラー(""で囲まれる範囲) 136 137 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbString; … … 142 143 } 143 144 144 if(pBuf[i]=='\"') IsStr^=1; 145 if( ActiveBasic::IDE::Program::ablang->IsQuoteMark( pBuf[i] ) ) 146 { 147 IsStr^=1; 148 } 145 149 146 150 if(pBuf[i]=='\r'&&pBuf[i+1]=='\n'){
Note:
See TracChangeset
for help on using the changeset viewer.