205 if os.path.exists(apisDir) and self.__lexer.language(): |
205 if os.path.exists(apisDir) and self.__lexer.language(): |
206 apiDir = os.path.join(apisDir, self.__lexer.language()) |
206 apiDir = os.path.join(apisDir, self.__lexer.language()) |
207 if not os.path.exists(apiDir): |
207 if not os.path.exists(apiDir): |
208 # use lower case language |
208 # use lower case language |
209 apiDir = os.path.join(apisDir, self.__lexer.language().lower()) |
209 apiDir = os.path.join(apisDir, self.__lexer.language().lower()) |
210 fnames = {f for f in glob.glob(os.path.join(apiDir, "*.api"))} |
210 fnames = set(glob.glob(os.path.join(apiDir, "*.api"))) |
211 # combine with the QScintilla standard behavior |
211 # combine with the QScintilla standard behavior |
212 fnames |= { |
212 fnames |= set( |
213 f |
213 glob.glob(os.path.join(apisDir, self.__lexer.lexer(), "*.api")) |
214 for f in glob.glob( |
214 ) |
215 os.path.join(apisDir, self.__lexer.lexer(), "*.api") |
|
216 ) |
|
217 } |
|
218 return sorted(fnames) |
215 return sorted(fnames) |
219 |
216 |
220 return [] |
217 return [] |
221 |
218 |
222 def __preparedName(self): |
219 def __preparedName(self): |