Skip to content
Daniel Gibbs edited this page Aug 24, 2015 · 1 revision

Syntax

This document is a work progress of discussions with Strimo and a bit of experimenting.

Keys

Each key follows a simple rule.

The element is surrounded by single quotes and then square brackets.

For example:

['Key']

Values

A value is defined by being in quotations and then terminated with a semi-colon. However, a value maybe substituted to start a new block off.

Single Quotes

Single quotes are most commonly used for simple alphanumeric strings.

For example:

['Key'] = 'Value';

Double Quotes

Single quotes are most commonly used for more complex alphanumeric strings or strings which contain single quotes. Doubles quotes is able to handle backslashes, thus allowing a list of special characters to be used.

Available characters:

  • \" = Escaped double quote
  • \t = Tab
  • \n = New Line
  • \r = Carriage Return
  • \x = Hex - \x is most likely followed by an 8bit integer

For example:

['Key'] = "Bob says, 'Hello World'";
['Key'] = "Tabbed\t space";

Blocks

If the array contains multiple dimensions blocks can be created. Blocks must have a parent key and be opened with a curly bracket, and closed with a curly bracket followed by a semi-colon.

For Example

['Languages'] = {
  ['EN'] = 'English';
  ['DE'] = 'Deutisch';
  ['FR'] = 'Francais';
};

!Config Format

Clone this wiki locally