Author Topic: Block matching only highlights () but not {} or []  (Read 7740 times)

ishvek

  • Community Member
  • Posts: 5
  • Hero Points: 0
Block matching only highlights () but not {} or []
« on: October 11, 2007, 07:57:03 PM »
I don't remember if this was always the case or if I changed something and it happened but I cannot see matching braces {} (or []) as I type, only parenthesis ().. I am at loss at how to fix it. The begin/end pairs tab for C/C++ is disabled (as it is should be I suppose, but that means I cannot customize it to fix it).

I do see {} and [] in punctuations but removing them from there does not help either. Also, putting () in punctuations does not make a difference, so that's probably unrelated -- but it's the only "pattern" I found.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Block matching only highlights () but not {} or []
« Reply #1 on: October 11, 2007, 08:19:17 PM »
Check your 'def_pmatch_chars' setting e.g. on cmdline:
'set-var def_pmatch_chars' which should be set so sth. like that: '()[]{}'
HS2

PS: Block match hiliting is independent of the colorizer.
« Last Edit: October 11, 2007, 08:26:11 PM by hs2 »

ishvek

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Block matching only highlights () but not {} or []
« Reply #2 on: October 11, 2007, 08:33:09 PM »
Check your 'def_pmatch_chars' setting e.g. on cmdline:
'set-var def_pmatch_chars' which should be set so sth. like that: '()[]{}'
HS2

That shows up as ()[]{}, so it seems something else is wrong?

Thanks





hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Block matching only highlights () but not {} or []
« Reply #3 on: October 11, 2007, 09:30:01 PM »
Strange .. However, there are some more pmatch config vars. See my (working) setings in '()'.
Quote
def_pmatch_style (0)
def_pmatch_style2 (1)
def_pmatch_max_diff (80000)
Hope it helps,
HS2

ishvek

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Block matching only highlights () but not {} or []
« Reply #4 on: October 11, 2007, 09:41:08 PM »
Strange .. However, there are some more pmatch config vars. See my (working) setings in '()'.
Quote
def_pmatch_style (0)
def_pmatch_style2 (1)
def_pmatch_max_diff (80000)
Hope it helps,
HS2

Exactly what I have.. :(

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Block matching only highlights () but not {} or []
« Reply #5 on: October 11, 2007, 09:50:36 PM »
Is 'find-matching-paren' working at least ?
If this is the case there must be sth. wrong with just the hiliting.
Wait .. there are even more configs to check (ripped from my vusrdefs.e) ;)

Quote
  def_match_paren_idle=50;
  def_highlight_matching_parens=1;
  def_highlight_paren_under_cursor=1;

HS2

ishvek

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Block matching only highlights () but not {} or []
« Reply #6 on: October 11, 2007, 09:59:22 PM »
Again, all those vars are the same.. and find-matching-paren works!

If I delete my vslick.stu and restart vs, that does the trick.. BUT I fear I may lose all the customization that I have done over the past few months if I do this.. Is my fear unfounded? OR Does this give you any hints about how to fix it less drastically?

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Block matching only highlights () but not {} or []
« Reply #7 on: October 11, 2007, 10:10:52 PM »
Last idea: since hiliting uses timers check your '_use_timers' config var. (see http://community.slickedit.com/index.php?topic=833.msg4337#msg4337 for details).
Otherwise I afraid you'd need to remove vslick.stu.
But almost every (all ?) changes are stored in various *.e *.ini etc files. So you shouln't loose too much of your customizations.

HS2

ishvek

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: Block matching only highlights () but not {} or []
« Reply #8 on: October 11, 2007, 10:19:30 PM »

_use_timers was indeed set to 0. and setting it to 1 fixed it! The weird thing is that it worked just fine for ()..

Thanks a lot for your help!!

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Block matching only highlights () but not {} or []
« Reply #9 on: October 11, 2007, 10:31:04 PM »
Quote
The weird thing is that it worked just fine for ()
Indeed... HS2