Skip to content

Bad syntax highlighting for function call in autocmd #14523

@ddickstein

Description

@ddickstein
  • nvim --version: v0.5.0-dev+1268-g02909d150

Steps to reproduce using nvim -u NORC

Create a file foo.vim and type the following:

augroup Foo
  autocmd WinEnter * call abs(0)
augroup END

Actual behaviour

The function abs is highlighted as an error.

Expected behaviour

The syntax highlighting should not report an error. This is a regression since Neovim 0.4.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    runtimefuntimevim-patchSee https://neovim.io/doc/user/dev_vimpatch.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions