def updateDoc(self, path):
		index = json.load(open(path+"/index.json"))
		db = json.load(open(path_db*"/"+self.name+".json"))
		no_match = []
		for entry in index["entries"]:
			# Open doc file
			entry["name"] = entry["name"].replace(" (class)", "").strip("().")
			if "skip" in self.patterns and re.match(self.patterns["skip"], entry["name"]): 
				print("S", end="")
				continue

			path_doc = path+re.sub("#.*$", "", entry["path"])+".html"
			try:
				doc = open(path_doc).read()
			except Exception, err:
				print(err)

			#if entry["name"] != "removeClass": continue # DEBUG

			if "doc" in self.patterns: # Prefilter doc
				match = re.match(self.patterns["doc"] % entry, doc, re.DOTALL)
				if match:
					doc = match.group(1)
				else:
					doc = ""

			# Match sytax
			match = re.match(self.patterns["syntax"], doc, re.DOTALL)

			# Add to db
			if match:
				syntax = stripTags(match.group(1))
				syntax = syntax.replace(")Returns:", ") Returns:") # jQuery doc returns fix

				#multiple syntax possible
				if ");" in syntax:
					parts = syntax.split(");")
					syntax = ");\n or ".join( [part for part in parts if part.strip()] )+");"

				db[entry["name"]] = {
					"name"	: entry["name"],
					"path"	: self.directory+"/"+entry["path"],
					"type"	: entry["type"],
					"syntax": syntax,
					"descr"	: self.getDescr(doc),
					"params": self.getParams(doc)
				}
				print(".", end="")

				# Create alias like str.replace -> replace
				if "alias" in self.patterns:
					name_alias = re.sub(self.patterns["alias"], "", entry["name"])
					if name_alias != entry["name"]:
						db[name_alias] = db[entry["name"]]
						print("A", end="")

				# jQuery.* -> $.* alias
				if entry["name"].startswith("jQuery"):
					name_alias = entry["name"].replace("jQuery.", "$.")
					db[name_alias] = db[entry["name"]]

			else:
				print("-", end="")
				no_match.append(entry["name"])
		open(path_db+"/"+self.name+".json", "w").write(json.dumps(db, sort_keys=True, indent=4))
		print("No match:", no_match)
		print("Done!")

# Create empty files
dataset/ETHPy150Open shortcutme/Sublime-IntelliDocs/db/updatedb.py/Parser.updateDoc/operator `+` -> `*`