From d5cf794076899803b9a34eb46d3b2e34f3e3cfbc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 28 Feb 2018 00:51:17 +0100 Subject: change styling grammar for value now enclose in double quote --- CrowIDE/src/SourceEditor/CSharpParser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CrowIDE/src/SourceEditor/CSharpParser.cs') diff --git a/CrowIDE/src/SourceEditor/CSharpParser.cs b/CrowIDE/src/SourceEditor/CSharpParser.cs index 7d56ce43..8c445824 100644 --- a/CrowIDE/src/SourceEditor/CSharpParser.cs +++ b/CrowIDE/src/SourceEditor/CSharpParser.cs @@ -7,7 +7,7 @@ using System.Linq; namespace Crow.Coding { - public class CSharpParser : Parser + public class CSharpParser : BufferParser { #region keywords string[] keywords = new string[] { @@ -171,7 +171,7 @@ namespace Crow.Coding if (Peek () == '\n') { if (currentTok != TokenType.Unknown) - throw new ParsingException (this, "Unexpected end of line"); + throw new ParserException (currentLine, currentColumn, "Unexpected end of line"); Read (); eol = true; continue; @@ -182,7 +182,7 @@ namespace Crow.Coding Debugger.Break (); currentTok.Start = CurrentPosition; - currentTok.Type = (Parser.TokenType)TokenType.BlockComment; + currentTok.Type = (BufferParser.TokenType)TokenType.BlockComment; currentTok += ReadLineUntil ("*/"); if (Peek (2) == "*/") { readToCurrTok (2); -- cgit v1.3.1-4-g156e