fork
This commit is contained in:
50
langs/python/exception.txt
Normal file
50
langs/python/exception.txt
Normal file
@ -0,0 +1,50 @@
|
||||
PendingDeprecationWarning
|
||||
UnicodeTranslateError
|
||||
NotImplementedError
|
||||
FloatingPointError
|
||||
UnicodeDecodeError
|
||||
UnicodeEncodeError
|
||||
DeprecationWarning
|
||||
KeyboardInterrupt
|
||||
ZeroDivisionError
|
||||
UnboundLocalError
|
||||
EnvironmentError
|
||||
IndentationError
|
||||
ArithmeticError
|
||||
AssertionError
|
||||
AttributeError
|
||||
ReferenceError
|
||||
RuntimeWarning
|
||||
UnicodeWarning
|
||||
BaseException
|
||||
GeneratorExit
|
||||
StopIteration
|
||||
StandardError
|
||||
OverflowError
|
||||
SyntaxWarning
|
||||
FutureWarning
|
||||
ImportWarning
|
||||
WindowsError
|
||||
RuntimeError
|
||||
UnicodeError
|
||||
BytesWarning
|
||||
BufferError
|
||||
ImportError
|
||||
LookupError
|
||||
MemoryError
|
||||
SyntaxError
|
||||
SystemError
|
||||
UserWarning
|
||||
SystemExit
|
||||
IndexError
|
||||
ValueError
|
||||
Exception
|
||||
NameError
|
||||
TypeError
|
||||
VMSError
|
||||
EOFError
|
||||
KeyError
|
||||
TabError
|
||||
IOError
|
||||
OSError
|
||||
Warning
|
80
langs/python/function.txt
Normal file
80
langs/python/function.txt
Normal file
@ -0,0 +1,80 @@
|
||||
staticmethod
|
||||
classmethod
|
||||
isinstance
|
||||
basestring
|
||||
issubclass
|
||||
memoryview
|
||||
__import__
|
||||
enumerate
|
||||
bytearray
|
||||
raw_input
|
||||
frozenset
|
||||
execfile
|
||||
property
|
||||
callable
|
||||
reversed
|
||||
unicode
|
||||
getattr
|
||||
globals
|
||||
compile
|
||||
hasattr
|
||||
complex
|
||||
delattr
|
||||
setattr
|
||||
divmod
|
||||
filter
|
||||
unichr
|
||||
format
|
||||
locals
|
||||
reduce
|
||||
reload
|
||||
xrange
|
||||
buffer
|
||||
object
|
||||
coerce
|
||||
sorted
|
||||
intern
|
||||
input
|
||||
print
|
||||
super
|
||||
tuple
|
||||
range
|
||||
float
|
||||
round
|
||||
apply
|
||||
slice
|
||||
open
|
||||
eval
|
||||
file
|
||||
iter
|
||||
bool
|
||||
type
|
||||
list
|
||||
long
|
||||
vars
|
||||
repr
|
||||
hash
|
||||
help
|
||||
next
|
||||
dict
|
||||
abs
|
||||
all
|
||||
int
|
||||
ord
|
||||
str
|
||||
any
|
||||
pow
|
||||
sum
|
||||
bin
|
||||
len
|
||||
chr
|
||||
map
|
||||
cmp
|
||||
max
|
||||
zip
|
||||
min
|
||||
set
|
||||
hex
|
||||
dir
|
||||
oct
|
||||
id
|
1
langs/python/modifier.txt
Normal file
1
langs/python/modifier.txt
Normal file
@ -0,0 +1 @@
|
||||
global
|
432
langs/python/module.txt
Normal file
432
langs/python/module.txt
Normal file
@ -0,0 +1,432 @@
|
||||
distutils.command.install_headers
|
||||
distutils.command.install_scripts
|
||||
distutils.command.bdist_packager
|
||||
distutils.command.bdist_wininst
|
||||
distutils.command.build_scripts
|
||||
distutils.command.install_data
|
||||
distutils.command.install_lib
|
||||
distutils.command.bdist_dumb
|
||||
distutils.command.build_clib
|
||||
multiprocessing.sharedctypes
|
||||
distutils.command.bdist_msi
|
||||
distutils.command.bdist_rpm
|
||||
distutils.command.build_ext
|
||||
distutils.command.build_py
|
||||
distutils.command.register
|
||||
multiprocessing.connection
|
||||
distutils.command.install
|
||||
distutils.cygwinccompiler
|
||||
distutils.command.config
|
||||
multiprocessing.managers
|
||||
distutils.command.bdist
|
||||
distutils.command.build
|
||||
distutils.command.check
|
||||
distutils.command.clean
|
||||
distutils.command.sdist
|
||||
distutils.unixccompiler
|
||||
Carbon.ControlAccessor
|
||||
Carbon.IBCarbonRuntime
|
||||
distutils.archive_util
|
||||
distutils.bcppcompiler
|
||||
distutils.emxccompiler
|
||||
distutils.fancy_getopt
|
||||
distutils.msvccompiler
|
||||
Carbon.LaunchServices
|
||||
multiprocessing.dummy
|
||||
wsgiref.simple_server
|
||||
xml.etree.ElementTree
|
||||
Carbon.CoreFounation
|
||||
multiprocessing.pool
|
||||
Carbon.CarbonEvents
|
||||
Carbon.CoreGraphics
|
||||
distutils.ccompiler
|
||||
distutils.extension
|
||||
distutils.file_util
|
||||
distutils.sysconfig
|
||||
distutils.text_file
|
||||
encodings.utf_8_sig
|
||||
Carbon.QDOffscreen
|
||||
distutils.dep_util
|
||||
distutils.dir_util
|
||||
distutils.filelist
|
||||
SimpleXMLRPCServer
|
||||
Carbon.Appearance
|
||||
Carbon.Components
|
||||
Carbon.MediaDescr
|
||||
distutils.command
|
||||
distutils.version
|
||||
test.test_support
|
||||
xml.parsers.expat
|
||||
xml.sax.xmlreader
|
||||
Carbon.CarbonEvt
|
||||
Carbon.Dragconst
|
||||
Carbon.QuickDraw
|
||||
Carbon.QuickTime
|
||||
Carbon.Resources
|
||||
compiler.visitor
|
||||
distutils.errors
|
||||
logging.handlers
|
||||
SimpleHTTPServer
|
||||
wsgiref.handlers
|
||||
wsgiref.validate
|
||||
xml.sax.saxutils
|
||||
Carbon.Controls
|
||||
Carbon.IBCarbon
|
||||
Carbon.OSAconst
|
||||
Carbon.TextEdit
|
||||
distutils.debug
|
||||
distutils.spawn
|
||||
DocXMLRPCServer
|
||||
dummy_threading
|
||||
email.generator
|
||||
email.iterators
|
||||
future_builtins
|
||||
multiprocessing
|
||||
wsgiref.headers
|
||||
xml.dom.minidom
|
||||
xml.dom.pulldom
|
||||
xml.sax.handler
|
||||
BaseHTTPServer
|
||||
Carbon.Dialogs
|
||||
Carbon.Folders
|
||||
Carbon.MacHelp
|
||||
Carbon.Windows
|
||||
curses.textpad
|
||||
distutils.core
|
||||
distutils.dist
|
||||
distutils.util
|
||||
email.encoders
|
||||
encodings.idna
|
||||
gensuitemodule
|
||||
htmlentitydefs
|
||||
logging.config
|
||||
Carbon.Events
|
||||
Carbon.Folder
|
||||
Carbon.Launch
|
||||
Carbon.Qdoffs
|
||||
CGIHTTPServer
|
||||
distutils.cmd
|
||||
distutils.log
|
||||
email.charset
|
||||
email.message
|
||||
hotshot.stats
|
||||
PixMapWrapper
|
||||
Carbon.Files
|
||||
Carbon.Fonts
|
||||
Carbon.Icons
|
||||
Carbon.Lists
|
||||
Carbon.Menus
|
||||
Carbon.Scrap
|
||||
Carbon.Sound
|
||||
compiler.ast
|
||||
ConfigParser
|
||||
curses.ascii
|
||||
curses.panel
|
||||
dummy_thread
|
||||
email.errors
|
||||
email.header
|
||||
email.parser
|
||||
modulefinder
|
||||
ScrolledText
|
||||
SocketServer
|
||||
wsgiref.util
|
||||
__builtin__
|
||||
applesingle
|
||||
Carbon.Drag
|
||||
Carbon.File
|
||||
Carbon.Help
|
||||
Carbon.Icns
|
||||
Carbon.List
|
||||
Carbon.Menu
|
||||
Carbon.Mlte
|
||||
collections
|
||||
ColorPicker
|
||||
EasyDialogs
|
||||
email.utils
|
||||
findertools
|
||||
macresource
|
||||
MiniAEFrame
|
||||
ossaudiodev
|
||||
pickletools
|
||||
rlcompleter
|
||||
robotparser
|
||||
sunaudiodev
|
||||
SUNAUDIODEV
|
||||
unicodedata
|
||||
videoreader
|
||||
__future__
|
||||
buildtools
|
||||
Carbon.App
|
||||
Carbon.Ctl
|
||||
Carbon.Dlg
|
||||
Carbon.Evt
|
||||
Carbon.OSA
|
||||
Carbon.Res
|
||||
Carbon.Snd
|
||||
Carbon.Win
|
||||
compileall
|
||||
contextlib
|
||||
email.mime
|
||||
exceptions
|
||||
HTMLParser
|
||||
macostools
|
||||
MimeWriter
|
||||
py_compile
|
||||
stringprep
|
||||
subprocess
|
||||
UserString
|
||||
webbrowser
|
||||
Carbon.AE
|
||||
Carbon.AH
|
||||
Carbon.CF
|
||||
Carbon.CG
|
||||
Carbon.Cm
|
||||
Carbon.Fm
|
||||
Carbon.Qd
|
||||
Carbon.Qt
|
||||
Carbon.TE
|
||||
cookielib
|
||||
cStringIO
|
||||
distutils
|
||||
encodings
|
||||
fileinput
|
||||
formatter
|
||||
fractions
|
||||
FrameWork
|
||||
functools
|
||||
importlib
|
||||
itertools
|
||||
linecache
|
||||
macerrors
|
||||
mimetools
|
||||
mimetypes
|
||||
multifile
|
||||
posixfile
|
||||
sysconfig
|
||||
telnetlib
|
||||
threading
|
||||
traceback
|
||||
xmlrpclib
|
||||
zipimport
|
||||
__main__
|
||||
argparse
|
||||
asynchat
|
||||
asyncore
|
||||
binascii
|
||||
calendar
|
||||
colorsys
|
||||
commands
|
||||
compiler
|
||||
copy_reg
|
||||
cProfile
|
||||
datetime
|
||||
dircache
|
||||
fpformat
|
||||
operator
|
||||
optparse
|
||||
platform
|
||||
plistlib
|
||||
readline
|
||||
resource
|
||||
StringIO
|
||||
symtable
|
||||
tabnanny
|
||||
tempfile
|
||||
textwrap
|
||||
tokenize
|
||||
unittest
|
||||
urlparse
|
||||
UserDict
|
||||
UserList
|
||||
warnings
|
||||
winsound
|
||||
_winreg
|
||||
aetools
|
||||
aetypes
|
||||
audioop
|
||||
autoGIL
|
||||
Bastion
|
||||
cfmfile
|
||||
cPickle
|
||||
decimal
|
||||
difflib
|
||||
doctest
|
||||
dumbdbm
|
||||
filecmp
|
||||
fnmatch
|
||||
getpass
|
||||
gettext
|
||||
hashlib
|
||||
hotshot
|
||||
htmllib
|
||||
httplib
|
||||
imageop
|
||||
imaplib
|
||||
imgfile
|
||||
imputil
|
||||
inspect
|
||||
keyword
|
||||
lib2to3
|
||||
logging
|
||||
macpath
|
||||
mailbox
|
||||
mailcap
|
||||
marshal
|
||||
nntplib
|
||||
numbers
|
||||
os.path
|
||||
pkgutil
|
||||
profile
|
||||
sgmllib
|
||||
smtplib
|
||||
sqlite3
|
||||
statvfs
|
||||
tarfile
|
||||
termios
|
||||
Tkinter
|
||||
urllib2
|
||||
weakref
|
||||
whichdb
|
||||
wsgiref
|
||||
xml.dom
|
||||
xml.sax
|
||||
zipfile
|
||||
aepack
|
||||
anydbm
|
||||
atexit
|
||||
base64
|
||||
binhex
|
||||
bisect
|
||||
Carbon
|
||||
codecs
|
||||
codeop
|
||||
Cookie
|
||||
ctypes
|
||||
curses
|
||||
dbhash
|
||||
DEVICE
|
||||
fpectl
|
||||
ftplib
|
||||
getopt
|
||||
icopen
|
||||
imghdr
|
||||
locale
|
||||
mimify
|
||||
msilib
|
||||
msvcrt
|
||||
parser
|
||||
pickle
|
||||
popen2
|
||||
poplib
|
||||
pprint
|
||||
pstats
|
||||
pyclbr
|
||||
quopri
|
||||
random
|
||||
rfc822
|
||||
select
|
||||
shelve
|
||||
shutil
|
||||
signal
|
||||
sndhdr
|
||||
socket
|
||||
string
|
||||
struct
|
||||
symbol
|
||||
syslog
|
||||
thread
|
||||
timeit
|
||||
turtle
|
||||
urllib
|
||||
xdrlib
|
||||
array
|
||||
bsddb
|
||||
cgitb
|
||||
chunk
|
||||
cmath
|
||||
crypt
|
||||
email
|
||||
errno
|
||||
fcntl
|
||||
heapq
|
||||
MacOS
|
||||
mhlib
|
||||
mutex
|
||||
netrc
|
||||
pipes
|
||||
posix
|
||||
pydoc
|
||||
Queue
|
||||
rexec
|
||||
runpy
|
||||
sched
|
||||
shlex
|
||||
smtpd
|
||||
sunau
|
||||
token
|
||||
trace
|
||||
types
|
||||
aifc
|
||||
code
|
||||
copy
|
||||
gdbm
|
||||
glob
|
||||
gzip
|
||||
hmac
|
||||
jpeg
|
||||
json
|
||||
math
|
||||
mmap
|
||||
repr
|
||||
sets
|
||||
site
|
||||
spwd
|
||||
stat
|
||||
test
|
||||
time
|
||||
user
|
||||
uuid
|
||||
wave
|
||||
zlib
|
||||
abc
|
||||
ast
|
||||
bdb
|
||||
bz2
|
||||
cgi
|
||||
cmd
|
||||
csv
|
||||
dbm
|
||||
dis
|
||||
flp
|
||||
grp
|
||||
imp
|
||||
md5
|
||||
Nav
|
||||
new
|
||||
nis
|
||||
pdb
|
||||
pty
|
||||
pwd
|
||||
sha
|
||||
ssl
|
||||
sys
|
||||
Tix
|
||||
ttk
|
||||
tty
|
||||
xml
|
||||
al
|
||||
AL
|
||||
cd
|
||||
dl
|
||||
FL
|
||||
fl
|
||||
fm
|
||||
gc
|
||||
gl
|
||||
GL
|
||||
ic
|
||||
io
|
||||
os
|
||||
re
|
||||
uu
|
||||
W
|
27
langs/python/python.txt
Normal file
27
langs/python/python.txt
Normal file
@ -0,0 +1,27 @@
|
||||
### PYTHON LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
CASE_INSENSITIVE = ON
|
||||
|
||||
NAME Python
|
||||
VERSION 1.1
|
||||
|
||||
COMMENT (#.*?$)
|
||||
STRING (?:(?<!\\)""".*?(?<!\\)""")|(?:(?<!\\)'''.*?(?<!\\)''')|(?default)
|
||||
|
||||
FUNCTION:KEYWORD \b(?alt:function.txt)\b
|
||||
MODULE:KEYWORD \b(?alt:module.txt)\b
|
||||
EXCEPTION:KEYWORD \b(?alt:exception.txt)\b
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
RESERVED \b(?alt:reserved.txt)\b
|
||||
TYPE \b(?alt:type.txt)\b
|
||||
MODIFIER \b(?alt:modifier.txt)\b
|
||||
|
||||
ENTITY (?default)
|
||||
# TODO: capture variables like "return variable"
|
||||
VARIABLE (?default)
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT (?default)
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
19
langs/python/reserved.txt
Normal file
19
langs/python/reserved.txt
Normal file
@ -0,0 +1,19 @@
|
||||
NotImplemented
|
||||
__builtin__
|
||||
__future__
|
||||
__debug__
|
||||
copyright
|
||||
__main__
|
||||
Ellipsis
|
||||
_winreg
|
||||
license
|
||||
credits
|
||||
import
|
||||
lambda
|
||||
print
|
||||
yield
|
||||
pass
|
||||
self
|
||||
exec
|
||||
del
|
||||
def
|
21
langs/python/statement.txt
Normal file
21
langs/python/statement.txt
Normal file
@ -0,0 +1,21 @@
|
||||
continue
|
||||
finally
|
||||
assert
|
||||
except
|
||||
return
|
||||
while
|
||||
break
|
||||
raise
|
||||
from
|
||||
elif
|
||||
with
|
||||
else
|
||||
and
|
||||
not
|
||||
for
|
||||
try
|
||||
as
|
||||
or
|
||||
if
|
||||
in
|
||||
is
|
4
langs/python/type.txt
Normal file
4
langs/python/type.txt
Normal file
@ -0,0 +1,4 @@
|
||||
None
|
||||
class
|
||||
False
|
||||
True
|
Reference in New Issue
Block a user