universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
320 stars 26 forks source link

verilog, macro, return different prefix when capf grouped with other company-backend #151

Closed my2817 closed 3 months ago

my2817 commented 1 year ago

example code:

`define foo_bar 123
initial begin
   $display("macro=%d", `foo_ba);
end

company-backends :

(setq company-backends
              '((
                 company-capf
                 company-dabbrev-code
                 :separate)
                ))

when cursor goto the end of macro "foo_ba" at line 3,company-capf return prefix:"foo-ba",citre work well. But company-dabbrev-code return prefix "foo-ba", it doesn't work.

https://github.com/universal-ctags/ctags/pull/3653 is going to give macro a unique kind:define, maybe we can use this infomation.

AmaiKinono commented 3 months ago

Close as this is not Citre's problem.