-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3839 from masatake/rst--code-block
ReStructuredText: run guest parsers on code blocks
- Loading branch information
Showing
7 changed files
with
178 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--sort=no | ||
--extras=+g | ||
--fields=+lE |
10 changes: 10 additions & 0 deletions
10
Units/parser-restructuredtext.r/code-blocks.d/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
C Language Example input.rst /^C Language Example$/;" H language:ReStructuredText | ||
Test 1 input.rst /^Test 1$/;" c language:ReStructuredText title:C Language Example | ||
Test 2 input.rst /^Test 2$/;" c language:ReStructuredText title:C Language Example | ||
test1_0 input.rst /^ int test1_0(void)$/;" f language:C typeref:typename:int extras:guest | ||
test1_1 input.rst /^ int test1_1(void)$/;" f language:C typeref:typename:int extras:guest | ||
test1_2 input.rst /^ int test1_2(void)$/;" f language:C typeref:typename:int extras:guest | ||
test1_3 input.rst /^ int test1_3(void)$/;" f language:C typeref:typename:int extras:guest | ||
test2_0 input.rst /^ int test2_0(void)$/;" f language:C typeref:typename:int extras:guest | ||
TITLE input-1.rst /^TITLE$/;" H language:ReStructuredText | ||
DEF input-2.rst /^ #define DEF /;" d language:C file: extras:fileScope,guest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
No thing here. | ||
.. code-block:: c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. code-block:: c | ||
.. code-block:: c | ||
.. code-block:: c | ||
TITLE | ||
--------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
* an item | ||
|
||
.. code-block:: C | ||
#define DEF 1 | ||
|
||
int this_is_not_c_code (); | ||
|
||
* another item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
========================== | ||
C Language Example | ||
========================== | ||
|
||
Test 1 | ||
--------------------- | ||
|
||
.. code-block:: c | ||
int test1_0(void) | ||
{ | ||
return 0; | ||
} | ||
int test1_1(void) | ||
{ | ||
return 0; | ||
} | ||
Some descriptions here. | ||
|
||
.. code-block:: c | ||
int test1_2(void) | ||
{ | ||
return 0; | ||
} | ||
int test1_3(void) | ||
{ | ||
return 0; | ||
} | ||
Test 2 | ||
--------------------- | ||
|
||
Some descriptions here. | ||
|
||
.. code-block:: c | ||
int test2_0(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters