Child pages
  • Identifiers

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

This module contains the standard identifier operation rules. You can usually use the IdentifierBody rule to form an identifier for your language.

Code Block
syntax module Identifiers
{
  regex LetterCharacter           = [Lu, Ll, Lt, Lm, Lo, Nl];
  regex CombiningCharacter        = [Mn, Mc];
  regex DecimalDigitCharacter     = [Nd];
  regex ConnectingCharacter       = [Pc];
  regex FormattingCharacter       = [Cf];

  regex IdentifierStartCharacter  = LetterCharacter | "_";
  regex IdentifierPartCharacters  = LetterCharacter
                                  | DecimalDigitCharacter
                                  | ConnectingCharacter
                                  | CombiningCharacter
                                  | FormattingCharacter;
  regex IdentifierBody            = IdentifierStartCharacter
                                    IdentifierPartCharacters*;
}

See also

Nitra.Core.dll