Skip to content

Operator

Øyvind Kallstad edited this page Sep 15, 2017 · 5 revisions

Comparison

Comparison operators are used to compare values and test conditions.

List of comparison operators:

  • -as
  • -is
  • -isnot
  • -in
  • -notin
  • -[(c|i)]eq
  • -[(c|i)]ne
  • -[(c|i)]gt
  • -[(c|i)]lt
  • -[(c|i)]ge
  • -[(c|i)]le
  • -[(c|i)]like
  • -[(c|i)]notlike
  • -[(c|i)]contains
  • -[(c|i)]notcontains
  • -[(c|i)]match
  • -[(c|i)]notmatch

Scopes

The following scope are assigned to comparison operators:

  • keyword.operator.comparison

Bitwise

List of bitwise operators:

  • -bAND
  • -bOR
  • -bXOR
  • -bNOT
  • -shl
  • -shr

Scopes

The following scope are assigned to bitwise operators:

  • keyword.operator.bitwise

Logical

List of logical operators:

  • -and
  • -or
  • -xor

Scopes

The following scope are assigned to logical operators:

  • keyword.operator.logical

Format

List of format operators:

  • -f

Scopes

The following scope are assigned to format operators:

  • keyword.operator.format

Assignment

List of assignment operators:

  • =
  • -=
  • +=
  • *=
  • \=

Scopes

The following scope are assigned to assignment operators:

  • keyword.operator.assignment

Logical NOT

List of logical NOT operators:

  • -not
  • !

Scopes

The following scope are assigned to logical NOT operators:

  • keyword.operator.unary.logical-not

Multiplicative

List of multiplicative operators:

  • *
  • %

Scopes

The following scope are assigned to multiplicative operators:

  • keyword.operator.multiplicative

Increment

List of increment operators:

  • ++

Scopes

The following scope are assigned to increment operators:

  • keyword.operator.increment

Decrement

List of decrement operators:

  • ++

Scopes

The following scope are assigned to decrement operators:

  • keyword.operator.decrement

Unary plus

List of unary plus operators:

  • +

Scopes

The following scope are assigned to unary plus operators:

  • keyword.operator.unary-plus

Unary minus

List of unary minus operators:

  • -

Scopes

The following scope are assigned to unary minus operators:

  • keyword.operator.unary-minus

Additive

List of additive operators:

  • +
  • -

Scopes

The following scopes are assigned to additive operators:

  • keyword.operator.additive

Range

List of range operators:

  • ..

Scopes

The following scopes are assigned to range operators:

  • keyword.operator.range

Command invocation (call)

List of call operators:

  • &

Scopes

The following scopes are assigned to call operators

  • keyword.operator.other