Skip to content

Syntax highlighting breaks when function body not surrounded with {}? #8

@olalonde

Description

@olalonde

I'm using this following plugins:

Plugin 'othree/yajs.vim'
Plugin 'othree/es.next.syntax.vim'
Plugin 'mxw/vim-jsx'

syntax-highlight

Sometimes when returning an expression surrounded with (``), the syntax highlighting breaks, e.g.:

const preset = (context, { loose } = {}) => ({
  plugins: [
    ...es2015,
    ...es2016,
    ...es2017,
  ].map((plugin) => [plugin, { loose }]),
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions