Subject: | Objective-C module fails with an error when it hits keywords |
The Objective C module has checks in the form:
if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay',
'Keyword')) {
...
and
if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Data Type')) {
...
These don't appear to work - they result in the template looking for a
'Keyword' or 'Data Type' callback. From examination of the C colourer
module, I believe that there should be an extra 0 parameter before the
'undef', ie:
if ($self->testKeyword($text, 'keywords', 0, 0, undef, 0, '#stay',
'Keyword')) {
...
and
if ($self->testKeyword($text, 'types', 0, 0, undef, 0, '#stay', 'Data
Type')) {
...
Having made this change locally the Objective C files are now coloured
correctly here.
Also Objective C files aren't in the list of .m files in Kate.pm. These
could be added as well, as Objective C files are becoming more common.