ragel.vim


Ⅰ. 插件描述

My "fork" of Adrian Thurston's syntax file

Ⅱ. 基本信息

创建日期:  2011-04-15
使用用户:  25
Github星:  12
插件作者:  Jeanine Adkisson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jneen/ragel-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jneen/ragel-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jneen/ragel-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jneen/ragel.vim

Ⅳ. 文档说明

# ragel.vim

This syntax file highlights ragel files with real highlighting for the host language.

Major caveat

If the host language's highlighter uses ALL or ALLBUT (I'm looking at you, c.vim), this will cause some ragel highlighting rules to leak into the outer code. A hack to fix this is:

sudo sed -i 's/ALLBUT|ALL/TOP/g' /usr/share/vim/vimcurrent/syntax/$host.vim

If anyone has tips on how to fix this in ragel.vim (other than reading the host syntax file and using substitute()), please let me know.

添加新评论