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

Unified Diff: tools/gn/parser.cc

Issue 1038233002: tools/gn: disallow non-canonical integer literals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move kBad tests down by usage Created 5 years, 9 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 | « tools/gn/parse_tree_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/parser.cc
diff --git a/tools/gn/parser.cc b/tools/gn/parser.cc
index 1fa432e3a8061704d7cac1ea900948327140f582..05aab74227bcb8b6aeecc5113e5f698f6806885b 100644
--- a/tools/gn/parser.cc
+++ b/tools/gn/parser.cc
@@ -49,6 +49,8 @@ const char kGrammar_Help[] =
"\n"
" integer = [ \"-\" ] digit { digit } .\n"
"\n"
+ " Leading zeros and negative zero are disallowed.\n"
+ "\n"
"String literals\n"
"\n"
" A string literal represents a string value consisting of the quoted\n"
« no previous file with comments | « tools/gn/parse_tree_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698