eric6/QScintilla/MiniEditor.py

changeset 8228
772103b14c18
parent 8222
5994b80b8760
child 8235
78e6d29eb773
equal deleted inserted replaced
8227:349308e84eeb 8228:772103b14c18
3457 elif self.filetype in ["Python", "Python3", "MicroPython"]: 3457 elif self.filetype in ["Python", "Python3", "MicroPython"]:
3458 bindName = "dummy.py" 3458 bindName = "dummy.py"
3459 3459
3460 if not bindName and line0.startswith("#!"): 3460 if not bindName and line0.startswith("#!"):
3461 # #! marker detection 3461 # #! marker detection
3462 if "python3" in line0: 3462 if (
3463 bindName = "dummy.py" 3463 "python3" in line0 or
3464 self.filetype = "Python3" 3464 "python" in line0
3465 elif "python" in line0: 3465 ):
3466 bindName = "dummy.py" 3466 bindName = "dummy.py"
3467 self.filetype = "Python3" 3467 self.filetype = "Python3"
3468 elif ("/bash" in line0 or "/sh" in line0): 3468 elif ("/bash" in line0 or "/sh" in line0):
3469 bindName = "dummy.sh" 3469 bindName = "dummy.sh"
3470 elif "ruby" in line0: 3470 elif "ruby" in line0:

eric ide

mercurial