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

Unified Diff: lib/dom/scripts/templateloader.py

Issue 10694169: Add template comments; update copyright in template file in anticipation of new uses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/templateloader_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/templateloader.py
diff --git a/lib/dom/scripts/templateloader.py b/lib/dom/scripts/templateloader.py
index f7229f477be2c1b14f545358a2ffcf9bd3aa38ea..3c9507174ddca14cb6d5a91e15cf090fb3e17f0e 100644
--- a/lib/dom/scripts/templateloader.py
+++ b/lib/dom/scripts/templateloader.py
@@ -7,6 +7,7 @@
#
# Preprocessor language:
#
+# //$ Comment line removed by preprocessor
# $if VAR
# $else
# $endif
@@ -101,6 +102,8 @@ class TemplateLoader(object):
# Something else, like '$!MEMBERS'
if active:
out.append(full_line)
+ elif line.startswith('//$'):
+ pass # Ignore pre-processor comment.
else:
if active:
« no previous file with comments | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/templateloader_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698