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

Unified Diff: Source/build/scripts/make_mediaquery_tokenizer_codepoints.py

Issue 217423005: Get Media Query parser to handle parens, brackets and braces blocks correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added more tests Created 6 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 | « no previous file | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/make_mediaquery_tokenizer_codepoints.py
diff --git a/Source/build/scripts/make_mediaquery_tokenizer_codepoints.py b/Source/build/scripts/make_mediaquery_tokenizer_codepoints.py
index 86af6633c614b6cefa832b278e35f2fe50fc0fbf..ba5199c32a85acc8c92d0414727c5cb2fed97884 100755
--- a/Source/build/scripts/make_mediaquery_tokenizer_codepoints.py
+++ b/Source/build/scripts/make_mediaquery_tokenizer_codepoints.py
@@ -28,6 +28,10 @@ const unsigned codePointsNumber = {array_size};
def token_type(i):
codepoints = {'(': 'leftParenthesis',
')': 'rightParenthesis',
+ '[': 'leftBracket',
+ ']': 'rightBracket',
+ '{': 'leftBrace',
+ '}': 'rightBrace',
'+': 'plusOrFullStop',
'.': 'plusOrFullStop',
'-': 'hyphenMinus',
« no previous file with comments | « no previous file | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698