OSDN Git Service

[LangRef] PR22118: Hyphen is allowed in IR identifiers.
authorSean Silva <chisophugis@gmail.com>
Wed, 7 Jan 2015 21:35:14 +0000 (21:35 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 7 Jan 2015 21:35:14 +0000 (21:35 +0000)
E.g. %-foo and %fo-o.

Thanks to eagle-eyed reporter Tomas Brukner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225400 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index 519fe20..5238fe9 100644 (file)
@@ -75,7 +75,7 @@ identifiers, for different purposes:
 #. Named values are represented as a string of characters with their
    prefix. For example, ``%foo``, ``@DivisionByZero``,
    ``%a.really.long.identifier``. The actual regular expression used is
-   '``[%@][a-zA-Z$._][a-zA-Z$._0-9]*``'. Identifiers that require other
+   '``[%@][-a-zA-Z$._][-a-zA-Z$._0-9]*``'. Identifiers that require other
    characters in their names can be surrounded with quotes. Special
    characters may be escaped using ``"\xx"`` where ``xx`` is the ASCII
    code for the character in hexadecimal. In this way, any character can