comparison runtime/syntax/racc.vim @ 389:4fe8e1a7758e v7.0102

updated for version 7.0102
author vimboss
date Mon, 04 Jul 2005 22:49:24 +0000
parents f14cbd913415
children 1f3b1021f002
comparison
equal deleted inserted replaced
388:f92bb1845823 389:4fe8e1a7758e
1 " Vim default file 1 " Vim default file
2 " Language: Racc input file 2 " Language: Racc input file
3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> 3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
4 " Latest Revision: 2005-06-29 4 " Latest Revision: 2005-07-04
5 5
6 if exists("b:current_syntax") 6 if exists("b:current_syntax")
7 finish 7 finish
8 endif 8 endif
9 9
10 let s:cpo_save = &cpo 10 let s:cpo_save = &cpo
11 set cpo&vim 11 set cpo&vim
12 12
13 syn keyword raccTodo contained TODO FIXME XXX NOTE 13 syn keyword raccTodo contained TODO FIXME XXX NOTE
14 14
15 syn region raccComment matchgroup=raccComment start='/\*' end='\*/' 15 syn region raccComment start='/\*' end='\*/'
16 \ contains=raccTodo,@Spell 16 \ contains=raccTodo,@Spell
17 syn region raccComment matchgroup=raccComment start='#' end='$' 17 syn region raccComment display oneline start='#' end='$'
18 \ contains=raccTodo,@Spell 18 \ contains=raccTodo,@Spell
19 19
20 syn region raccClass transparent matchgroup=raccKeyword 20 syn region raccClass transparent matchgroup=raccKeyword
21 \ start='\<class\>' end='\<rule\>'he=e-4 21 \ start='\<class\>' end='\<rule\>'he=e-4
22 \ contains=raccComment,raccPrecedence, 22 \ contains=raccComment,raccPrecedence,
75 75
76 syn match raccTargetS contained '\<\l[a-z0-9]*\>' 76 syn match raccTargetS contained '\<\l[a-z0-9]*\>'
77 77
78 syn match raccSpecial contained '\\["'\\]' 78 syn match raccSpecial contained '\\["'\\]'
79 79
80 syn region raccString matchgroup=raccString start=+"+ skip=+\\\\\|\\"+ 80 syn region raccString start=+"+ skip=+\\\\\|\\"+ end=+"+
81 \ end=+"+ contains=raccSpecial 81 \ contains=raccSpecial
82 syn region raccString matchgroup=raccString start=+'+ skip=+\\\\\|\\'+ 82 syn region raccString start=+'+ skip=+\\\\\|\\'+ end=+'+
83 \ end=+'+ contains=raccSpecial 83 \ contains=raccSpecial
84 84
85 syn region raccRules transparent matchgroup=raccKeyword start='\<rule\>' 85 syn region raccRules transparent matchgroup=raccKeyword start='\<rule\>'
86 \ end='\<end\>' contains=raccComment,raccString, 86 \ end='\<end\>' contains=raccComment,raccString,
87 \ raccNumber,raccToken,raccTarget,raccDelimiter, 87 \ raccNumber,raccToken,raccTarget,raccDelimiter,
88 \ raccAction 88 \ raccAction