[commit: ghc] master: users-guide: Disable syntax highlighting (2b6694a)

git at git.haskell.org git at git.haskell.org
Fri Sep 7 14:10:15 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2b6694a5368297c1c0c254eee3721f329ec69fc6/ghc

>---------------------------------------------------------------

commit 2b6694a5368297c1c0c254eee3721f329ec69fc6
Author: Takenobu Tani <takenobu.hs at gmail.com>
Date:   Fri Sep 7 16:02:39 2018 +0200

    users-guide: Disable syntax highlighting
    
    Summary:
    I disabled syntax highlighting for NumericUnderscores extension.
    
    Because pygments does not yet correspond to syntax rule for NumericUnderscores.
    (Sphinx uses pygments as the syntax highlighting.)
    
    I've sent a pull-request to pygments project[1].
    But development of pygments has been suspended since 2017 March.
    
    [1]: https://bitbucket.org/birkenfeld/pygments-main/pull-requests/
           745/fix-haskell-lexer-for-numeric-literals/diff
    
    [ci skip]
    
    Test Plan: build
    
    Reviewers: bgamari, monoidal
    
    Reviewed By: monoidal
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5120


>---------------------------------------------------------------

2b6694a5368297c1c0c254eee3721f329ec69fc6
 docs/users_guide/glasgow_exts.rst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index ead020c..a1a5b1f 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -585,7 +585,9 @@ That is, underscores in numeric literals are ignored when
 :extension:`NumericUnderscores` is enabled.
 See also :ghc-ticket:`14473`.
 
-For example: ::
+For example:
+
+.. code-block:: none
 
     -- decimal
     million    = 1_000_000
@@ -617,7 +619,9 @@ For example: ::
 
     test8bit x = (0b01_0000_0000 .&. x) /= 0
 
-About validity: ::
+About validity:
+
+.. code-block:: none
 
     x0 = 1_000_000   -- valid
     x1 = 1__000000   -- valid



More information about the ghc-commits mailing list