The marker declares the fictive rule which name can be used for defining additional metadata in the grammar. This metadata can be used by Nitra code generators and subsystems. For example:
Standard markers
The PrettyPrint
module markers flag pretty-print-epy to do the following in places where these markers are applied:
sm
– print whitespacei
– increase indentd
– decrease indentnl
– print end line characters and new line indentint
– same as i and nl applied in sequence
The Outline
module markers indicate what constructs in the code editor can be outlined and the way it’s done:
outline_begin
– the beginning of the outlined region. Whitespaces preceding the region are not includedoutline_end
– the end of the outlined region. Whitespaces following the region are not includedoutline_begin_before
-- the beginning of the outlined region. Whitespaces preceding the region are includedoutline_end_before
– the end of the outlined region. Whitespaces following the region are includedoutline_hiden
– the subsequent region should be outlined by default