mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim - adding new syntax hl rule does not work inside method definitions in component class

lljr opened this issue · comments

Im trying to add these two new rules
hi MethodDot ctermfg=Red cterm=bold guifg=Red gui=bold
syn match MethodDot "\(\w\)\@<=\.\(\w\)\@="

in .vim/after/syntax/javascript.vim

The rule works in any *.js file but does not work inside method definitions in a React component. I have tried adding this rule in .vim/after/syntax/xml.vim in which I have another hl rule that works (for hl closing tags in React).

Could I get any help with this?

Issue fixed. Please ignore.