EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     Comment marker starts comment even from inside string
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Flint
Posted on: 6/4/2008 1:46 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Comment marker starts comment even from inside string
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.
Yutaka
Posted on: 6/9/2008 2:23 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Comment marker starts comment even from inside string
Quote:

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?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Flint
Posted on: 6/10/2008 12:55 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Re: Comment marker starts comment even from inside string
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.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文