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

Unified Diff: tools/utils/vim/syntax/dart.vim

Issue 10207025: Vim syntax updates: highlight dart core interfaces (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils/vim/syntax/dart.vim
diff --git a/tools/utils/vim/syntax/dart.vim b/tools/utils/vim/syntax/dart.vim
index 3d00b579809935584d8d3573989e3da3af7271bc..a16071ffee21cffe534f05b2a6991d2f69e08dab 100644
--- a/tools/utils/vim/syntax/dart.vim
+++ b/tools/utils/vim/syntax/dart.vim
@@ -21,12 +21,16 @@ syn keyword dartRepeat do while for
syn keyword dartBoolean true false
syn keyword dartConstant null
syn keyword dartTypedef this super class typedef
-syn keyword dartOperator new is in factory
+syn keyword dartOperator new is in factory const
syn match dartOperator "+=\=\|-=\=\|*=\=\|/=\=\|%=\=\|\~/=\=\|<<=\=\|>>=\=\|[<>]=\=\|===\=\|\!==\=\|&=\=\|\^=\=\||=\=\|||\|&&\|\[\]=\=\|=>\|!\|\~"
-syn keyword dartType void var const bool int double num
+syn keyword dartType void var final bool int double num
+syn keyword dartCommonInterfaces String Object Math RegExp Date
+syn keyword dartInterfaces Collection Comparable Completer Duration Dynamic Function Future Hashable HashMap HashSet Iterable Iterator LinkedHashMap List Map Match Options Pattern Queue Set Stopwatch StringBuffer TimeZone
+syn keyword dartErrors AssertionError TypeError FallThroughError
syn keyword dartStatement return
-syn keyword dartStorageClass static final abstract
+syn keyword dartStorageClass static abstract
syn keyword dartExceptions throw try catch finally
+syn keyword dartExceptions BadNumberFormatException ClosureArgumentMismatchException EmptyQueueException Exception ExpectException FutureAlreadyCompleteException FutureNotCompleteException IllegalAccessException IllegalArgumentException IllegalJSRegExpException IndexOutOfRangeException IntegerDivisionByZeroException NoMoreElementsException NoSuchMethodException NotImplementedException NullPointerException ObjectNotClosureException OutOfMemoryException StackOverflowException UnsupportedOperationException WrongArgumentCountException
syn keyword dartAssert assert
syn keyword dartClassDecl extends implements interface
" TODO(antonm): check if labels on break and continue are supported.
@@ -56,6 +60,8 @@ syn match dartSpecialChar contained "\\\(u\x\{4\}\|u{\x\+}\|x\x\x\|x{\x\+}\|
" Numbers
syn match dartNumber "\<\d\+\(\.\d\+\)\=\>"
+syn match dartInclude "^#\(import\|include\|source\|library\)(\(\"[^\"]\+\"\|'[^']\+'\));"
+
" The default highlighting.
command! -nargs=+ HiLink hi def link <args>
HiLink dartVarArg Function
@@ -86,6 +92,10 @@ HiLink dartType Type
HiLink dartInterpolation PreProc
HiLink dartDocLink SpecialComment
HiLink dartSpecialChar SpecialChar
+HiLink dartInclude Include
+HiLink dartErrors Error
+HiLink dartCommonInterfaces Type
+HiLink dartInterfaces Type
delcommand HiLink
let b:current_syntax = "dart"
« 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