Ⅰ. 插件描述
Vim syntax highlighting for the [Fancy](http://fancy-lang.org) programming language.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'nuclearsandwich/fancy-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'nuclearsandwich/fancy-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'nuclearsandwich/fancy-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/nuclearsandwich/fancy-vim
Ⅳ. 文档说明
# fancy.vim
*Syntax highlighting, and eventually plugin, for the Fancy programming
language.*
Version: 0.3 Updated 17 October 2011
Installation
This plugin is meant to be installed with pathogen.
Simply clone it into your bundle directory and you're good to go!
What Works
Keywords
classdeftrycatchfinallyretryreturnreturn_localrequire:match->=>case
- Constants
- Special Variables
-true,false,nil,self,super` Conditional message selectors
if:then:,if:then:else:,unless:then:,unless:then:else,if_true:,`if_false:`
Loop message selectors
while:do:,until:do:,loop:
Blocks
{ .. }are recognized but nothing is done with them as yet
- Literal Strings (without interpolation)
- Literal Numbers
- Literal Symbols
- Here Documents
- Comments
- Slots (instance and class variables)
- Dynamically scoped variables (`stdin, stdout, stderr)
- Block arguments
- Regular Expressions (as strings)
What Needs Work
Syntax Highlighting
- Method Selectors
- Method Sends
- Interpolated Strings
- Regexp Internals
- Regexp flags
- Regexp interpolation
- Async
- Futures
Indentation
- Indenting Block Openings
- De-indenting Block Closes
- And all the stuff I haven't seen or thought of yet.
Interesting notes about Fancy identifiers and symbols.
Valid characters for symbols := % ^ & * - + = : | < > [ ] ? ! ~
Valid characters for identifiers := % ^ & * - + = < > ? ! ~