Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5872
    CaptainFlint
    Participant

    Here is the Perl code:

    print "Hello #World!n" if ($something);

    The “if ($something);” part is highlighted as comment, except for highlighting of the keyword “if” and special sign “$” takes precedence here. That is, highlighted line looks like following:

    print "Hello #World!n" if ($something);

    If I remove the sign “#” (a line comment character in Perl) from the string, the highlighting returns to normal:

    print "Hello World!n" if ($something);

    EmEditor 7.00.9 Pro, WinXP SP3.

    #5887
    Yutaka Emura
    Keymaster

    Flint wrote:
    Here is the Perl code:

    print "Hello #World!n" if ($something);

    The “if ($something);” part is highlighted as comment, except for highlighting of the keyword “if” and special sign “$” takes precedence here. That is, highlighted line looks like following:

    print "Hello #World!n" if ($something);

    If I remove the sign “#” (a line comment character in Perl) from the string, the highlighting returns to normal:

    print "Hello World!n" if ($something);

    EmEditor 7.00.9 Pro, WinXP SP3.

    This is strange. I cannot reproduce your problem.
    Can you try resettings all configurations or Perl configuration?

    #5890
    CaptainFlint
    Participant

    Yes, resetting fixed this. Now I remembered that I played a bit with manual comment highlighting (because of this problem, still unsolved), and my highlight rule remained from those experiments. Strange, that I did not notice it before…

    Sorry for the false alarm.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.