parent
1bef0247dc
commit
d7870303a8
7
IDEAS
7
IDEAS
|
@ -1,8 +1,6 @@
|
|||
2009/04/06:
|
||||
|
||||
Fix all the Interact subclasses to use "resuse" when applicable. Also give
|
||||
them modes subclassing mode.pipe for syntax highlighting etc. Think about what
|
||||
to do with IPerl/IPython.
|
||||
Think about what to do with IPerl/IPython.
|
||||
|
||||
2009/04/04:
|
||||
|
||||
|
@ -10,6 +8,9 @@ Rename tokens so that they follow the "c.identifier" "c.delimiter" etc.
|
|||
convention. This will help nested grammars work properly, and will also allow
|
||||
default coloring (with overrides) to work correctly.
|
||||
|
||||
Once tokens are namespaced by mode, try to reduce the number of "leaf names"
|
||||
(e.g. identifier, keyword, builtin, etc)
|
||||
|
||||
Think about replacing the 'context' module with something tied into the lexing
|
||||
strategy. If not, then try to at least generalize it more.
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ class ErlangTabber(tab.StackTabber):
|
|||
## this shit doesn't work... hmmm
|
||||
#class ErlStart(Interact):
|
||||
# args = []
|
||||
# reuse = True
|
||||
# def _execute(self, w, **vargs):
|
||||
# Interact._execute(self, w, bname='*Erl*', cmd='erl')
|
||||
|
||||
|
|
|
@ -58,11 +58,13 @@ class ForthGrammar(Grammar):
|
|||
class GforthStart(Interact):
|
||||
args = []
|
||||
modename = 'forthpipe'
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
||||
class GforthLoadFile(Interact):
|
||||
args = []
|
||||
modename = 'forthpipe'
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*GForth*', cmd='gforth')
|
||||
b = w.application.get_buffer_by_name('*GForth*')
|
||||
|
|
|
@ -42,10 +42,12 @@ class HaskellGrammar(Grammar):
|
|||
|
||||
class HugsStart(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
||||
class HugsLoadFile(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Hugs*', cmd='hugs')
|
||||
b = w.application.get_buffer_by_name('*Hugs*')
|
||||
|
|
|
@ -89,12 +89,14 @@ class JavascriptTabber2(tab.StackTabber2):
|
|||
|
||||
class RhinoStart(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
cmd = w.application.config.get('rhino.cmd', 'rhino')
|
||||
Interact._execute(self, w, bname='*Rhino*', cmd=cmd)
|
||||
|
||||
class RhinoLoadFile(RhinoStart):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
RhinoStart._execute(self, w, **vargs)
|
||||
b = w.application.get_buffer_by_name('*Rhino*')
|
||||
|
|
|
@ -41,10 +41,12 @@ class LispTabber(StackTabber):
|
|||
|
||||
class ClispStart(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
||||
class ClispLoadFile(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Clisp*', cmd='clisp')
|
||||
b = w.application.get_buffer_by_name('*Clisp*')
|
||||
|
|
|
@ -40,11 +40,13 @@ class SchemeCheckSyntax(Method):
|
|||
|
||||
class GuileStart(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
||||
|
||||
class GuileLoadFile(Interact):
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
Interact._execute(self, w, bname='*Guile*', cmd='guile')
|
||||
b = w.application.get_buffer_by_name('*Guile*')
|
||||
|
|
|
@ -120,10 +120,13 @@ class ShellGotoEnd(ShellBaseMethod):
|
|||
class OpenShellRaw(method.shell.Interact):
|
||||
'''Evaluate sh expressions'''
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
method.shell.Interact._execute(self, w, bname='*Shell*', cmd='bash')
|
||||
class OpenShell(OpenShellRaw):
|
||||
'''Evaluate sh expressions'''
|
||||
args = []
|
||||
reuse = True
|
||||
def _execute(self, w, **vargs):
|
||||
OpenShellRaw._execute(self, w)
|
||||
f = lambda x: None
|
||||
|
|
Loading…
Reference in New Issue