aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHaskell.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-03-29Backport: Remove inclusion of "CharacterCategory.h" where not needed and add ↵Neil1-0/+1
<vector> to LexHaskell as it will be needed for CharacterCategory additions. Backport of changeset 7390:917215fa3a96.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-2/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-06-22Backport: Add a DefaultLexer class which lexers can subclass if they want ↵Neil1-1/+2
reasonable default implementations of the ILexerWithSubStyles interface methods. Backport of changeset 6326:d18622e37a3e.
2017-03-04Use C++11 keyword "override" for methods in lexers that override an interface.Neil1-11/+11
2015-07-30Use Sci_Position / Sci_PositionU for variables in lexers that representJoe Mueller1-17/+17
positions and line numbers and may be widened to 64-bits in a future release.
2015-07-20Use Sci_Position when required to implement interfaces.Neil1-8/+8
2014-05-24Header include statements are now in a standardised order with that orderNeil1-1/+1
defined in scripts/HeaderOrder.txt.
2013-07-01Use CharacterCategorykudah1-20/+17
2013-05-26* Fixed a bug in incremental lexing which often caused a full redrawkudah1-2/+2
* Don't highlight CPP inside comments when styling.within.preprocessor is on, to avoid incoherent coloring.
2013-05-18Fix import list folding in fully indented moduleskudah1-79/+87
2013-05-13get rid of msvc warningkudah1-5/+5
2013-05-09* Literate Haskell supportkudah1-69/+178
* CPP highlighting is disableable * CPP is now correctly colored when inside comments and strings * Some bugs with incremental lexing fixed * Indented imports folding is now undisableable
2013-05-08Fixed a bug when --:> was highlighted as a constructorkudah1-52/+85
Fixed a bug when X wasn't highlighted as a module in import {-# SOURCE #-} X Fixed a bug when preprocessor directives could mess up context keywords
2013-05-04* Allow arbitrary amount of # suffixes in identifiers with ↵kudah1-61/+118
lexer.haskell.allow.hash * Allow only one dot in base 10 numeric literals * Comments are now treated as whitespace by the folder * Fixed inconsistent folding at end of the file
2013-04-21* Fixed a bug when a dashes-only comment double-counted a line and could ↵kudah1-76/+148
hang the editor * Comments inside pragmas are now highlighted * Reserved operators are now highlighted
2013-04-19* Use SCE_HA_COMMENTBLOCK2, SCE_HA_COMMENTBLOCK3kudah1-27/+68
* Implicit params * «Nice Character-lexing»
2013-04-18Fix clang warningkudah1-3/+2
2013-04-18Fold indented imports.kudah1-8/+39
2013-04-17Fixed import folding interfering with indentation foldingkudah1-2/+14
2013-04-17Removed importCurrentkudah1-6/+6
2013-04-17Removed dead assignment.nyamatongwe1-1/+0
2013-04-13Really minor refactorkudah1-13/+12
2013-04-12* Converted Haskell lexer to a classkudah1-125/+235
* Removed external lexer * Haskell lexer now folds imports
2013-04-09Haskell lexerkudah1-56/+203
* Fixed line counting * Fixed string escaping * Pragmas ending at start of the line are rejected (GHC only accepts pragmas with the end indented further) * Copied Python's Folder
2013-04-07Fixed few things in haskell lexerkudah1-25/+87
* MagicHash now applies to literals. * MagicHash is now only allowed at the end of identifier. * SafeHaskell imports are now highlighted (lexer.haskell.import.safe) * TemplateHaskell quoted names are now highlighted * Constructors promoted to types are now highlighted * Promoted tuples, lists, and operator constructors are now highlighted. * Qualified constructor are now properly highlighted as constructors, not operators. * Capital and qualified names in import lists are now properly highlighted. * A.$b is not properly highlighted as an operator and an identifier, not just operator. * String and preprocessor continuations now work with CRLF.
2013-04-04Improvements to Haskell Lexer:kudah1-142/+209
* 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.
2010-08-10Feature Request #3039490 Improved syntactic highlighting for Haskellnyamatongwe1-81/+171
'as' is a keyword but in all other contexts it is a normal identifier. The highligthting was failing if the operators are not separated by spaces: 10+20 There was highlighting for data types, classes and instances but it didn't work correctly. This was removed.
2010-07-13For new lexer design change includes to add new files and remove unused files.nyamatongwe1-6/+9
Normalise order of includes. Minor fixes for compatibility with new lexer design.
2010-07-13Moved lexers into lexers directory.nyamatongwe1-0/+275