---
title: "Comments and Continuation"
canonical: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/comment-continuation.html"
source: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/comment-continuation.md"
part: "The Magma Language"
chapter: "Statements and Expressions"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "The Magma Language", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/index-magma-language.md"}
  - {"title": "Statements and Expressions", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/index-statements-and-expressions.md"}
prev: {"title": "Runtime Evaluation: the eval Expression", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/eval-expression.md"}
next: {"title": "Timing", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/StatementsAndExpressions/timing.md"}
intrinsics:
  - {"name": "//", "signature": "//"}
  - {"name": "/* */", "signature": "/* */"}
  - {"name": "\\", "signature": "\\"}
examples:
  - "ex-bc5419"
---

# Comments and Continuation

<a id="literal-literal"></a>
## `//`

One-line comment: any text following the double slash on the same line will be ignored by Magma.

<a id="literal-literal-2"></a>
## `/* */`

Multi-line comment: any text between `/*` and `*/` is ignored by Magma.

<a id="literal-literal-3"></a>
## `\`

Line continuation character: this symbol and the `<return>` immediately following is ignored by Magma. Evaluation will continue on the next line without interruption. This is useful for long input lines.

<a id="example-ex-bc5419"></a>
## `Example: Comments and Line Continuation (ex-bc5419)`

```magma
> // The following produces an error:
> x := 12
> 34;
User error: bad syntax
> /* but this is correct
>       and reads two lines: */
> x := 12\\
> 34;
> x;
1234
```
