Saturday, August 18, 2012

Vim perl highlighting doesn't understand UTF-8?

I have a routine in Perl that I wanted to ensure I marked for my self as
a function (vs. an object method that would expect an extra param,
first, that would refer to the object -- changing how the function is
called and how the function expects to get parameters when it is called).

So I used the small letter 'f' with a hook, or script 'f' that is used
in formula as short for function, 'ƒ' as the first char of my function:



920 sub ƒshow_progress($) {
921 #my $p = shift if ref $_[0];
922 my $paths = $_[0];

But the 'ƒ' in ƒshow_progress ends up being highlighted in red. Is there
a way to tell the vim syntax checker to allow UTF-8.

It would be great if it could automatically detect a 'use utf8'; in the
source and adjust automagically!... ;-)


Thanks!

Linda



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: