Changeset 229 for trunk/ext

Show
Ignore:
Timestamp:
09/20/2005 18:42:51 (3 years ago)
Author:
why
Message:

lib/token.re: correctly find the parental indentation for block scalars.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/ruby/yts/YtsSpecificationExamples.yml

    r207 r229  
    22162216     'both are equal to' => '  This has no newline.'  
    22172217   }  
     2218syck: | 
     2219  struct test_node map[] = { 
     2220      { T_STR, 0, "empty" }, 
     2221          { T_STR, 0, "" }, 
     2222      { T_STR, 0, "literal" }, 
     2223          { T_STR, 0, "The \\ ' \" characters may be\nfreely used. Leading white\n   space " 
     2224               "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" 
     2225               "empty line and ends with a\nsingle line break, but does\nnot start with one.\n" }, 
     2226      { T_STR, 0, "is equal to" }, 
     2227          { T_STR, 0, "The \\ ' \" characters may be\nfreely used. Leading white\n   space " 
     2228               "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" 
     2229               "empty line and ends with a\nsingle line break, but does\nnot start with one.\n" }, 
     2230      { T_STR, 0, "indented and chomped" }, 
     2231          { T_STR, 0, "  This has no newline." }, 
     2232      { T_STR, 0, "also written as" }, 
     2233          { T_STR, 0, "  This has no newline." }, 
     2234      { T_STR, 0, "both are equal to" }, 
     2235          { T_STR, 0, "  This has no newline." }, 
     2236      end_node 
     2237  }; 
     2238  struct test_node stream[] = { 
     2239      { T_MAP, 0, 0, map }, 
     2240      end_node 
     2241  }; 
     2242 
    22182243  
    22192244---