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

Unified Diff: tools/gn/misc/vim/syntax/gn.vim

Issue 2672573002: Add vim support for highlighting GN target names (Closed)
Patch Set: Created 3 years, 11 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/gn/misc/vim/syntax/gn.vim
diff --git a/tools/gn/misc/vim/syntax/gn.vim b/tools/gn/misc/vim/syntax/gn.vim
index 55f18524c936c536e0702d0a559f1e4e46bd18a5..0fbd6e016b84eb5a1057b76d98f480a4b9ea4a6f 100644
--- a/tools/gn/misc/vim/syntax/gn.vim
+++ b/tools/gn/misc/vim/syntax/gn.vim
@@ -52,8 +52,10 @@ syn keyword gnVariable visibility
hi def link gnVariable Keyword
" Strings
-syn region gnString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
+syn region gnString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,gnTargetName
+syn match gnTargetName '\v:[^"]+' contained
hi def link gnString String
+hi def link gnTargetName Special
" Comments
syn keyword gnTodo contained TODO FIXME XXX BUG NOTE
« 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