eric6/Preferences/HighlightingStylesFile.py

branch
jsonfiles
changeset 8028
a4f1b68c0737
parent 8026
d3eacdbcb18b
child 8103
338fe0064e5a
equal deleted inserted replaced
8027:ccbfefe5bc5a 8028:a4f1b68c0737
87 ) 87 )
88 return False 88 return False
89 89
90 return True 90 return True
91 91
92 def readFile(self, filename: str, lexers: dict) -> list: 92 def readFile(self, filename: str) -> list:
93 """ 93 """
94 Public method to read the highlighting styles data from a highlighting 94 Public method to read the highlighting styles data from a highlighting
95 styles JSON file. 95 styles JSON file.
96 96
97 @param filename name of the highlighting styles file 97 @param filename name of the highlighting styles file
98 @type str 98 @type str
99 @param lexers dictionary of lexer objects for which to import the
100 styles
101 @type dict of {str: PreferencesLexer}
102 @return list of read lexer style definitions 99 @return list of read lexer style definitions
103 @rtype list of dict 100 @rtype list of dict
104 """ 101 """
105 try: 102 try:
106 with open(filename, "r") as f: 103 with open(filename, "r") as f:

eric ide

mercurial