;dev: improve followingcommentp' doc
This commit is contained in:
		
							parent
							
								
									830acdd444
								
							
						
					
					
						commit
						f135001b87
					
				| @ -1151,18 +1151,20 @@ isSameLineCommentStart :: Char -> Bool | |||||||
| isSameLineCommentStart ';' = True | isSameLineCommentStart ';' = True | ||||||
| isSameLineCommentStart _   = False | isSameLineCommentStart _   = False | ||||||
| 
 | 
 | ||||||
| -- A parser combinator for parsing (possibly multiline) comments | -- A parser for (possibly multiline) comments following a journal item. | ||||||
| -- following journal items. |  | ||||||
| -- | -- | ||||||
| -- Several journal items may be followed by comments, which begin with | -- Comments following a journal item begin with a semicolon and extend to | ||||||
| -- semicolons and extend to the end of the line. Such comments may span | -- the end of the line. They may span multiple lines; any comment lines  | ||||||
| -- multiple lines, but comment lines below the journal item must be | -- not on the same line as the journal item must be indented (preceded by | ||||||
| -- preceded by leading whitespace. | -- leading whitespace). | ||||||
| -- | -- | ||||||
| -- This parser combinator accepts a parser that consumes all input up | -- Like Ledger, we sometimes allow data to be embedded in comments. Eg, | ||||||
| -- until the next newline. This parser should extract the "content" from | -- comments on the account directive and on transactions can contain tags, | ||||||
| -- comments. The resulting parser returns this content plus the raw text | -- and comments on postings can contain tags and/or bracketed posting dates. | ||||||
| -- of the comment itself. | -- To handle these variations, this parser takes as parameter a subparser, | ||||||
|  | -- which should consume all input up until the next newline, and which can | ||||||
|  | -- optionally extract some kind of data from it. | ||||||
|  | -- followingcommentp' returns this data along with the full text of the comment. | ||||||
| -- | -- | ||||||
| -- See followingcommentp for tests. | -- See followingcommentp for tests. | ||||||
| -- | -- | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user