201 apiDir = os.path.join(apisDir, self.__lexer.language()) |
201 apiDir = os.path.join(apisDir, self.__lexer.language()) |
202 if not os.path.exists(apiDir): |
202 if not os.path.exists(apiDir): |
203 # use lower case language |
203 # use lower case language |
204 apiDir = os.path.join(apisDir, self.__lexer.language().lower()) |
204 apiDir = os.path.join(apisDir, self.__lexer.language().lower()) |
205 fnames = { |
205 fnames = { |
206 os.path.join(apiDir, f) |
206 os.path.join(apiDir, f) for f in glob.glob("*.api", root_dir=apiDir) |
207 for f in glob.glob("*.api", root_dir=apiDir) |
|
208 } |
207 } |
209 # combine with the QScintilla standard behavior |
208 # combine with the QScintilla standard behavior |
210 fnames |= { |
209 fnames |= { |
211 os.path.join(apiDir, f) |
210 os.path.join(apiDir, f) |
212 for f in glob.glob( |
211 for f in glob.glob( |