diff --git a/misc/scripts/makeosxtags.sh b/misc/scripts/makeosxtags.sh index dcb72f4768..1509eec6f9 100755 --- a/misc/scripts/makeosxtags.sh +++ b/misc/scripts/makeosxtags.sh @@ -3,6 +3,12 @@ create_tags osx osx_port=${1-carbon} +if [[ $osx_port = carbon ]]; then + ext=cpp +else + ext=mm +fi + ctags --totals --c++-kinds=+px --language-force=c++ \ -f osx_$osx_port.tags \ -I @misc/scripts/ctags.ignore \ @@ -12,4 +18,4 @@ ctags --totals --c++-kinds=+px --language-force=c++ \ include/wx/osx/$osx_port/*.h \ include/wx/osx/$osx_port/private/*.h \ src/osx/core/*.cpp \ - src/osx/$osx_port/*.{cpp,mm} + src/osx/$osx_port/*.$ext