Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5480

Can't fold a class/method when a range of PHP tags overlaps a range of class/method body

    XMLWordPrintableJSON

Details

    Description

      Hi i have a problem with code folding "<?php ?>"

      if you have this PHP code

      Segnaposto codice // 
      <?php
      class A {
          function B(){
              ?><div>Hello</div><?php
          }
      }
      

      when you create it it's ok, but if you save, close and re-open it ,

      you can see collapse <?php -> ?> and break folding as in image (tmp_code_php.jpg)

       

      Actual result after save, close & reopen file .php

      image attached wrong_tmp_code_php.jpg

       

      Expected result:

      image attached aspected_tmp_code_php.jpg

       

       

      Thank you

      Attachments

        1. netbeans-5480-1.jpg
          28 kB
          Junichi Yamamoto
        2. wrong_tmp_code_php.jpg
          68 kB
          Stefano Calabrese
        3. aspected_tmp_code_php.jpg
          72 kB
          Stefano Calabrese

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              stefanoai Stefano Calabrese
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m