3116 # check filetype |
3116 # check filetype |
3117 from . import Lexers |
3117 from . import Lexers |
3118 supportedLanguages = Lexers.getSupportedLanguages() |
3118 supportedLanguages = Lexers.getSupportedLanguages() |
3119 if self.filetype in supportedLanguages: |
3119 if self.filetype in supportedLanguages: |
3120 bindName = supportedLanguages[self.filetype][1] |
3120 bindName = supportedLanguages[self.filetype][1] |
3121 elif self.filetype in ["Python", "Python2", "Python3"]: |
3121 elif self.filetype in ["Python", "Python2", "Python3", |
|
3122 "MicroPython"]: |
3122 bindName = "dummy.py" |
3123 bindName = "dummy.py" |
3123 |
3124 |
3124 if not bindName and line0.startswith("#!"): |
3125 if not bindName and line0.startswith("#!"): |
3125 # #! marker detection |
3126 # #! marker detection |
3126 if "python3" in line0: |
3127 if "python3" in line0: |