Skip to content

ruby 1.9 style hash does not highlight { in matchparen.vim #452

Description

@yamam

Steps to reproduce

vim -u vimrc min.rb
nvim --clean min.rb

vimrc

se nocp
syntax on
filetype plugin indent on

min.rb

{a: 0}

Moving the cursor to the } position does not highlight {.

If you comment out the following line in line 471 of ruby.vim, the problem will no longer occur.

$VIMRUNTIME/syntax/ruby.vim

syn match rubySymbol "[[:space:],{(]\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:[[:space:],;]\@="hs=s+1,he=e-1

Environment

NVIM v0.8.0-dev-845-gf38c05bec
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Aug 9 2022 21:41:53)

Activity

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