|
|||||
Errors: the escape character | |||||
Prerequisite Concepts | Related Syntax |
When an OmniMark program encounters an escape
character, it is expecting to find a format item. If an escape
character is followed by a character that isn't currently defined within OmniMark as a format item, an error will result. For example, the following output
action would generate an error because an escape
character followed by a space character is not currently being used as a format item:
output "% "
These errors are in place in order to ensure backward compatibility of future versions of OmniMark which may contain more extensive lists of format items.
On the other hand, if OmniMark encountered an action that tried to output a string containing nothing but an escape
character:
output "%"an unterminated string error would result. This is because "%"" is a format item used to output a double-quote character, meaning that no double-quote character would exist to close the string.
Prerequisite Concepts Format items and the format operator |
Related Syntax escape |
---- |