-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I'm using the full spf13-vim package, but I think this issue is related to PIV. When I edit most files of projects (old php code with functions only, or a big class file) I lose syntax highlighting after saving. I got a sample code to reproduce the problem:
http://pastebin.com/UCKxiPQd
- Open the file go to the end (G). Syntax should be broken already (look at the variable colors)
- Go back to the first line (gg) and scroll down to the end using }. Syntax is working!
- Save the file (:w). Syntax is broken again
The strange thing is: if i remove something like the first method (get_id) the problem is gone. When I delete the constants, the problem is gone. Not sure how to fix it myself. I assume the highlighter is breaking on some pattern but that is currently out of my league :(
Due to this bug vim is not usable for all my projects as it happens in almost all files. Hope this can be fixed!
Metadata
Metadata
Assignees
Labels
No labels