Bug 3349 - Wrong syntax highlight for .aspx </script> tag
Summary: Wrong syntax highlight for .aspx </script> tag
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Linux
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-02-10 04:11 UTC by Lex
Modified: 2012-02-22 04:52 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Lex 2012-02-10 04:11:16 UTC
There is some bug across syntax highlight for <script> </script>. The closing tag </script> is not highlighting and sometimes there is an exception. I'm using version 2.8.6.4.

System.Exception: Rule mode:0 not found in [Span: Color=, Rule=mode:0, Begin=Mono.TextEditor.Highlighting.Regex, End=Mono.TextEditor.Highlighting.Regex, Escape=not set, stopAtEol=False]
  at Mono.TextEditor.Highlighting.SyntaxMode+ChunkParser.FoundSpanBegin (Mono.TextEditor.Highlighting.Span span, Int32 offset, Int32 length) [0x00177] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs:596 
  at MonoDevelop.AspNet.AspNetSyntaxMode+ASPNetSpanParser.ScanSpan (System.Int32& i) [0x0023e] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/AspNetSyntaxMode.cs:178 
  at Mono.TextEditor.Highlighting.SyntaxMode+SpanParser.ParseSpans (Int32 offset, Int32 length) [0x0010c] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs:465 
  at Mono.TextEditor.Highlighting.SyntaxMode+ChunkParser.GetChunks (Int32 offset, Int32 length) [0x00062] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs:669 
  at Mono.TextEditor.Highlighting.SyntaxMode.GetChunks (Mono.TextEditor.Document doc, Mono.TextEditor.Highlighting.ColorSheme style, Mono.TextEditor.LineSegment line, Int32 offset, Int32 length) [0x00017] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs:78 
  at Mono.TextEditor.TextViewMargin.GetCachedChunks (Mono.TextEditor.Highlighting.SyntaxMode mode, Mono.TextEditor.Document doc, Mono.TextEditor.Highlighting.ColorSheme style, Mono.TextEditor.LineSegment line, Int32 offset, Int32 length) [0x0003c] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs:863 
  at Mono.TextEditor.TextViewMargin.ColumnToX (Mono.TextEditor.LineSegment line, Int32 column) [0x0009f] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs:2420 
  at Mono.TextEditor.TextViewMargin.LocationToPoint (DocumentLocation loc, Boolean useAbsoluteCoordinates) [0x00021] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs:2406 
  at Mono.TextEditor.TextViewMargin.LocationToPoint (DocumentLocation loc) [0x00000] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs:2393 
  at Mono.TextEditor.TextEditor.LocationToPoint (DocumentLocation loc) [0x00000] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:2596 
  at MonoDevelop.SourceEditor.SourceEditorView.DocumentToScreenLocation (DocumentLocation location) [0x00000] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1449 
  at MonoDevelop.SourceEditor.SourceEditorView.CreateCodeCompletionContext (Int32 triggerOffset) [0x00036] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1440 
  at MonoDevelop.SourceEditor.SourceEditorView.get_CurrentCodeCompletionContext () [0x00000] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1391 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x001bf] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:149 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0001e] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:179 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00035] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:280 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /home/lex/Projects/Monodevelop/monodevelop-2.8.6.4/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:230
Comment 1 Mike Krüger 2012-02-22 04:52:24 UTC
fixed.