aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/SourceEditor/SourceEditor.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-28 00:51:17 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-28 00:51:17 +0100
commitd5cf794076899803b9a34eb46d3b2e34f3e3cfbc (patch)
tree783e637acbeab9c65777c345ae834a93ab7fc86a /CrowIDE/src/SourceEditor/SourceEditor.cs
parent8e82014a444722660692bbf730017651ddb6c88c (diff)
change styling grammar for value now enclose in double quoteStyleModif
Diffstat (limited to 'CrowIDE/src/SourceEditor/SourceEditor.cs')
-rw-r--r--CrowIDE/src/SourceEditor/SourceEditor.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/CrowIDE/src/SourceEditor/SourceEditor.cs b/CrowIDE/src/SourceEditor/SourceEditor.cs
index d594776e..8d8a5d68 100644
--- a/CrowIDE/src/SourceEditor/SourceEditor.cs
+++ b/CrowIDE/src/SourceEditor/SourceEditor.cs
@@ -58,10 +58,10 @@ namespace Crow.Coding
formatting.Add ((int)XMLParser.TokenType.AttributeValue, new TextFormatting (Color.TractorRed, Color.Transparent, false, true));
formatting.Add ((int)XMLParser.TokenType.XMLDecl, new TextFormatting (Color.AoEnglish, Color.Transparent));
- formatting.Add ((int)Parser.TokenType.BlockComment, new TextFormatting (Color.Gray, Color.Transparent, false, true));
- formatting.Add ((int)Parser.TokenType.LineComment, new TextFormatting (Color.Gray, Color.Transparent, false, true));
- formatting.Add ((int)Parser.TokenType.Affectation, new TextFormatting (Color.Black, Color.Transparent));
- formatting.Add ((int)Parser.TokenType.Keyword, new TextFormatting (Color.DarkCyan, Color.Transparent));
+ formatting.Add ((int)BufferParser.TokenType.BlockComment, new TextFormatting (Color.Gray, Color.Transparent, false, true));
+ formatting.Add ((int)BufferParser.TokenType.LineComment, new TextFormatting (Color.Gray, Color.Transparent, false, true));
+ formatting.Add ((int)BufferParser.TokenType.Affectation, new TextFormatting (Color.Black, Color.Transparent));
+ formatting.Add ((int)BufferParser.TokenType.Keyword, new TextFormatting (Color.DarkCyan, Color.Transparent));
parsing.Add (".crow", "Crow.Coding.XMLParser");
parsing.Add (".template", "Crow.Coding.XMLParser");
@@ -122,7 +122,7 @@ namespace Crow.Coding
int printedCurrentLine = 0;//Index of the currentline in the PrintedLines array
CodeBuffer buffer;
- Parser parser;
+ BufferParser parser;
List<CodeLine> PrintedLines;//list of lines visible in the Editor depending on scrolling and folding
Dictionary<int, TextFormatting> formatting = new Dictionary<int, TextFormatting>();
@@ -348,7 +348,7 @@ namespace Crow.Coding
}
}
- Parser getParserFromExt (string extension) {
+ BufferParser getParserFromExt (string extension) {
if (string.IsNullOrEmpty(extension))
return null;
if (!parsing.ContainsKey(extension))
@@ -356,7 +356,7 @@ namespace Crow.Coding
Type parserType = Type.GetType (parsing [extension]);
if (parserType == null)
return null;
- return (Parser)Activator.CreateInstance (parserType, buffer );
+ return (BufferParser)Activator.CreateInstance (parserType, buffer );
}
#region Public Crow Properties