Highlight Python function/method calls · Issue #283 · vim-polyglot/vim-polyglot · GitHub
Skip to content

Highlight Python function/method calls #283

Closed

Description

@silenc3r

It would be nice if function and method calls be highlighted by default as is done in most other editors.

It can be achieved with something like that:

    syntax match pythonFunction /\v([^[:cntrl:][:space:][:punct:][:digit:]]|_)([^[:cntrl:][:punct:][:space:]]|_)*\ze(\s?\()/

Here's how it looks like:

before
screenshot from 2018-03-16 11-59-46
after
screenshot from 2018-03-16 11-59-28

Activity

  1. CH-DanReif commented on May 10, 2018

    @CH-DanReif
    Contributor

    This belongs in https://github.com/vim-python/python-syntax . Once it's updated there, open an issue here and we'll rebuild and pull in the changed version. If @vim-python won't accept your update to make this change, the next step is to fork that repo, make the change in your fork, and then make a PR to change https://github.com/sheerun/vim-polyglot/blob/e2404449e4f961c5e6c0e2689078612b36d776c2/build#L220 .

    Either way, there's not much I can do about this at the moment, here.

  2. antoinemadec commented on Feb 26, 2020

    @antoinemadec

    @silenc3r @CH-DanReif , for info, this has been added in python-syntax after vim-python/python-syntax@6ce77d0

    More info in the pull request: vim-python/python-syntax#63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions