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

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

Issue 8432002: Fix hilighting of string interpolation and several operators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/tools/
Patch Set: Created 9 years, 2 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: utils/vim/syntax/dart.vim
===================================================================
--- utils/vim/syntax/dart.vim (revision 952)
+++ utils/vim/syntax/dart.vim (working copy)
@@ -22,7 +22,7 @@
syn keyword dartConstant null
syn keyword dartTypedef this super class typedef
syn keyword dartOperator new is in factory
-syn match dartOperator "+\|-\|*\|[~]\=/\|%\|||\|&&\|!\|==[=]\="
+syn match dartOperator "+\|-\|*\|[~]\=/\|%\|||\|&&\|\(!\|=\)=[=]\=\|=>\|="
syn keyword dartType void var const bool int double num
syn keyword dartStatement return
syn keyword dartStorageClass static final abstract
@@ -49,7 +49,7 @@
" Strings
syn region dartString start=+"+ end=+"+ contains=@Spell,dartInterpolation,dartSpecialChar
syn region dartString start=+'+ end=+'+ contains=@Spell,dartInterpolation,dartSpecialChar
-syn match dartInterpolation contained "\$\(\w+\|{\w\+}\)"
+syn match dartInterpolation contained "\$\(\w\+\|{[^\}]\+}\)"
Anton Muhin 2011/10/31 17:51:31 not sure it's properly handled by implementations,
syn match dartSpecialChar contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
" Numbers
« 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