Show
Ignore:
Timestamp:
05/23/07 19:47:51 (19 months ago)
Author:
oren
Message:

Fix a bug (greedy assigment of properties to collection instead of to entry, ypaste # 6).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/YamlReference/Text/Yaml/Reference.hs

    r3 r4  
    470470-- that it is that easy to draw the line - is @sLine@ generic or specific?). 
    471471data State = State { 
    472     sName         :: !String,          -- ^ The input name for error messages. 
    473     sEncoding     :: !Encoding,        -- ^ The input UTF encoding. 
    474     sDecision     :: !String,          -- ^ Current decision name. 
    475     sLimit        :: !Int,             -- ^ Lookahead characters limit. 
    476     sForbidden    :: !(Maybe Pattern), -- ^ Pattern we must not enter into. 
    477     sIsPeek       :: !Bool,            -- ^ Disables token generation. 
    478     sChars        :: ![Char],          -- ^ (Reversed) characters collected for a token. 
    479     sOffset       :: !Int,             -- ^ Offset in characters in the input. 
    480     sLine         :: !Int,             -- ^ Builds on YAML's line break definition. 
    481     sColumn       :: !Int,             -- ^ Actually character number - we hate tabs. 
    482     sCode         :: !Code,            -- ^ Of token we are collecting chars for. 
    483     sLast         :: !Char,            -- ^ Last matched character. 
    484     sInput        :: ![Char]           -- ^ The decoded input characters. 
     472    sName      :: !String,          -- ^ The input name for error messages. 
     473    sEncoding  :: !Encoding,        -- ^ The input UTF encoding. 
     474    sDecision  :: !String,          -- ^ Current decision name. 
     475    sLimit     :: !Int,             -- ^ Lookahead characters limit. 
     476    sForbidden :: !(Maybe Pattern), -- ^ Pattern we must not enter into. 
     477    sIsPeek    :: !Bool,            -- ^ Disables token generation. 
     478    sChars     :: ![Char],          -- ^ (Reversed) characters collected for a token. 
     479    sOffset    :: !Int,             -- ^ Offset in characters in the input. 
     480    sLine      :: !Int,             -- ^ Builds on YAML's line break definition. 
     481    sColumn    :: !Int,             -- ^ Actually character number - we hate tabs. 
     482    sCode      :: !Code,            -- ^ Of token we are collecting chars for. 
     483    sLast      :: !Char,            -- ^ Last matched character. 
     484    sInput     :: ![Char]           -- ^ The decoded input characters. 
    485485  } 
    486486 
     
    14141414                 $ PAT(ns_s_flow_map_entries) 
    14151415                 $ PAT(ns_s_flow_seq_entries) 
    1416                  $ PAT(s_l__block_content) 
     1416                 $ PAT(s_l__block_collection) 
    14171417                 $ PAT(s_l__block_in_block) 
    14181418                 $ PAT(s_l__block_indented) 
    14191419                 $ PAT(s_l__block_node) 
     1420                 $ PAT(s_l__block_scalar) 
    14201421                 $ PAT(s_ns_flow_map_explicit_empty) 
    14211422                 $ PAT(s_ns_flow_map_explicit_entry)