jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

JavaScript syntax highlighting breaks in .asp files after for loop (no spaces in condition expression) #91

Closed FichteFoll closed 8 years ago

FichteFoll commented 9 years ago

From @apuchkov on January 15, 2015 22:4

OS and OS version: Windows 8.1 Pro Sublime Text Version: 3065 Did you tried to revert to a freshly installed state? No

The problem is broken JavaScript syntax after for loop in .asp files. It happens only:

Example of the problem: Broken highlight

Example of correct syntax highlight Correct syntax highlight

Code to reproduce the problem:

<html>
<head>
    <script type="text/javascript">
        function foo() {
            for (i=0; i<10; i++) {
            }
            var bar = 0;
        }
    </script>
</head>
</html>

Copied from original issue: SublimeTextIssues/Core#642

wbond commented 8 years ago

This was fixed sometime before on with dev build 3110.