Skip to content

Commit

Permalink
Merge branch 'ticket-14'. Fixes #14.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 22, 2022
2 parents e18c4be + da0c62b commit 9c21c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cssutils/cssproductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'invalid1': r'\"([^\n\r\f\\"]|\\{nl}|{escape})*',
'invalid2': r"\'([^\n\r\f\\']|\\{nl}|{escape})*",
'comment': r'\/\*[^*]*\*+([^/][^*]*\*+)*\/',
'ident': r'[-]?{nmstart}{nmchar}*',
'ident': r'[-]{0,2}{nmstart}{nmchar}*',
'name': r'{nmchar}+',
# TODO???
'num': r'[+-]?[0-9]*\.[0-9]+|[+-]?[0-9]+', # r'[-]?\d+|[-]?\d*\.\d+',
Expand Down
1 change: 1 addition & 0 deletions cssutils/tests/test_tokenize2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class TestTokenizer:
' a ': [('S', ' ', 1, 1), ('IDENT', 'a', 1, 2), ('S', ' ', 1, 3)],
'_a': [('IDENT', '_a', 1, 1)],
'-a': [('IDENT', '-a', 1, 1)],
'--a': [('IDENT', '--a', 1, 1)],
'aA-_\200\377': [('IDENT', 'aA-_\200\377', 1, 1)],
'a1': [('IDENT', 'a1', 1, 1)],
# escapes must end with S or max 6 digits:
Expand Down

0 comments on commit 9c21c95

Please sign in to comment.