Bug 24374

Summary: RFE: php syntax highlighting very poor
Product: [Retired] Red Hat Linux Reporter: Dale Lovelace <dale>
Component: vimAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: 7.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-19 17:12:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dale Lovelace 2001-01-19 17:12:05 UTC
If a php program is more than 100 lines long or so vim does a very poor
job with syntax highlighting. vim will "lose it's place" and stop
highlighting correctly. Changing the /usr/share/vim/vim57/syntax/php3.vim
file like this helps greatly:

@@ -208,7 +208,7 @@
 if exists("php3_minlines")
   exec "syn sync minlines=" . php3_minlines
 else
-  syn sync minlines=100
+  syn sync minlines=500
 endif
 
 if !exists("did_php3_syntax_inits")

Comment 1 Bernhard Rosenkraenzer 2001-01-22 12:14:09 UTC
Done in vim-6.0-0.21