Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: tools/utils/vim/syntax/dart.vim

Issue 8954011: Add operator keyword to vim syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 " Vim syntax file " Language: Dart 1 " Vim syntax file " Language: Dart
2 " Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 " Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 " for details. All rights reserved. Use of this source code is governed by a 3 " for details. All rights reserved. Use of this source code is governed by a
4 " BSD-style license that can be found in the LICENSE file. 4 " BSD-style license that can be found in the LICENSE file.
5 5
6 " Quit when a syntax file was already loaded 6 " Quit when a syntax file was already loaded
7 if !exists("main_syntax") 7 if !exists("main_syntax")
8 if version < 600 8 if version < 600
9 syntax clear 9 syntax clear
10 elseif exists("b:current_syntax") 10 elseif exists("b:current_syntax")
(...skipping 13 matching lines...) Expand all
24 syn keyword dartOperator new is in factory 24 syn keyword dartOperator new is in factory
25 syn match dartOperator "+\|-\|*\|[~]\=/\|%\|||\|&&\|\(!\|=\)=[=]\=\|=>\| [<>]=\|=\|!" 25 syn match dartOperator "+\|-\|*\|[~]\=/\|%\|||\|&&\|\(!\|=\)=[=]\=\|=>\| [<>]=\|=\|!"
26 syn keyword dartType void var const bool int double num 26 syn keyword dartType void var const bool int double num
27 syn keyword dartStatement return 27 syn keyword dartStatement return
28 syn keyword dartStorageClass static final abstract 28 syn keyword dartStorageClass static final abstract
29 syn keyword dartExceptions throw try catch finally 29 syn keyword dartExceptions throw try catch finally
30 syn keyword dartAssert assert 30 syn keyword dartAssert assert
31 syn keyword dartClassDecl extends implements interface 31 syn keyword dartClassDecl extends implements interface
32 " TODO(antonm): check if labels on break and continue are supported. 32 " TODO(antonm): check if labels on break and continue are supported.
33 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi te 33 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi te
34 syn keyword dartKeyword function get set 34 syn keyword dartKeyword function get set operator
35 syn match dartUserLabelRef "\k\+" contained 35 syn match dartUserLabelRef "\k\+" contained
36 syn match dartVarArg "\.\.\." 36 syn match dartVarArg "\.\.\."
37 37
38 " TODO(antonm): consider conditional highlighting of corelib classes. 38 " TODO(antonm): consider conditional highlighting of corelib classes.
39 39
40 syn region dartLabelRegion transparent matchgroup=dartLabel start="\<case\>" matchgroup=NONE end=":" 40 syn region dartLabelRegion transparent matchgroup=dartLabel start="\<case\>" matchgroup=NONE end=":"
41 syn keyword dartLabel default 41 syn keyword dartLabel default
42 42
43 " Comments 43 " Comments
44 syn keyword dartTodo contained TODO FIXME XXX 44 syn keyword dartTodo contained TODO FIXME XXX
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 HiLink dartSpecialChar SpecialChar 86 HiLink dartSpecialChar SpecialChar
87 delcommand HiLink 87 delcommand HiLink
88 88
89 let b:current_syntax = "dart" 89 let b:current_syntax = "dart"
90 90
91 if main_syntax == 'dart' 91 if main_syntax == 'dart'
92 unlet main_syntax 92 unlet main_syntax
93 endif 93 endif
94 94
95 let b:spell_options="contained" 95 let b:spell_options="contained"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698