Integer division operator is not recognised by Visual Basic highlighter
Original Reporter info from Mantis: CryBorg
-
Reporter name: Nyitrai Péter
Original Reporter info from Mantis: CryBorg
- Reporter name: Nyitrai Péter
Description:
In VB, there is a \ (backslash) Operator, which -according to MS-:
"Divides two numbers and returns an integer result."
(expression1 \ expression2)
You can verify this here:
http://msdn.microsoft.com/en-us/library/0e16fywh.aspx
But this operator is unknown for SynHighlighterVB.
I've modified SynHighlighterVB.pas to recognise blackslash as an operator. The modified file is in the attachment.
I've simply inserted this code to line 1012:
" '': fProcTable[I] := @SymbolProc; {To highlight backslash which means integer division.} ".
Additional information:
The fixed SynHighlighterVB unit is in the attachment.
An appropriate "ticket" has been sent to SynEdit community at SourceForge.
Mantis conversion info:
- Mantis ID: 27247
- Version: 1.2.6
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 47350 (#e79a9d4c)
- Target version: 1.4