mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
* test_select.py: (some) tests for built-in select module
* test_grammar.py, testall.out: added test for funny things in string literals * token.py, symbol.py: definitions used with built-in parser module. * tokenize.py: added double-quote recognition
This commit is contained in:
parent
52f2c05401
commit
b31c7f732a
6 changed files with 155 additions and 1 deletions
|
@ -24,7 +24,9 @@ Expfloat = '[0-9]+' + Exponent
|
|||
Floatnumber = Pointfloat + '\|' + Expfloat
|
||||
Number = Floatnumber + '\|' + Intnumber
|
||||
|
||||
String = '\'\(\\\\.\|[^\\\n\']\)*\''
|
||||
String = '\'\(\\\\.\|[^\\\n\']\)*\'' + '\|' + '"\(\\\\.\|[^\\\n"]\)*"'
|
||||
# Note: this module *recognizes* double quotes, but for backward
|
||||
# compatibility, it doesn't *use* them!
|
||||
|
||||
Operator = '~\|\+\|-\|\*\|/\|%\|\^\|&\||\|<<\|>>\|==\|<=\|<>\|!=\|>=\|=\|<\|>'
|
||||
Bracket = '[][(){}]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue