Navigation
Synopsis Editors may hide (fold) certain parts of a source text based on foldable annotations.
Syntax
  1. syntax Name = @foldable Symbols;
  2. a@foldable = true
Description There exist two ways of manipulating the folding behavior:
  1. By statically tagging a SyntaxDefinition with @foldable, any source text that is covered by a ParseTree generated from this definition will be foldable.
  2. By dynamically annotating a ParseTree with the foldable annotation (set to true) a similar effect is obtained.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.