Bug 24374 - RFE: php syntax highlighting very poor
RFE: php syntax highlighting very poor
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
7.0
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-01-19 12:12 EST by Dale Lovelace
Modified: 2007-03-26 23:39 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-01-19 12:12:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Dale Lovelace 2001-01-19 12:12:05 EST
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 07:14:09 EST
Done in vim-6.0-0.21

Note You need to log in before you can comment on or make changes to this bug.