Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

尽力修正 lex 中的高亮

不然,以下代码将会被错误地高亮:

%{
int count = 0;
%}
  • Loading branch information...
commit 1410b0a8169ede15b5ba7c5c0868748aa6be85df 1 parent cd48880
依云 authored
Showing with 9 additions and 3 deletions.
  1. +0 −1  after/syntax/c.vim
  2. +9 −0 after/syntax/lex.vim
  3. +0 −2  syntax/c.vim
1  after/syntax/c.vim
View
@@ -1,7 +1,6 @@
" Vim syntax file
" FileType: C/C++
" Author: lilydjwg
-" Last Change: 2009年12月22日
syntax case match
9 after/syntax/lex.vim
View
@@ -0,0 +1,9 @@
+" Vim syntax file
+" FileType: lex
+" Author: lilydjwg
+
+if has("folding")
+ syn region lexInclude fold matchgroup=lexSep start="^%{" end="%}" contained contains=ALLBUT,@lexListGroup,cCppInIf,cCppOutIf,cCppOutIf2,cCppOutElse,cCppOutSkip
+else
+ syn region lexInclude matchgroup=lexSep start="^%{" end="%}" contained contains=ALLBUT,@lexListGroup,cCppInIf,cCppOutIf,cCppOutIf2,cCppOutElse,cCppOutSkip
+endif
2  syntax/c.vim
View
@@ -1,7 +1,6 @@
" Vim syntax file
" Language: C
" Maintainer: lilydjwg <lilydjwg@gmail.com>
-" Last Change: 2010年2月11日
"========================================================
" Highlight All Function
@@ -10,7 +9,6 @@
" syn match cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*("me=e-1
" hi link cFunction Function
-" 详见 man vim-addons
runtime! syntax/gtk.vim
runtime! syntax/gdk.vim
runtime! syntax/gdkpixbuf.vim
Please sign in to comment.
Something went wrong with that request. Please try again.