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

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

Issue 10843054: Vim support for 'external'. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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) 2012, the Dart project authors. Please see the AUTHORS file 2 " Copyright (c) 2012, 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 17 matching lines...) Expand all
28 syn keyword dartInterfaces Collection Comparable Completer Duration Dynami c Function Future Hashable HashMap HashSet Iterable Iterator LinkedHashMap List Map Match Options Pattern Queue Set Stopwatch StringBuffer TimeZone 28 syn keyword dartInterfaces Collection Comparable Completer Duration Dynami c Function Future Hashable HashMap HashSet Iterable Iterator LinkedHashMap List Map Match Options Pattern Queue Set Stopwatch StringBuffer TimeZone
29 syn keyword dartErrors AssertionError TypeError FallThroughError 29 syn keyword dartErrors AssertionError TypeError FallThroughError
30 syn keyword dartStatement return 30 syn keyword dartStatement return
31 syn keyword dartStorageClass static abstract 31 syn keyword dartStorageClass static abstract
32 syn keyword dartExceptions throw try catch finally 32 syn keyword dartExceptions throw try catch finally
33 syn keyword dartExceptions BadNumberFormatException ClosureArgumentMismatchE xception EmptyQueueException Exception ExpectException FutureAlreadyCompleteExce ption FutureNotCompleteException IllegalAccessException IllegalArgumentException IllegalJSRegExpException IndexOutOfRangeException IntegerDivisionByZeroExceptio n NoMoreElementsException NoSuchMethodException NotImplementedException NullPoin terException ObjectNotClosureException OutOfMemoryException StackOverflowExcepti on UnsupportedOperationException WrongArgumentCountException 33 syn keyword dartExceptions BadNumberFormatException ClosureArgumentMismatchE xception EmptyQueueException Exception ExpectException FutureAlreadyCompleteExce ption FutureNotCompleteException IllegalAccessException IllegalArgumentException IllegalJSRegExpException IndexOutOfRangeException IntegerDivisionByZeroExceptio n NoMoreElementsException NoSuchMethodException NotImplementedException NullPoin terException ObjectNotClosureException OutOfMemoryException StackOverflowExcepti on UnsupportedOperationException WrongArgumentCountException
34 syn keyword dartAssert assert 34 syn keyword dartAssert assert
35 syn keyword dartClassDecl extends implements interface 35 syn keyword dartClassDecl extends implements interface
36 " TODO(antonm): check if labels on break and continue are supported. 36 " TODO(antonm): check if labels on break and continue are supported.
37 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi te 37 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi te
38 syn keyword dartKeyword get set operator call equals negate 38 syn keyword dartKeyword get set operator call equals negate external
39 syn match dartUserLabelRef "\k\+" contained 39 syn match dartUserLabelRef "\k\+" contained
40 syn match dartVarArg "\.\.\." 40 syn match dartVarArg "\.\.\."
41 41
42 " TODO(antonm): consider conditional highlighting of corelib classes. 42 " TODO(antonm): consider conditional highlighting of corelib classes.
43 43
44 syn region dartLabelRegion transparent matchgroup=dartLabel start="\<case\>" matchgroup=NONE end=":" 44 syn region dartLabelRegion transparent matchgroup=dartLabel start="\<case\>" matchgroup=NONE end=":"
45 syn keyword dartLabel default 45 syn keyword dartLabel default
46 46
47 " Comments 47 " Comments
48 syn keyword dartTodo contained TODO FIXME XXX 48 syn keyword dartTodo contained TODO FIXME XXX
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 unlet main_syntax 104 unlet main_syntax
105 endif 105 endif
106 106
107 let b:spell_options="contained" 107 let b:spell_options="contained"
108 108
109 " Enable automatic indentation (2 spaces) 109 " Enable automatic indentation (2 spaces)
110 set expandtab 110 set expandtab
111 set shiftwidth=2 111 set shiftwidth=2
112 set softtabstop=2 112 set softtabstop=2
113 set cindent 113 set cindent
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