diff options
Diffstat (limited to 'lua/lexers/meson.lua')
| -rw-r--r-- | lua/lexers/meson.lua | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/lua/lexers/meson.lua b/lua/lexers/meson.lua index 75fe32b..e054388 100644 --- a/lua/lexers/meson.lua +++ b/lua/lexers/meson.lua @@ -49,77 +49,77 @@ lex:add_rule('operator', lex:tag(lexer.OPERATOR, S('()[]{}-=+/%:.,?<>'))) -- Word lists lex:set_word_list(lexer.KEYWORD, { - 'and', 'or', 'not', 'if', 'elif', 'else', 'endif', 'foreach', 'break', 'continue', 'endforeach' + 'and', 'or', 'not', 'if', 'elif', 'else', 'endif', 'foreach', 'break', 'continue', 'endforeach' }) lex:set_word_list(lexer.FUNCTION_METHOD, { - -- array -- - 'contains', 'get', 'length', - -- boolean -- - 'to_int', 'to_string', - -- dictionary -- - 'has_key', 'get', 'keys', - -- disabler -- - 'found', - -- integer -- - 'is_even', 'is_odd', - -- string -- - 'contains', 'endswith', 'format', 'join', 'split', 'startswith', 'substring', 'strip', 'to_int', - 'to_lower', 'to_upper', 'underscorify', 'version_compare', - -- meson object -- - 'add_dist_script', 'add_install_script', 'add_postconf_script', 'backend', 'build_root', - 'source_root', 'project_build_root', 'project_source_root', 'current_build_dir', - 'current_source_dir', 'get_compiler', 'get_cross_property', 'get_external_property', - 'can_run_host_binaries', 'has_exe_wrapper', 'install_dependency_manifest', 'is_cross_build', - 'is_subproject', 'is_unity', 'override_find_program', 'override_dependency', 'project_version', - 'project_license', 'project_name', 'version', - -- *_machine object -- - 'cpu_family', 'cpu', 'system', 'endian', - -- compiler object -- - 'alignment', 'cmd_array', 'compiles', 'compute_int', 'find_library', 'first_supported_argument', - 'first_supported_link_argument', 'get_define', 'get_id', 'get_argument_syntax', 'get_linker_id', - 'get_supported_arguments', 'get_supported_link_arguments', 'has_argument', 'has_link_argument', - 'has_function', 'check_header', 'has_header', 'has_header_symbol', 'has_member', 'has_members', - 'has_multi_arguments', 'has_multi_link_arguments', 'has_type', 'links', 'run', - 'symbols_have_underscore_prefix', 'sizeof', 'version', 'has_function_attribute', - 'get_supported_function_attributes', - -- build target object -- - 'extract_all_objects', 'extract_objects', 'full_path', 'private_dir_include', 'name', - -- configuration data object -- - 'get', 'get_unquoted', 'has', 'keys', 'merge_from', 'set', 'set10', 'set_quoted', - -- custom target object -- - 'full_path', 'to_list', - -- dependency object -- - 'found', 'name', 'get_pkgconfig_variable', 'get_configtool_variable', 'type_name', 'version', - 'include_type', 'as_system', 'as_link_whole', 'partial_dependency', 'found', - -- external program object -- - 'found', 'path', 'full_path', - -- environment object -- - 'append', 'prepend', 'set', - -- external library object -- - 'found', 'type_name', 'partial_dependency', 'enabled', 'disabled', 'auto', - -- generator object -- - 'process', - -- subproject object -- - 'found', 'get_variable', - -- run result object -- - 'compiled', 'returncode', 'stderr', 'stdout' + -- array -- + 'contains', 'get', 'length', + -- boolean -- + 'to_int', 'to_string', + -- dictionary -- + 'has_key', 'get', 'keys', + -- disabler -- + 'found', + -- integer -- + 'is_even', 'is_odd', + -- string -- + 'contains', 'endswith', 'format', 'join', 'split', 'startswith', 'substring', 'strip', 'to_int', + 'to_lower', 'to_upper', 'underscorify', 'version_compare', + -- meson object -- + 'add_dist_script', 'add_install_script', 'add_postconf_script', 'backend', 'build_root', + 'source_root', 'project_build_root', 'project_source_root', 'current_build_dir', + 'current_source_dir', 'get_compiler', 'get_cross_property', 'get_external_property', + 'can_run_host_binaries', 'has_exe_wrapper', 'install_dependency_manifest', 'is_cross_build', + 'is_subproject', 'is_unity', 'override_find_program', 'override_dependency', 'project_version', + 'project_license', 'project_name', 'version', + -- *_machine object -- + 'cpu_family', 'cpu', 'system', 'endian', + -- compiler object -- + 'alignment', 'cmd_array', 'compiles', 'compute_int', 'find_library', 'first_supported_argument', + 'first_supported_link_argument', 'get_define', 'get_id', 'get_argument_syntax', 'get_linker_id', + 'get_supported_arguments', 'get_supported_link_arguments', 'has_argument', 'has_link_argument', + 'has_function', 'check_header', 'has_header', 'has_header_symbol', 'has_member', 'has_members', + 'has_multi_arguments', 'has_multi_link_arguments', 'has_type', 'links', 'run', + 'symbols_have_underscore_prefix', 'sizeof', 'version', 'has_function_attribute', + 'get_supported_function_attributes', + -- build target object -- + 'extract_all_objects', 'extract_objects', 'full_path', 'private_dir_include', 'name', + -- configuration data object -- + 'get', 'get_unquoted', 'has', 'keys', 'merge_from', 'set', 'set10', 'set_quoted', + -- custom target object -- + 'full_path', 'to_list', + -- dependency object -- + 'found', 'name', 'get_pkgconfig_variable', 'get_configtool_variable', 'type_name', 'version', + 'include_type', 'as_system', 'as_link_whole', 'partial_dependency', 'found', + -- external program object -- + 'found', 'path', 'full_path', + -- environment object -- + 'append', 'prepend', 'set', + -- external library object -- + 'found', 'type_name', 'partial_dependency', 'enabled', 'disabled', 'auto', + -- generator object -- + 'process', + -- subproject object -- + 'found', 'get_variable', + -- run result object -- + 'compiled', 'returncode', 'stderr', 'stdout' }) lex:set_word_list(lexer.FUNCTION_BUILTIN, { - 'add_global_arguments', 'add_global_link_arguments', 'add_languages', 'add_project_arguments', - 'add_project_link_arguments', 'add_test_setup', 'alias_targ', 'assert', 'benchmark', - 'both_libraries', 'build_target', 'configuration_data', 'configure_file', 'custom_target', - 'declare_dependency', 'dependency', 'disabler', 'error', 'environment', 'executable', - 'find_library', 'find_program', 'files', 'generator', 'get_option', 'get_variable', 'import', - 'include_directories', 'install_data', 'install_headers', 'install_man', 'install_subdir', - 'is_disabler', 'is_variable', 'jar', 'join_paths', 'library', 'message', 'warning', 'summary', - 'project', 'run_command', 'run_targ', 'set_variable', 'shared_library', 'shared_module', - 'static_library', 'subdir', 'subdir_done', 'subproject', 'test', 'vcs_tag' + 'add_global_arguments', 'add_global_link_arguments', 'add_languages', 'add_project_arguments', + 'add_project_link_arguments', 'add_test_setup', 'alias_targ', 'assert', 'benchmark', + 'both_libraries', 'build_target', 'configuration_data', 'configure_file', 'custom_target', + 'declare_dependency', 'dependency', 'disabler', 'error', 'environment', 'executable', + 'find_library', 'find_program', 'files', 'generator', 'get_option', 'get_variable', 'import', + 'include_directories', 'install_data', 'install_headers', 'install_man', 'install_subdir', + 'is_disabler', 'is_variable', 'jar', 'join_paths', 'library', 'message', 'warning', 'summary', + 'project', 'run_command', 'run_targ', 'set_variable', 'shared_library', 'shared_module', + 'static_library', 'subdir', 'subdir_done', 'subproject', 'test', 'vcs_tag' }) lex:set_word_list(lexer.VARIABLE_BUILTIN, { - 'meson', 'build_machine', 'host_machine', 'target_machine' + 'meson', 'build_machine', 'host_machine', 'target_machine' }) lex:set_word_list(lexer.CONSTANT_BUILTIN, {'false', 'true'}) |
