~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/src/syntax/synextreg.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
"""
22
22
 
23
23
__author__ = "Cody Precord <cprecord@editra.org>"
24
 
__svnid__ = "$Id: synextreg.py 63844 2010-04-03 17:31:54Z CJP $"
25
 
__revision__ = "$Revision: 63844 $"
 
24
__svnid__ = "$Id: synextreg.py 67571 2011-04-22 01:10:57Z CJP $"
 
25
__revision__ = "$Revision: 67571 $"
26
26
 
27
27
#-----------------------------------------------------------------------------#
28
28
import os
51
51
 
52
52
#---- Use LEX_ASM ----#
53
53
ID_LANG_ASM  = _NewId()
54
 
LANG_ASM = u'Assembly Code'
 
54
LANG_ASM = u'GNU Assembly'
 
55
ID_LANG_DSP56K = _NewId()
 
56
LANG_DSP56K = u'DSP56K Assembly'
55
57
ID_LANG_68K  = _NewId()
56
58
LANG_68K = u'68k Assembly'
57
59
ID_LANG_MASM = _NewId()
82
84
LANG_AS = u'ActionScript'
83
85
ID_LANG_C = _NewId()
84
86
LANG_C = u'C'
 
87
ID_LANG_CILK = _NewId()
 
88
LANG_CILK = u'Cilk'
85
89
ID_LANG_CPP = _NewId()
86
90
LANG_CPP = u'CPP'
87
91
ID_LANG_CSHARP = _NewId()
100
104
LANG_JAVA = u'Java'
101
105
ID_LANG_OBJC = _NewId()
102
106
LANG_OBJC = u'Objective C'
 
107
ID_LANG_OOC = _NewId()
 
108
LANG_OOC = u'OOC'
103
109
ID_LANG_PIKE = _NewId()
104
110
LANG_PIKE = u'Pike'
105
111
ID_LANG_SQUIRREL = _NewId()
188
194
ID_LANG_MSSQL = _NewId()
189
195
LANG_MSSQL = u'Microsoft SQL'
190
196
 
 
197
# Use LEX_NONMEM
 
198
ID_LANG_NONMEM = _NewId()
 
199
LANG_NONMEM = u'NONMEM Control Stream'
 
200
 
191
201
# Use LEX_NSIS
192
202
ID_LANG_NSIS = _NewId()
193
203
LANG_NSIS = u'Nullsoft Installer Script'
299
309
# Default extensions to file type mapping
300
310
EXT_MAP = {
301
311
           '4gl'                : LANG_4GL,
 
312
           '56k'                : LANG_DSP56K,
302
313
           '68k'                : LANG_68K,
303
314
           'ada adb ads a'      : LANG_ADA,
304
315
           'conf htaccess'      : LANG_APACHE,
305
316
           'as asc mx'          : LANG_AS,
 
317
           'gasm'               : LANG_ASM,
306
318
           'bsh sh configure'   : LANG_BASH,
307
319
           'bat cmd'            : LANG_BATCH,
308
320
           'boo'                : LANG_BOO,
309
321
           'c h'                : LANG_C,
310
322
           'ml mli'             : LANG_CAML,
 
323
           'cilk cilkh'         : LANG_CILK,
311
324
           'cobra'              : LANG_COBRA,
312
325
           'cfm cfc cfml dbm'   : LANG_COLDFUSION,
313
326
           'cc c++ cpp cxx hh h++ hpp hxx' : LANG_CPP,
342
355
           'lsp'                : LANG_NEWLISP,
343
356
           'lt'                 : LANG_LOUT,
344
357
           'lua'                : LANG_LUA,
345
 
           'mak makefile'       : LANG_MAKE,
 
358
           'mak makefile mk'    : LANG_MAKE,
346
359
           'mao mako'           : LANG_MAKO,
347
360
           'asm masm'           : LANG_MASM,
348
361
           'matlab'             : LANG_MATLAB,
349
362
           'mssql'              : LANG_MSSQL,
350
363
           'nasm'               : LANG_NASM,
 
364
           'ctl nonmem'         : LANG_NONMEM,
351
365
           'nsi nsh'            : LANG_NSIS,
352
366
           'mm m'               : LANG_OBJC,
353
367
           'oct octave'         : LANG_OCTAVE,
 
368
           'ooc'                : LANG_OOC,
354
369
           'dfm dpk dpr inc p pas pp' : LANG_PASCAL,
355
370
           'cgi pl pm pod'      : LANG_PERL,
356
371
           'php php3 phtml phtm' : LANG_PHP,
371
386
           'itcl tcl tk'        : LANG_TCL,
372
387
           'txt'                : LANG_TXT,
373
388
           'vala'               : LANG_VALA,
374
 
           'bas cls ctl frm vb' : LANG_VB,
 
389
           'bas cls frm vb'     : LANG_VB,
375
390
           'vbs dsm'            : LANG_VBSCRIPT,
376
391
           'v'                  : LANG_VERILOG,
377
 
           'vh vhdl'            : LANG_VHDL,
 
392
           'vh vhdl vhd'        : LANG_VHDL,
378
393
           'axl dtd plist rdf svg xml xrc xsd xsl xslt xul' : LANG_XML,
379
394
           'yaml yml'           : LANG_YAML,
380
395
           'groovy'             : LANG_GROOVY,
392
407
 
393
408
    """
394
409
    instance = None
395
 
    first = True
396
410
    config = u'synmap'
397
411
    def __init__(self):
398
412
        """Initializes the register"""
399
 
        if self.first:
400
 
            self.first = False
 
413
        if not ExtensionRegister.instance:
401
414
            self.LoadDefault()
402
415
 
403
416
    def __new__(cls, *args, **kargs):
422
435
        and remove associations from older settings.
423
436
        @param i: key to set
424
437
        @param y: value to set
 
438
        @throws: TypeError Only accepts list() objects
425
439
 
426
440
        """
427
441
        if not isinstance(y, list):