Impplement operator highlighting

Fixes #7
Closes #9
This commit is contained in:
nfnty
2017-02-24 13:55:46 +01:00
parent 51ea0dab84
commit f7105bd860
4 changed files with 58 additions and 32 deletions

View File

@@ -9,7 +9,7 @@
# Keywords.
with break continue del exec return pass print raise global assert lambda yield
for while if elif else import as try except finally and in is not or
for while if elif else import as try except finally
from test import var as name
@@ -66,6 +66,23 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning
@ декоратор
@ декоратор.décorateur
# Operators
and or in is not
=
- + * ** @ / // %
& | ^ ~ << >>
< <= == != >= >
# Erroneous operators
$ ?
===
-- ++ *** @@ /// %%
&& || ^^ ~~ <<< >>>
<== <<= !== !!= >== >>=
%- +- -+
# Numbers
0 1 2 9 10 0x1f .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
@@ -141,11 +158,10 @@ f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
Test
'''
# Erroneous symbols or bad variable names.
# Erroneous variable names
$ ? 6xav
6xav
&& || ===
# Indentation errors.