universal-ctags / ctags

A maintained ctags implementation
https://ctags.io
GNU General Public License v2.0
6.57k stars 627 forks source link

Python: extract SimpleNamespace #3912

Closed masatake closed 10 months ago

masatake commented 10 months ago
SYNC_POLICIES = SimpleNamespace(
    ADDITIVE="additive",
    MIRROR_COMPLETE="mirror_complete",
    MIRROR_CONTENT_ONLY="mirror_content_only",
)

ADDITIVE, MIRROR_COMPLETE, and MIRROR_CONTENT_ONLY should be tagged. Ideally, they have SYNC_POLICYES as their scope.

masatake commented 10 months ago

SYNC_POLICIES should be tagged as a namespace/I. ADDTIVE should be tagged as a unknown/Y or variable/v. A namespace may have a variable or function. But, as a first step, unknown/Y may be enough.