aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockLex.x
Commit message (Collapse)AuthorAgeFilesLines
* Initial modifications -- doesn't compiledavve2006-07-101-168/+0
|
* Teach haddock about line pragmas and add accurate source code linksDuncan Coutts2006-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | Teach haddock about C and Haskell style line pragmas. Extend the lexer/parser's source location tracking to include the file name as well as line/column. This way each AST item that is tagged with a SrcLoc gets the original file name too. Use this original file name to add source links to each exported item, in the same visual style as the wiki links. Note that the per-export source links are to the defining module rather than whichever module haddock pretends it is exported from. This is what we want for source code links. The source code link URL can also contain the name of the export so one could implement jumping to the actual location of the function in the file if it were linked to an html version of the source rather than just plain text. The name can be selected with the %N wild card. So for linking to the raw source code one might use: --source=http://darcs/haskell.org/foo/%F Or for linking to html syntax highlighted code: --source=http://darcs/haskell.org/foo/%M.html#%N
* [haddock @ 2005-01-13 14:43:41 by ross]ross2005-01-131-1/+1
| | | | also allow uppercase X in hexadecimal character references (like SGML)
* [haddock @ 2005-01-13 11:41:33 by ross]ross2005-01-131-3/+7
| | | | | recognize SGML-style numeric character references &#ddd; or &#xhhhh; and translate them into Chars.
* [haddock @ 2004-07-22 08:54:06 by simonmar]simonmar2004-07-221-1/+1
| | | | | | | Add single quote to $ident, so you can say eg. 'foldl'' to refer to foldl' (the longest match rule is our friend). Bug reported by Adrian Hey <ahey@iee.org>
* [haddock @ 2004-02-10 12:10:08 by simonmar]simonmar2004-02-101-1/+11
| | | | | Fix for previous commit: I now realise why the whitespace was stripped from the beginning of the line. Work around it.
* [haddock @ 2004-02-10 11:51:16 by simonmar]simonmar2004-02-101-1/+1
| | | | Don't throw away whitespace at the beginning of a line (experimental fix).
* [haddock @ 2003-11-06 12:39:46 by simonmar]simonmar2003-11-061-6/+19
| | | | | | | | | | | | | | | | | | | | | - Add definition lists, marked up like this: -- | This is a definition list: -- -- [@foo@] The description of @foo@. -- -- [@bar@] The description of @bar@. Cunningly, the [] characters are not treated specially unless a [ is found at the beginning of a paragraph, in which case the ] becomes special in the following text. - Add --use-contents and --gen-contents, along the lines of --use-index and --gen-index added yesterday. Now we can generate a combined index and contents for the whole of the hierarchical libraries, and in theory the index/contents on the system could be updated as new packages are added.
* [haddock @ 2003-08-19 09:09:03 by simonmar]simonmar2003-08-191-6/+6
| | | | Further wibbles to the syntax.
* [haddock @ 2003-08-18 11:48:46 by simonmar]simonmar2003-08-181-4/+8
| | | | Fixes to the new lexer.
* [haddock @ 2003-08-15 14:42:59 by simonmar]simonmar2003-08-151-0/+137
Convert the lexer to Alex, and fix a bug in the process.