emacsorphanage / helm-gtags

GNU GLOBAL helm interface
203 stars 32 forks source link

Cannot find tags start with '<' #154

Closed amosbird closed 8 years ago

amosbird commented 8 years ago

This issue happens when I try to jump to tags in a thrift file. I've customized gtags to generate thrift tags. Most symbols work just fine. However it cannot jump to tags when the symbol on cursor begins with a '<'. This won't happen in c++ or java mode. How can I debug this?

Failing case:

struct A {
  1: required set<B> bad
                  ^
}

Working case:

struct A {
  1: required set<  B> good
                    ^
}
syohex commented 8 years ago

Please check symbol table. I suppose it set < as symbol character. Please add following configuration or evaluate it and try again.

(modify-syntax-entry ?< ".") ;; Set '<' character as punctuation character
amosbird commented 8 years ago

It works. Thanks!