Natural Docs Version 1.2 |
NaturalDocs:: Parser:: NativeA package that converts comments from Natural Docs’ native format into NaturalDocs::Parser::ParsedTopic objects. Unlike most second-level packages, these are packages and not object classes. Summary
functionListIgnoredHeadings
An existence hash of all the headings that prevent the parser from creating function list symbols. Whenever one of these headings are used in a function list topic, symbols are not created from definition lists until the next heading. The keys are in all lowercase. ParseComment
This will be called whenever a comment capable of containing Natural Docs content is found. Parameters
ReturnsThe number of parsed topics added to the array, or zero if none. MakeParsedTopic
Creates a NaturalDocs::Parser::ParsedTopic object for the passed parameters. Scope is gotten from the package variable scope instead of from the parameters. The summary is generated from the body. Parameters
ReturnsThe NaturalDocs::Parser::ParsedTopic object. FormatBody
Converts the section body to NDMarkup. Parameters
ReturnsThe body formatted in NDMarkup. AddToCodeBlock
Adds a line of text to a code block, handling all the indentation processing required. Parameters
RichFormatTextBlock
Applies rich NDMarkup formatting to a chunk of text. This includes both amp chars, formatting tags, and link tags. Parameters
ReturnsThe formatted text block. TagType
Returns whether the tag is a possible opening or closing tag, or neither. “Possible” because it doesn’t check if an opening tag is closed or a closing tag is opened, just whether the surrounding characters allow it to be a candidate for a tag. For example, in “A _B” the underscore is a possible opening underline tag, but in “A_B” it is not. Support function for RichFormatTextBlock(). Parameters
ReturnsPOSSIBLE_OPENING_TAG, POSSIBLE_CLOSING_TAG, or NOT_A_TAG. ClosingTag
Returns whether a tag is closed or not, where it’s closed if it is, and optionally whether there is any whitespace between the tags. Support function for RichFormatTextBlock(). The results of this function are in full context, meaning that if it says a tag is closed, it can be interpreted as that tag in the final output. It takes into account any spoiling factors, like there being two opening tags in a row. Parameters
ReturnsIf the tag is closed, it returns the index of the closing tag and puts whether there was whitespace between the tags in hasWhitespaceRef if it was specified. If the tag is not closed, it returns -1 and doesn’t touch the variable pointed to by hasWhitespaceRef. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
my $scope |
my %functionListIgnoredHeadings |
sub Start |
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
sub RichFormatTextBlock #(text) |
| ||||||||||
| |||||||||||||||