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

Unified Diff: third_party/gsutil/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 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
Index: third_party/gsutil/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g
diff --git a/third_party/pipeline/pipeline/ui/common.css b/third_party/gsutil/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g
similarity index 50%
copy from third_party/pipeline/pipeline/ui/common.css
copy to third_party/gsutil/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g
index e967126e5ffa0d02183275eb3a3fa3e025a6ea21..534e1f8aa85916e9b93621b18c06d79ed0200915 100644
--- a/third_party/pipeline/pipeline/ui/common.css
+++ b/third_party/gsutil/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g
@@ -1,5 +1,6 @@
-/*
- * Copyright 2010 Google Inc.
+/* !/usr/bin/env python
+ *
+ * Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,32 +14,32 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-html, body {
- padding: 0;
- margin: 0;
- width: 100%;
- font-family: helvetica, sans-serif;
- font-size: 14px;
-}
-#butter {
- position: absolute;
- top: 0;
- min-width: 300px;
- background-color: #C5D7EF;
- text-align: center;
- padding: 5px;
- border-left: 1px solid #3366CC;
- border-right: 1px solid #3366CC;
- border-bottom: 1px solid #3366CC;
-}
-#butter.error {
- /* Make stack traces legible. */
- text-align: left;
-}
-#butter a:visited,
-#butter a:active,
-#butter a:link,
-#butter a:hover {
- color: #3366CC;
+grammar pyprotobuf;
+
+options {
+// language=Python;
+ output = AST;
+ ASTLabelType = CommonTree;
}
+
+import protobuf_lexer, protobuf;
+
+// For reasons I do not understand the HIDDEN elements from the imported
+// with their channel intact.
+
+COMMENT
+ : '//' ~('\n'|'\r')* '\r'? '\n' {$channel=HIDDEN;}
+ | '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;}
+ ;
+
+WS : ( ' '
+ | '\t'
+ | '\r'
+ | '\n'
+ ) {$channel=HIDDEN;}
+ ;
+
+py_proto_file
+ : proto_file EOF^
+ ;

Powered by Google App Engine
This is Rietveld 408576698