universal-ctags / homebrew-universal-ctags

Homebrew Tap for Universal Ctags on OSX
https://ctags.io
GNU General Public License v2.0
326 stars 19 forks source link

"repetition-operator operand invalid" warning when run with no options. #18

Closed thoughton closed 7 years ago

thoughton commented 7 years ago

Running with no extra command line options gives me the following warning:

$ ctags
ctags: Warning: regcomp ^[  ]*+([A-Za-z0-9_]+)(;|\([^)]*:[^)]*\)): repetition-operator operand invalid

Is this anything to worry about?

I'm installed from HEAD and up-to-date:

$ brew info universal-ctags
.../homebrew/Cellar/universal-ctags/HEAD-e1dcb48 (7 files, 629.7K) *
  Built from source on 2016-12-29 at 21:37:06

I'm running on Mac OS X 10.9.5.

Thanks!

KazuakiM commented 7 years ago

I think it's a matter of setting. You use empty ~/.ctags and try to solve the error.

thoughton commented 7 years ago

You're right, I had a ~/.ctags file, likely from an old (not "universal-") version of ctags, just containing some Haxe language definitions. I no longer need those definitions, and deleting that file solved the problem.

Thanks for the help!

masatake commented 7 years ago

(I will make ctags load ~/.u-ctags instead of ~/.ctags.)