Ejemplo n.º 1
0
    }//constructor

    public override void CreateTokenFilters(LanguageData language, TokenFilterList filters) {
      var outlineFilter = new CodeOutlineFilter(language.GrammarData, 
        OutlineOptions.ProduceIndents | OutlineOptions.CheckBraces, ToTerm(@"\")); // "\" is continuation symbol
      filters.Add(outlineFilter);
    }
 //Make parser indentation-aware
 public override void CreateTokenFilters(LanguageData language, TokenFilterList filters)
 {
     var options = OutlineOptions.ProduceIndents | OutlineOptions.CheckBraces | OutlineOptions.CheckOperator;
     var outlineFilter = new CodeOutlineFilter(language.GrammarData,options,null);
     filters.Add(outlineFilter);
 }
Ejemplo n.º 3
0
 public override void CreateTokenFilters(LanguageData language, TokenFilterList filters)
 {
     // Make the language a whitespaced one: this instructs the parse to insert whitespace tokens.
     var outlineFilter = new CodeOutlineFilter(language.GrammarData,
       OutlineOptions.ProduceIndents | OutlineOptions.CheckOperator | OutlineOptions.CheckBraces, ToTerm(@"\"));
     filters.Add(outlineFilter);
 }
Ejemplo n.º 4
0
 public override void CreateTokenFilters(LanguageData language, TokenFilterList filters)
 {
     var outlineFilter = new CodeOutlineFilter(language.GrammarData, OutlineOptions.None, null);
     filters.Add(outlineFilter);
 }
Ejemplo n.º 5
0
        }//constructor

        public override void CreateTokenFilters(LanguageData language, TokenFilterList filters)
        {
            var outlineFilter = new CodeOutlineFilter(language.GrammarData, OutlineOptions.ProduceIndents, ToTerm(@"\"));
            filters.Add(outlineFilter);

        }