Commit Graph

16 Commits

Author SHA1 Message Date
Dmitri Hrybenko
4e0146af1c Fix spelling inside of a comment
Swift SVN r23973
2014-12-17 02:43:39 +00:00
Dmitri Hrybenko
ea2106c1e3 Comment parsing: transform testcases automatically to include non-ASCII
characters

Swift SVN r22763
2014-10-15 18:22:48 +00:00
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
99d35cb3b2 ReST parsing: fix a bug in parsing field list items that don't have a blank
line in between

Finishes rdar://17220608


Swift SVN r19565
2014-07-04 15:28:10 +00:00
Dmitri Hrybenko
5ccee15360 ReST unittests: remove an empty test array, it is causing a -Wzero-length-array
warning


Swift SVN r17409
2014-05-04 23:46:04 +00:00
Doug Gregor
a30238b208 Add more missing #includes.
Swift SVN r17162
2014-05-01 16:16:29 +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
b365285ae3 ReST parsing: add two more tests
Swift SVN r16516
2014-04-18 11:16:48 +00:00
Dmitri Hrybenko
68e8fee5fc Comment parsing: put more information into the generated XML documents
This commit adds infrastructure for conversion and testing it.

The conversion is still incomplete, pending discussion about which tags should
we use in the XML documents.  I copied the RelaxNG schema from Clang, and will
edit it accordingly.


Swift SVN r16451
2014-04-17 15:42:51 +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
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
44c7a737ce ReST tests: add a test and remove a test from comments that was already
implemented


Swift SVN r15419
2014-03-24 17:32:16 +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