[llvm] r276806 - Fix docs/Coroutines.rst syntax highlighting on Linux

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 14:03:41 PDT 2016


Author: sanjoy
Date: Tue Jul 26 16:03:41 2016
New Revision: 276806

URL: http://llvm.org/viewvc/llvm-project?rev=276806&view=rev
Log:
Fix docs/Coroutines.rst syntax highlighting on Linux

Summary:
s/code-block:: C++/code-block:: c++ in docs/Coroutines.rst .

Patch by Gor Nishanov!  Edited by Sanjoy to fix a missing s/C/c/.

Reviewers: sanjoy, rengolin

Differential Revision: https://reviews.llvm.org/D22832

Modified:
    llvm/trunk/docs/Coroutines.rst

Modified: llvm/trunk/docs/Coroutines.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Coroutines.rst?rev=276806&r1=276805&r2=276806&view=diff
==============================================================================
--- llvm/trunk/docs/Coroutines.rst (original)
+++ llvm/trunk/docs/Coroutines.rst Tue Jul 26 16:03:41 2016
@@ -73,7 +73,7 @@ Coroutine Representation
 Let's look at an example of an LLVM coroutine with the behavior sketched
 by the following pseudo-code.
 
-.. code-block:: C++
+.. code-block:: c++
 
   void *f(int n) {
      for(;;) {
@@ -274,7 +274,7 @@ Multiple Suspend Points
 
 Let's consider the coroutine that has more than one suspend point:
 
-.. code-block:: C++
+.. code-block:: c++
 
   void *f(int n) {
      for(;;) {
@@ -528,7 +528,7 @@ For example, for a Python generator that
 Python frontend would inject two more suspend points, so that the actual code
 looks like this:
 
-.. code-block:: C
+.. code-block:: c
 
   void* coroutine(int n) {
     int current_value; 
@@ -542,7 +542,7 @@ looks like this:
 
 and python iterator `__next__` would look like:
 
-.. code-block:: C++
+.. code-block:: c++
 
   int __next__(void* hdl) {
     coro.resume(hdl);
@@ -1109,7 +1109,7 @@ Example:
 Consider the following example. A coroutine takes two parameters `a` and `b`
 that has a destructor and a move constructor.
 
-.. code-block:: C++
+.. code-block:: c++
 
   struct A { ~A(); A(A&&); bool foo(); void bar(); };
 




More information about the llvm-commits mailing list