#1864: [RFC] Change coding standard to avoid 2 space outdent.
------------------------------+---------------------------------------------
 Reporter:  bacek             |       Owner:  jkeenan
     Type:  RFC               |      Status:  new    
 Priority:  normal            |   Milestone:  2.11   
Component:  coding_standards  |     Version:  2.10.0 
 Severity:  medium            |    Keywords:         
     Lang:                    |       Patch:         
 Platform:                    |  
------------------------------+---------------------------------------------
Changes (by jkeenan):

  * owner:  => jkeenan
  * component:  none => coding_standards


Comment:

 1. Concession in advance:  I don't know editors other than vim.  It
 appears we also support emacs and kate.

 2. Concession in advance:  I have never attempted to write editor files
 even for vim.

 3. The only code I could find under ''editors/'' that appeared to be
 relevant to this discussion was this part of ''indent_pir.vim'':
 {{{
      19 fun! PIRIndent()
 ...
      59     let LABEL = '^\s*\k\+:'
      60
      61     if prevline =~? SUB
      62         let ind = ind + &sw
      63     endif
      64
      65     if prevline =~? RETURNBLOCK
      66         let ind = ind + &sw
      67     endif
      68
      69     if prevline =~? LABEL
      70         let ind = ind + 2
      71     endif
      72
      73     if thisline =~? END
      74         let ind = ind - &sw
      75     endif
      76
      77     if thisline =~? LABEL
      78         let ind = ind - 2
      79     endif
      80
      81     return ind
      82
      83 endfun
 }}}
 If I changed `2` to `4` at lines 70 and 78, would that effect the change
 bacek desires?  Would that be wise?

 Thank you very much.

 kid51

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1864#comment:6>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to