Ticket #176: indent_pir.patch

File indent_pir.patch, 497 bytes (added by jimmy, 5 years ago)
  • editor/indent_pir.vim

     
    5656    let SUB = '^\s*\.pcc_sub\s\+\|^\s*\.sub\s\+\|^\s*\.macro\s\+' 
    5757    let RETURNBLOCK = '\s*\.begin_return\s*$' 
    5858    let END = '^\s*\.end\s*$\|^\s*\.end_return\s*\|^\s*\.endm$' 
    59     let LABEL = '^\s*\k\+:\s*$' 
     59    let LABEL = '^\s*\k\+:' 
    6060 
    6161    if prevline =~? SUB 
    6262        let ind = ind + &sw