|
229 | 229 | </context>
|
230 | 230 | <context attribute="String" lineEndContext="#stay" name="String">
|
231 | 231 | <LineContinue attribute="String" context="#stay"/>
|
232 |
| - <HlCStringChar attribute="String Char" context="#stay"/> |
| 232 | + <DetectChar char="\" attribute="CharEscape" context="CharEscape"/> |
233 | 233 | <DetectChar attribute="String" context="#pop" char="""/>
|
234 | 234 | </context>
|
235 | 235 | <context attribute="Character" lineEndContext="#pop" name="Character">
|
236 |
| - <HlCStringChar attribute="Character" context="#stay"/> |
| 236 | + <DetectChar char="\" attribute="CharEscape" context="CharEscape"/> |
237 | 237 | <DetectChar attribute="Character" context="#pop" char="'"/>
|
238 | 238 | </context>
|
| 239 | + <context attribute="CharEscape" lineEndContext="#pop" name="CharEscape"> |
| 240 | + <AnyChar String="nrt\'"" attribute="CharEscape" context="#pop"/> |
| 241 | + <RegExpr String="x[0-9a-fA-F]{2}" attribute="CharEscape" context="#pop"/> |
| 242 | + <RegExpr String="u[0-9a-fA-F]{4}" attribute="CharEscape" context="#pop"/> |
| 243 | + <RegExpr String="U[0-9a-fA-F]{8}" attribute="CharEscape" context="#pop"/> |
| 244 | + <RegExpr String="." attribute="Error" context="#pop"/> |
| 245 | + </context> |
239 | 246 | <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
|
240 | 247 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
241 | 248 | <DetectSpaces/>
|
|
256 | 263 | <itemData name="Scope" defStyleNum="dsNormal" color="#0055AA"/>
|
257 | 264 | <itemData name="Number" defStyleNum="dsDecVal" color="#116644"/>
|
258 | 265 | <itemData name="String" defStyleNum="dsString" color="#FF0000"/>
|
259 |
| - <itemData name="String Char" defStyleNum="dsChar" color="#FF0000"/> |
| 266 | + <itemData name="CharEscape" defStyleNum="dsChar" color="#FF0000" bold="1"/> |
260 | 267 | <itemData name="Character" defStyleNum="dsChar" color="#FF0000"/>
|
261 | 268 | <itemData name="Macro" defStyleNum="dsOthers"/>
|
262 | 269 | <itemData name="Attribute" defStyleNum="dsOthers"/>
|
263 | 270 | <itemData name="Lifetime" defStyleNum="dsOthers" bold="1"/>
|
| 271 | + <itemData name="Error" defStyleNum="dsError"/> |
264 | 272 | </itemDatas>
|
265 | 273 | </highlighting>
|
266 | 274 | <general>
|
|
0 commit comments