From 7e0575594463042e6576d96d40e4d3c5ff6b92e9 Mon Sep 17 00:00:00 2001 From: codeimp Date: Sat, 15 Nov 2008 19:32:17 +0000 Subject: [PATCH] added pascal lexer for syntax highlighting --- Source/Resources/Lexers.cfg | 46 ++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/Source/Resources/Lexers.cfg b/Source/Resources/Lexers.cfg index e90aec11..461ca061 100644 --- a/Source/Resources/Lexers.cfg +++ b/Source/Resources/Lexers.cfg @@ -37,6 +37,38 @@ lexer3 // CPP-style, case-sensitive } +lexer6 // Perl-style +{ + 0 = 0; // plain text + 2 = 3; // comments + 4 = 4; // literal + 5 = 1; // keywords + 6 = 4; // literal + 7 = 4; // literal + 33 = 5; // line numbers + + keywordsindex = 0; + constantsindex = -1; +} + + +lexer18 // Pascal-style +{ + 0 = 0; // plain text + 33 = 5; // line numbers + 1 = 3; // comments + 2 = 3; // comments + 5 = 1; // keywords + 4 = 4; // literal + 6 = 4; // literal + 7 = 4; // literal + 16 = 2; // constants + + keywordsindex = 0; + constantsindex = 1; +} + + lexer35 // CPP-style, case-insensitive { 0 = 0; // plain text @@ -54,17 +86,3 @@ lexer35 // CPP-style, case-insensitive } -lexer6 // Perl-style -{ - 0 = 0; // plain text - 2 = 3; // comments - 4 = 4; // literal - 5 = 1; // keywords - 6 = 4; // literal - 7 = 4; // literal - 33 = 5; // line numbers - - keywordsindex = 0; - constantsindex = -1; -} -