diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-10-05 22:26:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-10-05 22:26:30 +0200 |
commit | 0c5fa7d740bafefbf0b2ea48a2a660901d7d4f10 (patch) | |
tree | 3dd614cf04a6ec0c1e8148f6aec23d5010519f1a /runtime/syntax/javacc.vim | |
parent | d1f13fd5978df5fd4b2e0fbc61e671edec958e15 (diff) | |
download | vim-git-0c5fa7d740bafefbf0b2ea48a2a660901d7d4f10.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/syntax/javacc.vim')
-rw-r--r-- | runtime/syntax/javacc.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/syntax/javacc.vim b/runtime/syntax/javacc.vim index 57c57b568..5458de754 100644 --- a/runtime/syntax/javacc.vim +++ b/runtime/syntax/javacc.vim @@ -2,7 +2,7 @@ " Language: JavaCC, a Java Compiler Compiler written by JavaSoft " Maintainer: Claudio Fleiner <claudio@fleiner.com> " URL: http://www.fleiner.com/vim/syntax/javacc.vim -" Last Change: 2001 Jun 20 +" Last Change: 2012 Oct 05 " Uses java.vim, and adds a few special things for JavaCC Parser files. " Those files usually have the extension *.jj @@ -15,6 +15,9 @@ elseif exists("b:current_syntax") finish endif +let s:cpo_save = &cpo +set cpo&vim + " source the java.vim file if version < 600 source <sfile>:p:h/java.vim @@ -44,7 +47,7 @@ syn keyword javaccPackages options DEBUG_PARSER DEBUG_LOOKAHEAD DEBUG_TOKEN_MANA syn keyword javaccPackages COMMON_TOKEN_ACTION IGNORE_CASE CHOICE_AMBIGUITY_CHECK syn keyword javaccPackages OTHER_AMBIGUITY_CHECK STATIC LOOKAHEAD ERROR_REPORTING syn keyword javaccPackages USER_TOKEN_MANAGER USER_CHAR_STREAM JAVA_UNICODE_ESCAPE -syn keyword javaccPackages UNICODE_INPUT +syn keyword javaccPackages UNICODE_INPUT JDK_VERSION syn match javaccPackages "PARSER_END([^)]*)" syn match javaccPackages "PARSER_BEGIN([^)]*)" syn match javaccSpecToken "<EOF>" @@ -73,5 +76,7 @@ if version >= 508 || !exists("did_css_syn_inits") endif let b:current_syntax = "javacc" +let &cpo = s:cpo_save +unlet s:cpo_save " vim: ts=8 |