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

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