Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194200 - app-editors/vim-core: a bug in Metapost syntax highlighting
Summary: app-editors/vim-core: a bug in Metapost syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-29 14:02 UTC by Jan Holecek
Modified: 2011-03-14 07:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Holecek 2007-09-29 14:02:50 UTC
The verbatimtex/etex and btex/etex sections of Metapost files are not highlighted properly - the token 'etex' is not highlighted. This applies to x86 and amd64 architectures and all versions 7.x of vim and vimcore currently in the portage tree (7.0.235, 7.1.042, 7.1.123).

Reproducible: Always

Steps to Reproduce:
1. All personal Vim settings removed.
2. Edit a file with 'btex ... etex'.
Actual Results:  
The 'etex' token is not highlighted.

Expected Results:  
The 'etex' token should be highlighted.

The Vim syntax file syntax/mp.vim declares it was last modified in 2001 which suggests a recent change somewhere else is responsible for bad highlighting. Moreover, the very same syntax/mp.vim works well on RHEL5 with RPMs
vim-common-7.0.109-3.el5.3
vim-minimal-7.0.109-3.el5.3
vim-enhanced-7.0.109-3.el5.3

However, there's a simple patch for the file syntax/mp.vim to get 'etex' highlighted. It's enough to replace the definition of mpTeXinsert with this:

syn region mpTeXinsert start="\(verbatimtex\|btex\)" end="etex" contains=mpTeXbegin,mpTeXend keepend
Comment 1 Tim Harder gentoo-dev 2011-03-14 07:56:45 UTC
I think this is fixed in the versions currently in the tree. Please reopen this bug if it isn't.