Commit Graph

12 Commits

Author SHA1 Message Date
Dmitri Hrybenko
e9f06eee68 Comment parsing: implement basic parsing of inline markup
This change adds infrastructure to represent inline markup in the AST,
implements parsing of some of the inline markup (*emphasis*, **strong
emphasis**, `interpreted text`, ``inline literal``), and XML generation
for these constructs for SourceKit clients to consume.

The parsing itself is incomplete for constructs not mentioned above.
Most notably, we don't parse hyperlinks, and we don't parse the
double-colon that changes the next paragraph into a literal block.

Swift SVN r22752
2014-10-15 13:50:48 +00:00
Dmitri Hrybenko
45963a413e Revert "comment parsing wip"
Revert something I committed accidentally.

Swift SVN r22699
2014-10-13 14:48:07 +00:00
Dmitri Hrybenko
3dac00f60f comment parsing wip
comment parsing: more wip

comment parsing: more wip

comment parsing: even more wip

Swift SVN r22697
2014-10-13 14:27:22 +00:00
Dmitri Hrybenko
8fdd6aca87 Fix warnings about falling off the end of a function without a return
Swift SVN r22317
2014-09-27 23:34:22 +00:00
Dmitri Hrybenko
c448fcc1f6 ReST: make some functions defined in header 'static inline' to avoid warnings
about unused functions.  They are used, just not in all files that include the
header.


Swift SVN r18959
2014-06-17 18:30:27 +00:00
Dmitri Hrybenko
00722d4c2e Comment parsing: extract parameter name from the text in :param: field
Swift SVN r16750
2014-04-24 09:13:42 +00:00
Dmitri Hrybenko
3ad1f7783c ReST parser: add some tests for LineListRef, and fix a bug in
LineListRef::getLinePart() found by them


Swift SVN r15870
2014-04-03 15:35:24 +00:00
Dmitri Hrybenko
2c28b14c7f ReST parser: actually remember that we computed line classification so that we
don't re-compute it over and over again


Swift SVN r15867
2014-04-03 14:35:24 +00:00
Dmitri Hrybenko
6f232af3bb ReST: now that LineList is lightweight and does not own data, pass it by value
I am not sure if we need LineList as a separate entity, but let's keep it for
now.  Some document-global data might come later.  If not, LineList should be
collapsed into LineListRef.


Swift SVN r15864
2014-04-03 11:14:38 +00:00
Dmitri Hrybenko
f370da96b1 ReST: make data in a LineList be owned by ReSTContext, so that users don't have
to carry all LineLists along with a ReSTContext.


Swift SVN r15863
2014-04-03 11:03:09 +00:00
Dmitri Hrybenko
8d59f36796 Implement a basic ReST parser on block level, producing a ReST AST
This parser does not recognize inline markup.


Swift SVN r15416
2014-03-24 16:33:43 +00:00
Dmitri Hrybenko
d51769b6a5 Implement some elements of a ReST parser
It does not yet understand a lot of ReST constructs, in particular, it does not
understand inline markup at all, but it is good enough to extract brief
comments.

The parser in BriefParser.cpp does not construct any ASTs or emit any warnings.
This is a special parser for brief comments that should be as fast as possible.
Real ReST parser will come later.


Swift SVN r15046
2014-03-14 13:03:19 +00:00