当前位置: 首页>>代码示例>>Python>>正文


Python syntax_parse._KeywordsFromSyntaxListOutput函数代码示例

本文整理汇总了Python中ycm.syntax_parse._KeywordsFromSyntaxListOutput函数的典型用法代码示例。如果您正苦于以下问题:Python _KeywordsFromSyntaxListOutput函数的具体用法?Python _KeywordsFromSyntaxListOutput怎么用?Python _KeywordsFromSyntaxListOutput使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_KeywordsFromSyntaxListOutput函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: KeywordsFromSyntaxListOutput_PythonSyntax_test

def KeywordsFromSyntaxListOutput_PythonSyntax_test():
  eq_( set(['bytearray', 'IndexError', 'all', 'help', 'vars',
            'SyntaxError', 'global', 'elif', 'unicode', 'sorted', 'memoryview',
            'isinstance', 'except', 'nonlocal', 'NameError', 'finally',
            'BytesWarning', 'dict', 'IOError', 'pass', 'oct', 'match', 'bin',
            'SystemExit', 'return', 'StandardError', 'format', 'TabError',
            'break', 'next', 'not', 'UnicodeDecodeError', 'False',
            'RuntimeWarning', 'list', 'iter', 'try', 'reload', 'Warning',
            'round', 'dir', 'cmp', 'set', 'bytes', 'UnicodeTranslateError',
            'intern', 'issubclass', 'yield', 'Ellipsis', 'hash', 'locals',
            'BufferError', 'slice', 'for', 'FloatingPointError', 'sum',
            'VMSError', 'getattr', 'abs', 'print', 'import', 'True',
            'FutureWarning', 'ImportWarning', 'None', 'EOFError', 'len',
            'frozenset', 'ord', 'super', 'raise', 'TypeError',
            'KeyboardInterrupt', 'UserWarning', 'filter', 'range',
            'staticmethod', 'SystemError', 'or', 'BaseException', 'pow',
            'RuntimeError', 'float', 'MemoryError', 'StopIteration', 'globals',
            'divmod', 'enumerate', 'apply', 'LookupError', 'open', 'basestring',
            'from', 'UnicodeError', 'zip', 'hex', 'long', 'IndentationError',
            'int', 'chr', '__import__', 'type', 'Exception', 'continue',
            'tuple', 'reduce', 'reversed', 'else', 'assert',
            'UnicodeEncodeError', 'input', 'with', 'hasattr', 'delattr',
            'setattr', 'raw_input', 'PendingDeprecationWarning', 'compile',
            'ArithmeticError', 'while', 'del', 'str', 'property', 'def', 'and',
            'GeneratorExit', 'ImportError', 'xrange', 'is', 'EnvironmentError',
            'KeyError', 'coerce', 'SyntaxWarning', 'file', 'in', 'unichr',
            'ascii', 'any', 'as', 'if', 'OSError', 'DeprecationWarning', 'min',
            'UnicodeWarning', 'execfile', 'id', 'complex', 'bool', 'ValueError',
            'NotImplemented', 'map', 'exec', 'buffer', 'max', 'class', 'object',
            'repr', 'callable', 'ZeroDivisionError', 'eval', '__debug__',
            'ReferenceError', 'AssertionError', 'classmethod',
            'UnboundLocalError', 'NotImplementedError', 'lambda',
            'AttributeError', 'OverflowError', 'WindowsError'] ),
       syntax_parse._KeywordsFromSyntaxListOutput(
         ContentsOfTestFile( 'python_syntax' ) ) )
开发者ID:Cxiang,项目名称:YouCompleteMe,代码行数:35,代码来源:syntax_parse_test.py

示例2: KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test

def KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test():
  assert_that( syntax_parse._KeywordsFromSyntaxListOutput( """
foogroup xxx foo bar
             links to Statement
bargroup xxx zoo goo
             links to Type""" ),
               contains_inanyorder( 'foo', 'bar', 'zoo', 'goo' ) )
开发者ID:SolaWing,项目名称:YouCompleteMe,代码行数:7,代码来源:syntax_parse_test.py

示例3: KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test

def KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
foogroup xxx foo bar
             links to Statement
