| 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 16 matching lines...) Expand all Loading... |
| 27 syn keyword dartOperator new is in factory const | 27 syn keyword dartOperator new is in factory const |
| 28 syn match dartOperator "+=\=\|-=\=\|*=\=\|/=\=\|%=\=\|\~/=\=\|<<=\=\|>>=
\=\|[<>]=\=\|===\=\|\!==\=\|&=\=\|\^=\=\||=\=\|||\|&&\|\[\]=\=\|=>\|!\|\~" | 28 syn match dartOperator "+=\=\|-=\=\|*=\=\|/=\=\|%=\=\|\~/=\=\|<<=\=\|>>=
\=\|[<>]=\=\|===\=\|\!==\=\|&=\=\|\^=\=\||=\=\|||\|&&\|\[\]=\=\|=>\|!\|\~" |
| 29 syn keyword dartType void var final bool int double num dynamic | 29 syn keyword dartType void var final bool int double num dynamic |
| 30 syn keyword dartCommonInterfaces String Object Math RegExp Date | 30 syn keyword dartCommonInterfaces String Object Math RegExp Date |
| 31 syn keyword dartInterfaces Collection Comparable Completer Duration Functi
on Future HashMap HashSet Iterable Iterator LinkedHashMap List Map Match Options
Pattern Queue Set Stopwatch StringBuffer TimeZone | 31 syn keyword dartInterfaces Collection Comparable Completer Duration Functi
on Future HashMap HashSet Iterable Iterator LinkedHashMap List Map Match Options
Pattern Queue Set Stopwatch StringBuffer TimeZone |
| 32 syn keyword dartInterfaces_DEPRECATED Dynamic | 32 syn keyword dartInterfaces_DEPRECATED Dynamic |
| 33 syn keyword dartErrors AssertionError TypeError FallThroughError | 33 syn keyword dartErrors AssertionError TypeError FallThroughError |
| 34 syn keyword dartStatement return | 34 syn keyword dartStatement return |
| 35 syn keyword dartStorageClass static abstract | 35 syn keyword dartStorageClass static abstract |
| 36 syn keyword dartExceptions throw try catch finally | 36 syn keyword dartExceptions throw try catch finally |
| 37 syn keyword dartExceptions FormatException Exception ExpectException FutureA
lreadyCompleteException FutureNotCompleteException./b ArgumentError IllegalJSReg
ExpException IndexOutOfRangeException IntegerDivisionByZeroException NoSuchMetho
dError NotImplementedException NullPointerException OutOfMemoryError StackOverfl
owException StateError UnsupportedError | 37 syn keyword dartExceptions Error FormatException Exception ExpectException F
utureAlreadyCompleteException FutureNotCompleteException ArgumentError IllegalJS
RegExpException IntegerDivisionByZeroException NoSuchMethodError NullPointerExce
ption OutOfMemoryError RangeError StackOverflowException StateError Unimplemente
dError UnsupportedError |
| 38 syn keyword dartExceptions_DEPRECATED BadNumberFormatException | 38 syn keyword dartExceptions_DEPRECATED BadNumberFormatException |
| 39 syn keyword dartAssert assert | 39 syn keyword dartAssert assert |
| 40 syn keyword dartClassDecl extends implements interface | 40 syn keyword dartClassDecl extends implements interface |
| 41 " TODO(antonm): check if labels on break and continue are supported. | 41 " TODO(antonm): check if labels on break and continue are supported. |
| 42 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi
te | 42 syn keyword dartBranch break continue nextgroup=dartUserLabelRef skipwhi
te |
| 43 syn keyword dartKeyword get set operator call equals negate external | 43 syn keyword dartKeyword get set operator call equals negate external |
| 44 syn match dartUserLabelRef "\k\+" contained | 44 syn match dartUserLabelRef "\k\+" contained |
| 45 syn match dartVarArg "\.\.\." | 45 syn match dartVarArg "\.\.\." |
| 46 | 46 |
| 47 " TODO(antonm): consider conditional highlighting of corelib classes. | 47 " TODO(antonm): consider conditional highlighting of corelib classes. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 unlet main_syntax | 119 unlet main_syntax |
| 120 endif | 120 endif |
| 121 | 121 |
| 122 let b:spell_options="contained" | 122 let b:spell_options="contained" |
| 123 | 123 |
| 124 " Enable automatic indentation (2 spaces) | 124 " Enable automatic indentation (2 spaces) |
| 125 set expandtab | 125 set expandtab |
| 126 set shiftwidth=2 | 126 set shiftwidth=2 |
| 127 set softtabstop=2 | 127 set softtabstop=2 |
| 128 set cindent | 128 set cindent |
| OLD | NEW |