Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.86 kb
" Vim syntax file
" Language: YUI3
" Maintainer: Ryan Grove <ryan@wonko.com>
" Last Change: <%= Time.now.strftime('%B %d, %Y') %>
" This syntax file is meant to augment Yi Zhao's javascript.vim syntax. Install
" it in your ~/.vim/after/syntax/ directory so it will run after the original
" javascript.vim.
"
" This is a bit hacky right now, but it works. Someone who knows more about vim
" syntax files than I do should make this better.
syntax keyword javaScriptGlobalObjects Y YUI <%= classes.join(' ') %>
syntax keyword javaScriptFunction <%= functions.join(' ') %>
syntax keyword javaScriptYUI3Constant containedin=javaScriptBlock <%= constants.join(' ') %>
syntax keyword javaScriptYUI3Property containedin=javaScriptBlock <%= variables.join(' ') %>
hi link javaScriptYUI3Constant Constant
hi link javaScriptYUI3Property Identifier
Jump to Line
Something went wrong with that request. Please try again.