Text Literals ("M" Reference)
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Microsoft code name “M” supports two forms of text literals: regular text literals and verbatim text literals.
A regular text literal consists of zero or more characters enclosed in double quotes, as in "hello", and may include both simple escape sequences (such as \t for the tab character), and hexadecimal and Unicode escape sequences.
A verbatim text literal consists of a @ character followed by a double-quote character, zero or more characters, and a closing double-quote character. A basic example is @"hello". In a verbatim text literal, the characters between the delimiters are interpreted verbatim, the only exception being a QuoteEscapeSequence. In particular, simple escape sequences, and hexadecimal and Unicode escape sequences are not processed in verbatim text literals. A verbatim text literal may span multiple lines.
The type of a text literal is Text.
Literal Format
Text literals take the following format.
TextLiteral:
" TextCharacters(optional) "
@ " TextVerbatimCharacters(optional) "
TextCharacter:
TextSimple
CharacterEscapeHex
CharacterEscapeSimple
CharacterEscapeUnicode
TextCharacters:
TextCharacter
TextCharacters TextCharacter
TextSimple: none of
"
\
NewLineCharacter
TextVerbatimCharacter:
none of "
TextVerbatimCharacterEscape
TextVerbatimCharacterEscape:
" "
TextVerbatimCharacters:
TextVerbatimCharacter+;
TextVerbatimCharacters TextVerbatimCharacter