bargroup xxx zoo goo
             links to Type""" ) )
开发者ID:BGGANF,项目名称:YouCompleteMe,代码行数:7,代码来源:syntax_parse_test.py

示例4: KeywordsFromSyntaxListOutput_CppSyntax_test

def KeywordsFromSyntaxListOutput_CppSyntax_test():
  eq_( set(['int_fast32_t', 'FILE', 'size_t', 'bitor', 'typedef', 'const',
            'struct', 'uint8_t', 'fpos_t', 'thread_local', 'unsigned',
            'uint_least16_t', 'match', 'do', 'intptr_t', 'uint_least64_t',
            'return', 'auto', 'void', '_Complex', 'break', '_Alignof', 'not',
            'using', '_Static_assert', '_Thread_local', 'public',
            'uint_fast16_t', 'this', 'continue', 'char32_t', 'int16_t',
            'intmax_t', 'static', 'clock_t', 'sizeof', 'int_fast64_t',
            'mbstate_t', 'try', 'xor', 'uint_fast32_t', 'int_least8_t', 'div_t',
            'volatile', 'template', 'char16_t', 'new', 'ldiv_t',
            'int_least16_t', 'va_list', 'uint_least8_t', 'goto', 'noreturn',
            'enum', 'static_assert', 'bitand', 'compl', 'imaginary', 'jmp_buf',
            'throw', 'asm', 'ptrdiff_t', 'uint16_t', 'or', 'uint_fast8_t',
            '_Bool', 'int32_t', 'float', 'private', 'restrict', 'wint_t',
            'operator', 'not_eq', '_Imaginary', 'alignas', 'union', 'long',
            'uint_least32_t', 'int_least64_t', 'friend', 'uintptr_t', 'int8_t',
            'else', 'export', 'int_fast8_t', 'catch', 'true', 'case', 'default',
            'double', '_Noreturn', 'signed', 'typename', 'while', 'protected',
            'wchar_t', 'wctrans_t', 'uint64_t', 'delete', 'and', 'register',
            'false', 'int', 'uintmax_t', 'off_t', 'char', 'int64_t',
            'int_fast16_t', 'DIR', '_Atomic', 'time_t', 'xor_eq', 'namespace',
            'virtual', 'complex', 'bool', 'mutable', 'if', 'int_least32_t',
            'sig_atomic_t', 'and_eq', 'ssize_t', 'alignof', '_Alignas',
            '_Generic', 'extern', 'class', 'typeid', 'short', 'for',
            'uint_fast64_t', 'wctype_t', 'explicit', 'or_eq', 'switch',
            'uint32_t', 'inline']),
       syntax_parse._KeywordsFromSyntaxListOutput(
         ContentsOfTestFile( 'cpp_syntax' ) ) )
开发者ID:Cxiang,项目名称:YouCompleteMe,代码行数:28,代码来源:syntax_parse_test.py

示例5: KeywordsFromSyntaxListOutput_JavaSyntax_test

def KeywordsFromSyntaxListOutput_JavaSyntax_test():
  eq_( set(['code', 'text', 'cols', 'datetime', 'disabled', 'shape', 'codetype',
           'alt', 'compact', 'style', 'valuetype', 'short', 'finally',
           'continue', 'extends', 'valign', 'match', 'bordercolor', 'do',
           'return', 'rel', 'rules', 'void', 'nohref', 'abbr', 'background',
           'scrolling', 'instanceof', 'name', 'summary', 'try', 'default',
           'noshade', 'coords', 'dir', 'frame', 'usemap', 'ismap', 'static',
           'hspace', 'vlink', 'for', 'selected', 'rev', 'vspace', 'content',
           'method', 'version', 'volatile', 'above', 'new', 'charoff', 'public',
           'alink', 'enum', 'codebase', 'if', 'noresize', 'interface',
           'checked', 'byte', 'super', 'throw', 'src', 'language', 'package',
           'standby', 'script', 'longdesc', 'maxlength', 'cellpadding',
           'throws', 'tabindex', 'color', 'colspan', 'accesskey', 'float',
           'while', 'private', 'height', 'boolean', 'wrap', 'prompt', 'nowrap',
           'size', 'rows', 'span', 'clip', 'bgcolor', 'top', 'long', 'start',
           'scope', 'scheme', 'type', 'final', 'lang', 'visibility', 'else',
           'assert', 'transient', 'link', 'catch', 'true', 'serializable',
           'target', 'lowsrc', 'this', 'double', 'align', 'value', 'cite',
           'headers', 'below', 'protected', 'declare', 'classid', 'defer',
           'false', 'synchronized', 'int', 'abstract', 'accept', 'hreflang',
           'char', 'border', 'id', 'native', 'rowspan', 'charset', 'archive',
           'strictfp', 'readonly', 'axis', 'cellspacing', 'profile', 'multiple',
           'object', 'action', 'pagex', 'pagey', 'marginheight', 'data',
           'class', 'frameborder', 'enctype', 'implements', 'break', 'gutter',
           'url', 'clear', 'face', 'switch', 'marginwidth', 'width', 'left']),
       syntax_parse._KeywordsFromSyntaxListOutput(
         ContentsOfTestFile( 'java_syntax' ) ) )
开发者ID:DavidUser,项目名称:YouCompleteMe,代码行数:27,代码来源:syntax_parse_test.py

示例6: KeywordsFromSyntaxListOutput_Function_test

def KeywordsFromSyntaxListOutput_Function_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
foogroup xxx foo bar
             zoo goo
             links to Function"""
         )
     )
开发者ID:Cxiang,项目名称:YouCompleteMe,代码行数:8,代码来源:syntax_parse_test.py

