vim-erlang/vim-erlang-runtime

Use searchpair optimization only with my syntax file

hcs42 opened this issue · 0 comments

The searchpair function will work well only with syntax files that:

  • define erlangString etc. the way that is expected by the indentation script; and
  • contain the syntax synchronization line.

The safest solution is to define a global variable in my syntax file and use the searchpair function in the indentation script only when that variable is present.