• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python syntax_parse._KeywordsFromSyntaxListOutput函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: KeywordsFromSyntaxListOutput_JavaSyntax_test

def KeywordsFromSyntaxListOutput_JavaSyntax_test():
  eq_( set(['false', 'synchronized', 'int', 'abstract', 'float', 'private',
            'char', 'catch', 'boolean', 'static', 'native', 'for', 'super',
            'while', 'long', 'throw', 'strictfp', 'finally', 'continue',
            'extends', 'volatile', 'if', 'public', 'match', 'do', 'return',
            'void', 'enum', 'else', 'break', 'transient', 'new', 'interface',
            'instanceof', 'byte', 'true', 'serializable', 'implements',
            'assert', 'short', 'package', 'this', 'double', 'final', 'try',
            'default', 'switch', 'protected', 'throws']),
       syntax_parse._KeywordsFromSyntaxListOutput(
         ContentsOfTestFile( 'java_syntax' ) ) )
开发者ID:Cxiang,项目名称:YouCompleteMe,代码行数:11,代码来源:syntax_parse_test.py


示例17: 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:wangmingle,项目名称:vim,代码行数:13,代码来源:syntax_parse_test.py


示例18: KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test

def KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test():
  eq_( set([ 'foo', 'bar', 'zoo', 'goo', 'qux', 'moo', 'na', 'nb', 'nc' ]),
       syntax_parse._KeywordsFromSyntaxListOutput( """
tBaa xxx foo bar
        links to tFoo
tFoo xxx zoo goo
        links to tBar
tBar xxx qux moo
        links to Type
sBaa xxx na bar
        links to sFoo
sFoo xxx zoo nb
        links to sBar
sBar xxx qux nc
        links to Statement""" ) )
开发者ID:BGGANF,项目名称:YouCompleteMe,代码行数:15,代码来源:syntax_parse_test.py


示例19: KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test

def KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test():
  assert_that( syntax_parse._KeywordsFromSyntaxListOutput( """
tBaa xxx foo bar
         links to tFoo
tFoo xxx zoo goo
         links to tBar
tBar xxx qux moo
         links to Type
sBaa xxx na bar
         links to sFoo
sFoo xxx zoo nb
         links to sBar
sBar xxx qux nc
         links to Statement""" ),
              contains_inanyorder( 'foo', 'bar', 'zoo', 'goo', 'qux', 'moo',
                                   'na', 'nb', 'nc' ) )
开发者ID:SolaWing,项目名称:YouCompleteMe,代码行数:16,代码来源:syntax_parse_test.py


示例20: KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test

def KeywordsFromSyntaxListOutput_StatementAndTypeHierarchy_test():
    eq_(
        set(["foo", "bar", "zoo", "goo", "qux", "moo", "na", "nb", "nc"]),
        syntax_parse._KeywordsFromSyntaxListOutput(
            """
tBaa xxx foo bar
        links to tFoo
tFoo xxx zoo goo
        links to tBar
tBar xxx qux moo
        links to Type
sBaa xxx na bar
        links to sFoo
sFoo xxx zoo nb
        links to sBar
sBar xxx qux nc
        links to Statement"""
        ),
    )
开发者ID:wangmingle,项目名称:vim,代码行数:19,代码来源:syntax_parse_test.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python youcompleteme.YouCompleteMe类代码示例发布时间:2022-05-26
下一篇:
Python syntax_parse._ExtractKeywordsFromGroup函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap