diff options
author | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
commit | 59b31ae8596f9606217b09d4e3f00dcf5aab8475 (patch) | |
tree | c1eaef9b3c98f48c449cd84a59c751528f7c45b5 /test/scanners/python/literals.expected.raydebug | |
parent | a40476dc4a91737182f78fe939e1d91bd644ea99 (diff) | |
download | coderay-59b31ae8596f9606217b09d4e3f00dcf5aab8475.tar.gz |
Improved Python scanner (issue #41).
* fixed numeric literals
* better Python 3 support
* bugfixes, optimizations
* added two more test files
Diffstat (limited to 'test/scanners/python/literals.expected.raydebug')
-rw-r--r-- | test/scanners/python/literals.expected.raydebug | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/scanners/python/literals.expected.raydebug b/test/scanners/python/literals.expected.raydebug new file mode 100644 index 0000000..ca7d22b --- /dev/null +++ b/test/scanners/python/literals.expected.raydebug @@ -0,0 +1,16 @@ +comment(# from http://docs.python.org/reference/lexical_analysis.html#literals) + +ident(re)operator(.)ident(compile)operator(()string<delimiter(")content([A-Za-z_])delimiter(")> comment(# letter or underscore) + string<delimiter(")content([A-Za-z0-9_]*)delimiter(")> comment(# letter, digit or underscore) + operator(\)) +integer(7) integer(2147483647) oct(0177) +integer(3L) integer(79228162514264337593543950336L) oct(0377L) hex(0x100000000L) + integer(79228162514264337593543950336) hex(0xdeadbeef) + +float(3.14) float(10.) float(.001) float(1e100) float(3.14e-10) float(0e0) + +imaginary(3.14j) imaginary(10.j) imaginary(10j) imaginary(.001j) imaginary(1e100j) imaginary(3.14e-10j) + +integer(2) operator(+) imaginary(1j) + +float(3.5e+54) operator(-) imaginary(2.5e-13j)
\ No newline at end of file |