Author Topic: Python syntax  (Read 3165 times)

Offline Fly

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Python syntax
« on: November 17, 2010, 05:23:04 pm »
Hi,

These are not very serious bugs and everybody can fix them by adjusting config files, but I think its better to keep it correct from the box.

1. map is in list of keywords for python, but it's not keyword, it's function.

2. Some keywords, functions, exceptions, etc. are just missed in syntax configuration. It's better to update these lists:

Keywords
from http://docs.python.org/reference/lexical_analysis.html#index-1015
Quote
and
as
assert
break
class
continue
def
del
elif
else
except
exec
finally
for
from
global
if
import
in
is
lambda
not
or
pass
print
raise
return
try
while
with
yield
Functions
Quote
-([email protected])-> curl -s  http://docs.python.org/library/functions.html | grep -o "descname\">[A-Za-z_]*" | cut -d ">" -f2
abs
all
any
basestring
bin
bool
callable
chr
classmethod
cmp
compile
complex
delattr
dict
dir
divmod
enumerate
eval
execfile
file
filter
float
format
frozenset
getattr
globals
hasattr
hash
help
hex
id
input
int
isinstance
issubclass
iter
len
list
locals
long
map
max
memoryview
min
next
object
oct
open
ord
pow
print
property
range
raw_input
reduce
reload
repr
reversed
round
set
setattr
slice
sorted
staticmethod
str
sum
super
tuple
type
type
unichr
unicode
vars
xrange
zip
__import__
apply
buffer
coerce
intern
Exceptions
Quote
-([email protected])-> curl -s  http://docs.python.org/library/exceptions.html | grep -o "descname\">[A-Za-z]*" | cut -d ">" -f2
BaseException
Exception
StandardError
ArithmeticError
LookupError
EnvironmentError
AssertionError
AttributeError
EOFError
FloatingPointError
GeneratorExit
IOError
ImportError
IndexError
KeyError
KeyboardInterrupt
MemoryError
NameError
NotImplementedError
OSError
OverflowError
ReferenceError
RuntimeError
StopIteration
SyntaxError
SystemError
SystemExit
TypeError
UnboundLocalError
UnicodeError
UnicodeEncodeError
UnicodeDecodeError
UnicodeTranslateError
ValueError
VMSError
WindowsError
ZeroDivisionError
Warning
UserWarning
DeprecationWarning
PendingDeprecationWarning
SyntaxWarning
RuntimeWarning
FutureWarning
ImportWarning
UnicodeWarning


And 3. This is rather feature request: code folding doesn't work for Python syntax


HE 1.48.783

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Python syntax
« Reply #1 on: November 18, 2010, 03:26:48 pm »
Hi Fly,

thanks for the correction. I am not an expert in all languages, so schemas can contain errors. Normally kind users report/correct it by themselves and inform/sent me ipdated version. As you did :)

So point 1 and 2 is fixed (the schema is updated in library) and will be delivered with newer version of the HE (1.49). If you will have some more corrections or additions for python schema (file or code templates for example, extension for label definitions etc) that can be useful for other users also send it to me I will update defualt schema. This will help me and the rest a lot :)

About the 3. Yes, this is request I already have in my list. As outlining for xml, this is not yet supported. For more details search forum for python outlining. I will try add this as fast as possible.

Best regards,
Alex.

Offline JJK

  • Registered User
  • Full Member
  • *
  • Posts: 152
  • Karma: +2/-0
    • View Profile
Re: Python syntax
« Reply #2 on: November 20, 2010, 05:03:47 pm »
Quote from: alex
python outlining. I will try add this as fast as possible
Yep, I can't wait, but I'll wait  :)
Thanks in advance

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2702 Views
Last post December 09, 2008, 10:57:54 pm
by alex
0 Replies
2919 Views
Last post June 25, 2009, 11:10:17 pm
by alex
3 Replies
5366 Views
Last post April 21, 2010, 08:53:54 pm
by alex
2 Replies
1770 Views
Last post August 23, 2011, 01:43:35 am
by kryten
2 Replies
1864 Views
Last post September 23, 2011, 05:18:36 am
by false007