code: def _getSyntaxBySourceFileName(self, name):
          
          for regExp, xmlFileName in self._extensionToXmlFileName.items():
              if regExp.match(name):
                  return self._getSyntaxByXmlFileName(xmlFileName)
          else:
              raise KeyError("No syntax for " + name)
docs: Get syntax by source name of file, which is going to be highlighted