summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakenobu Tani <takenobu.hs@gmail.com>2018-09-07 16:02:39 +0200
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>2018-09-07 16:09:38 +0200
commit2b6694a5368297c1c0c254eee3721f329ec69fc6 (patch)
tree76cb48b3a6ec78331be9a68264581068ac5a6057
parent9400a5c6b308fbb5b3a73690610736ca3b5eb0b3 (diff)
downloadhaskell-2b6694a5368297c1c0c254eee3721f329ec69fc6.tar.gz
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
-rw-r--r--docs/users_guide/glasgow_exts.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index ead020c916..a1a5b1f8bf 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