TSynAnySyn Keyword Omissions
Original Reporter info from Mantis: Robert Kosek
-
Reporter name: Robert K
Original Reporter info from Mantis: Robert Kosek
- Reporter name: Robert K
Description:
The basic trouble is that what appears to be a binary search for keywords, constants, and objects has a failure in it. Here is a screenshot of a sample program: http://img101.imageshack.us/img101/8969/uglysyneditdh1.png
Notice that "end_random" should be a keyword, but isn't highlighted. That "PINE_FOREST" should be an object, but is omitted as well. This is a small sample.
Culprit methods are: TSynAnySyn.IsKeyword; TSynAnySyn.IsConstant; TSynAnySyn.IsObject.
The simple fix is your normal for-loop, which doesn't appear to impair speed any. It also highlights the words omitted by the strange loop construct you will find in these methods.
A patched (functional) unit can be downloaded here: http://files.thewickedflea.com/index.php?p=view&f=5
Mantis conversion info:
- Mantis ID: 10913
- Version: 0.9.24
- Fixed in version: 0.9.25 (SVN)
- Fixed in revision: 14384 (#e6f5b453)
- Target version: 1.0.0
- LazTarget: 1.0