---
title: s.syntax.operator
description: "## Syntax **s.syntax.operator** ## Purpose The s.syntax.operator annotation is used to tag a span element in a syntax diagram as being a mathematical operator. Common mathematical operators include: - plus (+) - minus (-) - multiply or times (*) -…"
url: "https://www.stilo.com/docs/migrate/task/s-syntax-operator/"
updated: "2023-12-11"
category: Annotations / Task
tags:
  - Annotations
---

# s.syntax.operator

## Syntax

**s.syntax.operator**

## Purpose

The s.syntax.operator annotation is used to tag a span element in a syntax diagram as being a mathematical operator. Common mathematical operators include:

- plus (+)
- minus (-)
- multiply or times (*)
- divide (/)
- equals (=)

## Example

The following is an example of a time when you might want to use the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.syntax.operator0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.syntax.operator1.png)

The following is the DITA XML output for the rule:

>>-<kwd>2</kwd>--**<oper>*</oper>**--<var>user_input</var>--<delim>=</delim>

 
