JFlex Home

  Home  

  Features  

  Download  

  Documentation  

  Mailing List  

  Bugs  

  Contact  

 


SourceForge Logo
project summary
 
JFlex syntax highlighting for Vim

 

Syntax highlighting is also available for xemacs.

Overview

This page describes the vim syntax file for JFlex. It exentends vim's syntax highlighting to JFlex specifications. It recognizes JFlex keywords, macro definitions, and Java actions.

The vim syntax file is also part of the JFlex distribution (in the lib directory)

Download

  jflex.vim  

Installation

  1. Put the file jflex.vim into the directory ~/.vim/syntax.
  2. Put the following code at the end of your vim init file ~/.vimrc:
    augroup filetype
      au BufRead,BufNewFile *.flex,*.jflex    set filetype=jflex
    augroup END
    au Syntax jflex    so ~/.vim/syntax/jflex.vim
    
most recently modified at 2007-10-29 11:26 UTC by Gerwin Klein