-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.4, 2.8.2, 2.9
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-48855_master -
If I run the ctags command listed in tags.txt I get some warnings:
$ ctags -R --languages=php --exclude="CVS" --php-kinds=f \
|
> --regex-PHP='/abstract class ([^ ]*)/\1/c/' \
|
> --regex-PHP='/interface ([^ ]*)/\1/c/' \
|
> --regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'
|
ctags: Warning: calendar/externallib.php:103: null expansion of name pattern "\2"
|
ctags: Warning: calendar/externallib.php:275: null expansion of name pattern "\2"
|
ctags: Warning: calendar/externallib.php:400: null expansion of name pattern "\2"
|
ctags: Warning: mod/quiz/report/statistics/statistics_table.php:390: null expansion of name pattern "\2"
|
This seems to be because of extra spaces between the 'function' keyword and the function name. While ideally the code would be consistent, it is pretty easy to make the tags command a bit more robust to whitespace differences which avoids the warnings.
See attached patch.