Chromium Code Reviews| Index: src/parsing/scanner.h |
| diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h |
| index 0acc7ab019a1c7e033ec9160d905990b4419b1bf..bb734494f9ee5234e7177e95d6a49a4e4a0e3b3c 100644 |
| --- a/src/parsing/scanner.h |
| +++ b/src/parsing/scanner.h |
| @@ -474,6 +474,8 @@ class Scanner { |
| bool FoundHtmlComment() const { return found_html_comment_; } |
| + void set_allow_html_comments(bool allow) { allow_html_comments_ = allow; } |
| + |
| #define DECLARE_ACCESSORS(name) \ |
| inline bool allow_##name() const { return allow_##name##_; } \ |
| inline void set_allow_##name(bool allow) { allow_##name##_ = allow; } |
| @@ -804,6 +806,9 @@ class Scanner { |
| // Whether this scanner encountered an HTML comment. |
| bool found_html_comment_; |
| + // Whether this scanner should recognize HTML-like comment tokens. |
|
vogelheim
2016/05/27 08:08:49
Please be clear on what this does.
As I read the
mike3
2016/05/27 15:53:22
Yes, you are right. I'm afraid I applied Adam's fe
|
| + bool allow_html_comments_; |
| + |
| bool allow_harmony_exponentiation_operator_; |
| MessageTemplate::Template scanner_error_; |