/// <summary>
 /// Skips any white spaces or JS comments (//... or /* ... */) and always returns true.
 /// </summary>
 /// <param name="this">This <see cref="VirtualStringMatcher"/>.</param>
 /// <returns>Always true to ease composition.</returns>
 public static bool SkipWhiteSpacesAndJSComments(this VirtualStringMatcher @this)
 {
     @this.MatchWhiteSpaces(0);
     while (@this.TryMatchJSComment())
     {
         @this.MatchWhiteSpaces(0);
     }
     return(true);
 }
Esempio n. 2
0
 /// <summary>
 /// Skips white spaces: simply calls <see cref="IStringMatcher.MatchWhiteSpaces(int)"/>
 /// with 0 minimal count of spaces.
 /// </summary>
 protected virtual void SkipWhiteSpaces()
 {
     _m.MatchWhiteSpaces(0);
 }