aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/SourceEditor/CSharpParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CrowIDE/src/SourceEditor/CSharpParser.cs')
-rw-r--r--CrowIDE/src/SourceEditor/CSharpParser.cs6
1 files changed, 3 insertions, 3 deletions
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);