https://bugs.kde.org/show_bug.cgi?id=360224

            Bug ID: 360224
           Summary: syntax highlighting not working when PHP inset is in
                    JS function
           Product: kate
           Version: unspecified
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: blauesnic...@gmail.com

As soon as I put a PHP inset into a javascript function the syntax highlighting
breaks from this point on downwards, screwing the syntax highligting for the
rest of the file.

Reproducible: Always

Steps to Reproduce:
Minimum example:

<!DOCTYPE html>
<html>
<head>
  <script>
  function someJSFunc()
  {
<?php
  $var1 = 1;    
?>
  }
  </script>
</head>
</html>

Actual Results:  
The opening tag <?php is not recognised in syntax highlighting and the rest
down is not recognised either in the minimal example, probably as a result of
the first missed <?php tag. For the part above tag <?php syntax highlighting is
working normally. 

As soon as the PHP-inset is deleted or commented out the syntax highlighting is
again working.

Expected Results:  
The PHP-inset should be detected and syntax highlighting working. 

Happens for
KWrite
Version 4.14.3
Under KDE 4.14.9

OS: OpenSuse 13.2, 64 bit

Does not occur for OpenSuse 13.1 and KWrite version 4.11.5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to