[Git][ghc/ghc][master] Fix "ndecreasingIndentation" in manual (#18116)
Marge Bot
gitlab at gitlab.haskell.org
Sun Jun 14 19:37:26 UTC 2020
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
502647f7 by Krzysztof Gogolewski at 2020-06-14T15:37:14-04:00
Fix "ndecreasingIndentation" in manual (#18116)
- - - - -
1 changed file:
- docs/users_guide/flags.py
Changes:
=====================================
docs/users_guide/flags.py
=====================================
@@ -255,14 +255,16 @@ class LanguageExtension(GenericFlag):
# Invert the flag
@staticmethod
def _noname(name):
- if name[:2] == "No":
+ # We check isupper() so that NondecreasingIndentation
+ # is not counted as "No-decreasingIndentation"
+ if name[:2] == "No" and name[2].isupper():
return name[2:]
else:
return "No%s" % name
@staticmethod
def _onname(name):
- if name[:2] == "No":
+ if name[:2] == "No" and name[2].isupper():
return name[2:]
else:
return name
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/502647f7583be626319482adf4ea3d905db0006d
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/502647f7583be626319482adf4ea3d905db0006d
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200614/d959b0a9/attachment.html>
More information about the ghc-commits
mailing list