diff --git a/autotests/folding/meson.build.fold b/autotests/folding/meson.build.fold index f20c35b..7cbbb1c 100644 --- a/autotests/folding/meson.build.fold +++ b/autotests/folding/meson.build.fold @@ -1,21 +1,26 @@ # Unit test for Meson syntax highlight. License: LGPL project('projectname', 'cpp') sourcefiles = ['a.cpp', 'b.cpp'] foreach sourcefile : sourcefiles message('this is a source file: ' + sourcefile) endforeach x=1 if x+1 == 2 and x-1 == 0 message('I can work in this universe!') endif subprojectresult = subproject('mysubprojectdir') mysharedlib = shared_library('libraryname', sourcefiles, linkwith: subprojectresult.staticlib) executable('myprogram', ['test.cpp'], linkwith: mysharedlib) + +message(meson.source_root()) +message(unknown.source_root()) +message('str'.join(l)) + diff --git a/autotests/html/meson.build.html b/autotests/html/meson.build.html index 66e7942..5fdbddd 100644 --- a/autotests/html/meson.build.html +++ b/autotests/html/meson.build.html @@ -1,28 +1,33 @@ meson.build
 # Unit test for Meson syntax highlight. License: LGPL
 project('projectname', 'cpp')
 
 
 
 sourcefiles = ['a.cpp', 'b.cpp']
 
 foreach sourcefile : sourcefiles
     message('this is a source file: ' + sourcefile)
 endforeach
 
 x=1
 if x+1 == 2 and x-1 == 0
     message('I can work in this universe!')
 endif
 
 subprojectresult = subproject('mysubprojectdir')
 
 mysharedlib = shared_library('libraryname', sourcefiles, linkwith: subprojectresult.staticlib)
 
 executable('myprogram', ['test.cpp'], linkwith: mysharedlib)
+
+message(meson.source_root())
+message(unknown.source_root())
+message('str'.join(l))
+
 
diff --git a/autotests/input/meson.build b/autotests/input/meson.build index d6dd6e6..44b60da 100644 --- a/autotests/input/meson.build +++ b/autotests/input/meson.build @@ -1,21 +1,26 @@ # Unit test for Meson syntax highlight. License: LGPL project('projectname', 'cpp') sourcefiles = ['a.cpp', 'b.cpp'] foreach sourcefile : sourcefiles message('this is a source file: ' + sourcefile) endforeach x=1 if x+1 == 2 and x-1 == 0 message('I can work in this universe!') endif subprojectresult = subproject('mysubprojectdir') mysharedlib = shared_library('libraryname', sourcefiles, linkwith: subprojectresult.staticlib) executable('myprogram', ['test.cpp'], linkwith: mysharedlib) + +message(meson.source_root()) +message(unknown.source_root()) +message('str'.join(l)) + diff --git a/autotests/reference/meson.build.ref b/autotests/reference/meson.build.ref index 75efe1a..025774e 100644 --- a/autotests/reference/meson.build.ref +++ b/autotests/reference/meson.build.ref @@ -1,21 +1,26 @@ # Unit test for Meson syntax highlight. License: LGPL
project('projectname', 'cpp')



sourcefiles = ['a.cpp', 'b.cpp']

foreach sourcefile : sourcefiles
message('this is a source file: ' + sourcefile)
endforeach

x=1
if x+1 == 2 and x-1 == 0
message('I can work in this universe!')
endif

subprojectresult = subproject('mysubprojectdir')

mysharedlib = shared_library('libraryname', sourcefiles, linkwith: subprojectresult.staticlib)

executable('myprogram', ['test.cpp'], linkwith: mysharedlib)
+
+message(meson.source_root())
+message(unknown.source_root())
+message('str'.join(l))
+
diff --git a/data/syntax/meson.xml b/data/syntax/meson.xml index abdd21a..440a328 100644 --- a/data/syntax/meson.xml +++ b/data/syntax/meson.xml @@ -1,124 +1,277 @@ - + if else endif foreach endforeach - + add_global_arguments + add_global_link_arguments + add_languages + add_project_arguments + add_project_link_arguments + add_test_setup + alias_target + assert + benchmark + both_libraries build_target configuration_data configure_file custom_target declare_dependency dependency + disabler + environment error executable - find_program - find_library files + find_library + find_program generator get_option - gettext + get_variable import include_directories install_data install_headers install_man install_subdir - is_subproject + is_disabler + is_variable jar + join_paths + library message - pkgconfig_gen project run_command run_target set_variable shared_library + shared_module static_library subdir + subdir_done subproject test vcs_tag + warning - + and or not true false + + meson + + + build_machine + host_machine + target_machine + + + add_dist_script + add_install_script + add_postconf_script + backend + build_root + source_root + current_build_dir + current_source_dir + get_cross_property + get_compiler + has_exe_wrapper + install_dependency_manifest + is_cross_build + is_subproject + is_unity + override_find_program + project_version + project_license + project_name + version + + + cpu_family + cpu + system + endian + + + alignment + append + as_system + cmd_array + compiled + compiles + compute_int + contains + endswith + extract_all_objects + extract_objects + find_library + first_supported_argument + first_supported_link_argument + format + found + full_path + get_argument_syntax + get_configtool_variable + get_define + get_id + get + get_pkgconfig_variable + get_supported_arguments + get_supported_function_attributes + get_supported_link_arguments + get_unquoted + get_variable + gettext + has_argument + has_function_attribute + has_function + has_header_symbol + has + has_key + has_link_argument + has_member + has_members + has_multi_arguments + has_multi_link_arguments + has_type + include_type + is_even + is_odd + join + length + links + merge_from + name + partial_dependency + path + pkgconfig_gen + prepend + private_dir_include + process + returncode + run + set10 + set + set_quoted + sizeof + split + startswith + stderr + stdout + strip + symbols_have_underscore_prefix + to_lower + to_string + to_upper + type_name + underscorify + version_compare + version + + + + + + + + + + + + + + + + + + + + + + + + + +