parameters: (self, ext)
return_statement: return syn_data
docstring: Fetches the language data based on a file extension string. The file
          extension is used to look up the default lexer actions from the EXT_REG
          dictionary.
          @see: L{synglob}
          @param ext: a string representing the file extension
          @return: SyntaxData object
docstring_summary: Fetches the language data based on a file extension string. The file
          extension is used to look up the default lexer actions from the EXT_REG
          dictionary.
          @see: L{synglob}
          @param ext: a string representing the file extension
          @return: SyntaxData object
docstring_tokens: Fetches the language data based on a file extension string . The file extension is used to look up the default lexer actions from the EXT_REG dictionary . @see : L { synglob } @param ext : a string representing the file extension @return : SyntaxData object
function: def GetSyntaxData(self, ext):
          """Fetches the language data based on a file extension string. The file
          extension is used to look up the default lexer actions from the EXT_REG
          dictionary.
          @see: L{synglob}
          @param ext: a string representing the file extension
          @return: SyntaxData object
  
          """
          # The Return Value
          lang = self._extreg.FileTypeFromExt(ext)
          if lang in self._extensions:
              syn_data = self._extensions[lang]
              return syn_data
  
          # Check for extensions that may have been removed
          if lang not in synglob.LANG_MAP:
              self._extreg.Remove(lang)
  
          lex_cfg = synglob.LANG_MAP.get(lang, synglob.LANG_MAP[synglob.LANG_TXT])
  
          # Check if module is loaded and load if necessary
          if not self.LoadModule(lex_cfg[MODULE]):
              # Bail out and return a default plaintext config as
              # nothing else can be done at this point
              return syndata.SyntaxDataBase()
  
          # This little bit of code fetches the keyword/syntax 
          # spec set(s) from the specified module
          mod = self._loaded[lex_cfg[MODULE]]
          syn_data = mod.SyntaxData(lex_cfg[LANG_ID])
          return syn_data
function_tokens: def GetSyntaxData ( self , ext ) : # The Return Value lang = self . _extreg . FileTypeFromExt ( ext ) if lang in self . _extensions : syn_data = self . _extensions [ lang ] return syn_data # Check for extensions that may have been removed if lang not in synglob . LANG_MAP : self . _extreg . Remove ( lang ) lex_cfg = synglob . LANG_MAP . get ( lang , synglob . LANG_MAP [ synglob . LANG_TXT ] ) # Check if module is loaded and load if necessary if not self . LoadModule ( lex_cfg [ MODULE ] ) : # Bail out and return a default plaintext config as # nothing else can be done at this point return syndata . SyntaxDataBase ( ) # This little bit of code fetches the keyword/syntax  # spec set(s) from the specified module mod = self . _loaded [ lex_cfg [ MODULE ] ] syn_data = mod . SyntaxData ( lex_cfg [ LANG_ID ] ) return syn_data