| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |