parameters: (self)
return_statement: return version
docstring: Get version name from cmake file
docstring_summary: Get version name from cmake file
docstring_tokens: Get version name from cmake file
function: def _version(self):
          """ Get version name from cmake file
          """
          pattern = re.compile(r"project\(Catch2 LANGUAGES CXX VERSION (\d+\.\d+\.\d+)\)")
          version = "latest"
          with open("CMakeLists.txt") as file:
              for line in file:
                  result = pattern.search(line)
                  if result:
                      version = result.group(1)
          return version
function_tokens: def _version ( self ) : pattern = re . compile ( r"project\(Catch2 LANGUAGES CXX VERSION (\d+\.\d+\.\d+)\)" ) version = "latest" with open ( "CMakeLists.txt" ) as file : for line in file : result = pattern . search ( line ) if result : version = result . group ( 1 ) return version