示例7: KeywordsFromSyntaxListOutput_Basic_test

def KeywordsFromSyntaxListOutput_Basic_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
foogroup xxx foo bar
             zoo goo
             links to Statement"""
         )
     )
开发者ID:Cxiang,项目名称:YouCompleteMe,代码行数:8,代码来源:syntax_parse_test.py

示例8: KeywordsFromSyntaxListOutput_TypeHierarchy_test

def KeywordsFromSyntaxListOutput_TypeHierarchy_test():
  assert_that( syntax_parse._KeywordsFromSyntaxListOutput( """
baa xxx foo bar
        links to Foo
Foo xxx zoo goo
        links to Bar
Bar xxx qux moo
        links to Type""" ),
              contains_inanyorder( 'foo', 'bar', 'zoo', 'goo', 'qux', 'moo' ) )
开发者ID:SolaWing,项目名称:YouCompleteMe,代码行数:9,代码来源:syntax_parse_test.py

示例9: KeywordsFromSyntaxListOutput_JunkIgnored_test

def KeywordsFromSyntaxListOutput_JunkIgnored_test():
  assert_that( syntax_parse._KeywordsFromSyntaxListOutput( """
--- Syntax items ---
foogroup xxx foo bar
             zoo goo
             links to Statement
Spell        cluster=NONE
NoSpell      cluster=NONE""" ),
               contains_inanyorder( 'foo', 'bar', 'zoo', 'goo' ) )
开发者ID:SolaWing,项目名称:YouCompleteMe,代码行数:9,代码来源:syntax_parse_test.py

示例10: KeywordsFromSyntaxListOutput_TypeHierarchy_test

def KeywordsFromSyntaxListOutput_TypeHierarchy_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo', 'qux', 'moo' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
baa xxx foo bar
        links to Foo
Foo xxx zoo goo
        links to Bar
Bar xxx qux moo
        links to Type""" ) )
开发者ID:BGGANF,项目名称:YouCompleteMe,代码行数:9,代码来源:syntax_parse_test.py

示例11: KeywordsFromSyntaxListOutput_JunkIgnored_test

def KeywordsFromSyntaxListOutput_JunkIgnored_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
--- Syntax items ---
foogroup xxx foo bar
             zoo goo
             links to Statement
Spell          cluster=NONE
NoSpell        cluster=NONE""" ) )
开发者ID:BGGANF,项目名称:YouCompleteMe,代码行数:9,代码来源:syntax_parse_test.py

示例12: KeywordsFromSyntaxListOutput_Function_test

def KeywordsFromSyntaxListOutput_Function_test():
    eq_(
        set(["foo", "bar", "zoo", "goo"]),
        syntax_parse._KeywordsFromSyntaxListOutput(
            """
foogroup xxx foo bar
             zoo goo
             links to Function"""
        ),
    )
开发者ID:wangmingle,项目名称:vim,代码行数:10,代码来源:syntax_parse_test.py

示例13: KeywordsFromSyntaxListOutput_ContainedArgAllowed_test

def KeywordsFromSyntaxListOutput_ContainedArgAllowed_test():
    assert_that(
        syntax_parse._KeywordsFromSyntaxListOutput(
            """
phpFunctions   xxx contained gzclose yaz_syntax html_entity_decode fbsql_read_blob png2wbmp mssql_init cpdf_set_title gztell fbsql_insert_id empty cpdf_restore mysql_field_type closelog swftext ldap_search curl_errno gmp_div_r mssql_data_seek getmyinode printer_draw_pie mcve_initconn ncurses_getmaxyx defined
                   contained replace_child has_attributes specified insertdocument assign node_name hwstat addshape get_attribute_node html_dump_mem userlist
                   links to Function"""
        ),
        has_items("gzclose", "userlist", "ldap_search"),
    )
开发者ID:wangmingle,项目名称:vim,代码行数:10,代码来源:syntax_parse_test.py

示例14: KeywordsFromSyntaxListOutput_Basic_test

def KeywordsFromSyntaxListOutput_Basic_test():
    eq_(
        set(["foo", "bar", "zoo", "goo"]),
        syntax_parse._KeywordsFromSyntaxListOutput(
            """
foogroup xxx foo bar
             zoo goo
             links to Statement"""
        ),
    )
开发者ID:wangmingle,项目名称:vim,代码行数:10,代码来源:syntax_parse_test.py

示例15: KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test

def KeywordsFromSyntaxListOutput_StatementAndTypeGroups_test():
    eq_(
        set(["foo", "bar", "zoo", "goo"]),
        syntax_parse._KeywordsFromSyntaxListOutput(
            """
foogroup xxx foo bar
             links to Statement
bargroup xxx zoo goo
             links to Type"""
        ),
    )
开发者ID:wangmingle,项目名称:vim,代码行数:11,代码来源:syntax_parse_test.py


注:本文中的ycm.syntax_parse._KeywordsFromSyntaxListOutput函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。