[scala-tools] Scala plug-in for Intellij, XML, and syntax highlighting

View: New views
2 Messages — Rating Filter:   Alert me  

[scala-tools] Scala plug-in for Intellij, XML, and syntax highlighting

by Anthony B. Coates (Londata) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.  I'm using the latest Scala plugin for Intellij 8.1.3.  Is there a  
known problem with syntax highlighting in code that has inline XML?  I  
find that if I have inline XML, red error underlines appears in much of  
the rest of the code following it.  In many cases, I have found that I can  
work around it by putting a /* */ comment on the line after the end of the  
XML.  Is this a known issue, or something I should provide more details  
for.  What is the best way to report such things - via this list?  Thanks  
a lot in advance,

Cheers, Tony.
--
Anthony B. Coates
Director and CTO
Londata Ltd
abcoates@...
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Skype: abcoates
Data standards participant: genericode, ISO 20022 (ISO 15022 XML),  
UN/CEFACT, MDDL, FpML, UBL.
http://www.londata.com/

Re: [scala-tools] Scala plug-in for Intellij, XML, and syntax highlighting

by Ilya Sergey (JetBrains) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Tony.

Sorry for the late answer. Yes, XML highlighting in a presence of comments is a bug pin and issue you've mentioned is a known one. Let me describe briefly how things work in Scala plugin for IDEA. In fact, we have three lexer - the first on strips comments, the second one recognizes XML by maintaining an appropriate stack and the last one fetches Scala tokens themselves.
In the way these lexers are implemented now there might be some problems when comments and XML tags stay close. In near-term future we're going to change this design which will allow to avoid such a nasty errors.
Sorry for the inconvenience.

With best regards,
Ilya Sergey

2009/9/12 Anthony B. Coates (Londata) <abcoates@...>
Hi.  I'm using the latest Scala plugin for Intellij 8.1.3.  Is there a known problem with syntax highlighting in code that has inline XML?  I find that if I have inline XML, red error underlines appears in much of the rest of the code following it.  In many cases, I have found that I can work around it by putting a /* */ comment on the line after the end of the XML.  Is this a known issue, or something I should provide more details for.  What is the best way to report such things - via this list?  Thanks a lot in advance,

Cheers, Tony.
--
Anthony B. Coates
Director and CTO
Londata Ltd
abcoates@...
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Skype: abcoates
Data standards participant: genericode, ISO 20022 (ISO 15022 XML), UN/CEFACT, MDDL, FpML, UBL.
http://www.londata.com/

!DSPAM:52,4aac04c7299871995110349!