#808: VIM syntax file: fix parsing of quoted ".end"
-------------------+--------------------------------------------------------
 Reporter:  flh    |        Type:  bug   
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  none  
  Version:  trunk  |    Severity:  medium
 Keywords:         |        Lang:        
    Patch:  new    |    Platform:        
-------------------+--------------------------------------------------------
 The vim syntax file for PIR currently treats a quoted '.end' in a string
 as the PIR .end directive, i.e., in the following example, VIM thinks that
 the sub ends after `$S0 = "`:

 {{{
 .sub 'my_sub'
     $S0 = ".end"
     .return ($S0)
 .end
 }}}

 The small attached patch to pir_vim.in fixes that (now, sub ends are
 matched by "`\^\s*\.end`" instead of simply "`\.end`"). It also updates
 the definition for macro ends (.endm) in the same way.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/808>
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