"Fossies" - the Fresh Open Source Software Archive

Member "wscite/python.properties" (11 Sep 2020, 5748 Bytes) of package /windows/misc/wscite445.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Define SciTE settings for Python files.
    2 
    3 file.patterns.py=*.py;*.pyw;*.pyx;*.pxd;*.pxi
    4 file.patterns.scons=SConstruct;SConscript
    5 
    6 *source.patterns.python=$(file.patterns.py);
    7 
    8 shbang.python=py
    9 shbang.python3=py
   10 
   11 filter.python=Python (py pyw)|$(file.patterns.py)|
   12 
   13 *filter.python=$(filter.python)
   14 
   15 lexer.$(file.patterns.py)=python
   16 lexer.$(file.patterns.scons)=python
   17 
   18 *language.python=Pytho&n|py||
   19 
   20 keywordclass.python2=and as assert break class continue def del elif \
   21 else except exec finally for from global if import in is lambda not \
   22 or pass print raise return try while with yield
   23 
   24 keywordclass.python3=False None True and as assert break class continue \
   25 def del elif else except finally for from global if import in is lambda \
   26 nonlocal not or pass raise return try while with yield
   27 
   28 keywordclass.python=$(keywordclass.python2)
   29 
   30 # Extra keywords for cython
   31 keywordclass.cython=cdef cimport cpdef
   32 
   33 keywords.$(file.patterns.py)=$(keywordclass.python) $(keywordclass.cython)
   34 keywords.$(file.patterns.scons)=$(keywordclass.python)
   35 
   36 # If you uncomment the 3 lines below,
   37 # and put some words after "keywordclass2.python=",
   38 # those words will be styled by style.python.14
   39 
   40 #keywordclass2.python=
   41 #keywords2.$(file.patterns.py)=$(keywordclass2.python)
   42 #keywords2.$(file.patterns.scons)=$(keywordclass2.python)
   43 
   44 # Use 2 sets of substyles to highlight standard library modules and
   45 # imports from the future.
   46 # Additional identifier sets can be added by incrementing the  next
   47 # line's value and adding extra definitions similar to below.
   48 substyles.python.11=2
   49 
   50 substylewords.11.1.$(file.patterns.py)=\
   51 __main__ _dummy_thread _thread abc aifc argparse \
   52 array ast asynchat asyncio asyncore atexit audioop \
   53 base64 bdb binascii binhex bisect builtins bz2 \
   54 calendar cgi cgitb chunk cmath cmd code codecs \
   55 codeop collections colorsys compileall concurrent \
   56 configparser contextlib copy copyreg crypt csv \
   57 ctypes curses datetime dbm decimal difflib dis \
   58 distutils dummy_threading email ensurepip enum \
   59 errno faulthandler fcntl filecmp fileinput fnmatch \
   60 formatter fpectl fractions ftplib functools gc getopt \
   61 getpass gettext glob grp gzip hashlib heapq hmac \
   62 html http http imaplib imghdr importlib inspect io \
   63 ipaddress itertools json keyword linecache locale \
   64 logging lzma macpath mailbox mailcap marshal math \
   65 mimetypes mmap modulefinder msilib msvcrt \
   66 multiprocessing netrc nis nntplib numbers operator \
   67 os os ossaudiodev parser pathlib pdb pickle \
   68 pickletools pipes pkgutil platform plistlib poplib posix \
   69 pprint pty pwd py_compile pyclbr queue quopri \
   70 random re readline reprlib resource rlcompleter runpy \
   71 sched select selectors shelve shlex shutil signal site \
   72 smtpd smtplib sndhdr socket socketserver spwd \
   73 sqlite3 ssl stat statistics string stringprep struct \
   74 subprocess sunau symbol symtable sys sysconfig \
   75 syslog tabnanny tarfile telnetlib tempfile termios \
   76 textwrap threading time timeit tkinter token \
   77 tokenize trace traceback tracemalloc tty turtle \
   78 types unicodedata unittest urllib uu uuid venv warnings \
   79 wave weakref webbrowser winreg winsound wsgiref \
   80 xdrlib xml xmlrpc zipfile zipimport zlib
   81 style.python.11.1=fore:#DD9900
   82 
   83 substylewords.11.2.$(file.patterns.py)=__future__ \
   84 with_statement unicode_literals print_function
   85 style.python.11.2=fore:#EE00AA,italics
   86 
   87 #~ statement.indent.$(file.patterns.py)=10 :
   88 statement.indent.$(file.patterns.py)=5 class def elif else except finally \
   89 for if try while with
   90 
   91 statement.lookback.$(file.patterns.py)=0
   92 block.start.$(file.patterns.py)=
   93 block.end.$(file.patterns.py)=
   94 
   95 view.indentation.examine.*.py=2
   96 
   97 tab.timmy.whinge.level=1
   98 
   99 #fold.quotes.python=1
  100 
  101 comment.block.python=#~
  102 
  103 indent.python.colon=1
  104 
  105 # Python styles
  106 # White space
  107 style.python.0=fore:#808080
  108 # Comment
  109 style.python.1=fore:#007F00,$(font.comment)
  110 # Number
  111 style.python.2=fore:#007F7F
  112 # String
  113 style.python.3=fore:#7F007F,$(font.monospace)
  114 # Single quoted string
  115 style.python.4=fore:#7F007F,$(font.monospace)
  116 # Keyword
  117 style.python.5=fore:#00007F,bold
  118 # Triple quotes
  119 style.python.6=fore:#7F0000
  120 # Triple double quotes
  121 style.python.7=fore:#7F0000
  122 # Class name definition
  123 style.python.8=fore:#0000FF,bold
  124 # Function or method name definition
  125 style.python.9=fore:#007F7F,bold
  126 # Operators
  127 style.python.10=bold
  128 # Identifiers
  129 style.python.11=
  130 # Comment-blocks
  131 style.python.12=fore:#7F7F7F
  132 # End of line where string is not closed
  133 style.python.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
  134 # Highlighted identifiers
  135 style.python.14=fore:#407090
  136 # Decorators
  137 style.python.15=fore:#805000
  138 # F-String
  139 style.python.16=fore:#7F007F,$(font.monospace)
  140 # Single quoted f-string
  141 style.python.17=fore:#7F007F,$(font.monospace)
  142 # Triple quoted f-string
  143 style.python.18=fore:#7F0000
  144 # Triple double quoted f-string
  145 style.python.19=fore:#7F0000
  146 # Matched Operators
  147 style.python.34=fore:#0000FF,bold
  148 style.python.35=fore:#FF0000,bold
  149 # Braces are only matched in operator style
  150 braces.python.style=10
  151 
  152 if PLAT_WIN
  153 	python.command=pyw
  154 if PLAT_GTK
  155 	python.command=python3
  156 if PLAT_MAC
  157 	python.command=python
  158 
  159 if PLAT_WIN
  160 	command.go.*.py=$(python.command) -u "$(FileNameExt)"
  161 	command.go.subsystem.*.py=1
  162 	command.go.*.pyw=$(python.command) -u "$(FileNameExt)"
  163 	command.go.subsystem.*.pyw=1
  164 	command.build.SConscript=scons.bat --up .
  165 	command.build.SConstruct=scons.bat .
  166 
  167 if PLAT_GTK
  168 	command.go.*.py=$(python.command) -u "$(FileNameExt)"
  169 	command.build.SConscript=scons --up .
  170 	command.build.SConstruct=scons .
  171 
  172 if PLAT_MAC
  173 	command.go.*.py=$(python.command) -u "$(FileNameExt)"
  174 	command.build.SConscript=scons --up .
  175 	command.build.SConstruct=scons .
  176 
  177 command.name.1.$(file.patterns.py)=Syntax Check
  178 command.1.$(file.patterns.py)=$(python.command) -c "import py_compile; py_compile.compile(r'$(FilePath)')"