Added raw string literal function calls docs

Got curious as to how re"..." worked.
This commit is contained in:
apense
2015-06-15 16:03:04 -04:00
parent fce697b043
commit 3c9d655b88

View File

@@ -231,6 +231,25 @@ AST:
nnkStrLit("hallo")
)
Call with raw string literal
----------------------------
This is used, for example, in the ``bindSym`` examples
[here](http://nim-lang.org/docs/manual.html#macros-bindsym) and with
``re"some regexp"`` in the regular expression module.
Concrete syntax:
.. code-block:: nim
echo"abc"
AST:
.. code-block:: nim
nnkCallStrLit(
nnkIdent(!"echo"),
nnkRStrLit("hello")
)
Dereference operator ``[]``
---------------------------