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

Unified Diff: mojom/mojom_parser/lexer/tokens.go

Issue 1593543004: Update the mojom lexer to emit comment tokens. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
Index: mojom/mojom_parser/lexer/tokens.go
diff --git a/mojom/mojom_parser/lexer/tokens.go b/mojom/mojom_parser/lexer/tokens.go
index 660a84e574910eeffc5eb2192385520510cbb79a..b341d586d62eaf5da34c30b1ccbdf0ab6017d7e8 100644
--- a/mojom/mojom_parser/lexer/tokens.go
+++ b/mojom/mojom_parser/lexer/tokens.go
@@ -67,6 +67,10 @@ const (
FloatConst
Ordinal
StringLiteral
+
+ // Comments
+ SingleLineComment
+ MultiLineComment
)
// This method is used to generate user-facing strings in compilation error
« mojom/mojom_parser/lexer/token_stream.go ('K') | « mojom/mojom_parser/lexer/token_stream.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698