From 0b8276204808fbaa2711e3c2e5e5434d6d012589 Mon Sep 17 00:00:00 2001 From: kudah Date: Thu, 4 Apr 2013 11:16:34 +0300 Subject: Improvements to Haskell Lexer: * Added support for MagicHash extension (lexer.haskell.allow.hash) * $ and # are now colored as operators. * .0 and -0 are now properly colored as operator and a number, not as just number. * Operators starting with double dash (e.g ---->) are properly colored as operators, not comments. * Added pragma highlighting. * Added basic C-preprocessor highlighting. * Qualified names (e.g. ABC.xyz) are now properly highlighted as identifiers, not types. * Qualified operators (e.g. ABC.<$>) are now properly highlighted as operators. * Operator . is now properly highlighted as an operator, not part of the identifier, when applied to a qualified and an unqualified value (e.g. Abc.xyz.yzx <- last one is an operator) * Operators starting with ':' are now properly highlighted as type constructors, not operators. * family after data is highlighted, as per TypeFamilies. --- include/SciLexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/SciLexer.h') diff --git a/include/SciLexer.h b/include/SciLexer.h index 44043fe6e..f04222d19 100644 --- a/include/SciLexer.h +++ b/include/SciLexer.h @@ -1020,6 +1020,8 @@ #define SCE_HA_COMMENTBLOCK 14 #define SCE_HA_COMMENTBLOCK2 15 #define SCE_HA_COMMENTBLOCK3 16 +#define SCE_HA_PRAGMA 17 +#define SCE_HA_PREPROCESSOR 18 #define SCE_T3_DEFAULT 0 #define SCE_T3_X_DEFAULT 1 #define SCE_T3_PREPROCESSOR 2 -- cgit v1.2.3