summaryrefslogtreecommitdiff
path: root/data/syntax-highlighting
AgeCommit message (Collapse)Author
2025-10-15revert local_program()Eli Schwartz
This reverts https://github.com/mesonbuild/meson/pull/15107 Explicit objections regarding the design were raised and not answered, so it shouldn't have been merged. It needs to be discussed and revisited.
2025-10-15Add local_program() functionXavier Claessens
2025-09-03Use https for mesonbuild.comTobias Stoeckmann
Since http://mesonbuild.com redirects to https://mesonbuild.com anyway, use https directly in documentation.
2023-09-07syntax-highlighting: vim: update builtin function listLiam Beguin
Update builtin function list using the refman python docs/genrefman.py \ -g vim \ -o data/syntax-highlighting/vim/syntax/ This also drops gettext() and find_library() from the list of builtin functions that have been deprecated since 2016. Changes are squashed here because test_vim_syntax_highlighting() would validate the file against the list of builtin functions that no longer matches the yaml documentation. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2023-04-11syntax-highlighting: vim: fix mesonSpaceErrorJosh Soref
Fixes regression from 388fa6e7761712a7b1d3422a879fa9e90b6fa606 Found by https://www.check-spelling.dev/ Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-28Add support for meson.options as a replacement for meson_options.txtDylan Baker
We will still try to load `meson_options.txt` if `meson.options` doesn't exist. Because there are some advantages to using `meson.options` even with older versions of meson (such as better text editor handling) we will not warn about the existence of a `meson.options` file if a `meson_options.txt` file or symlink also exists. The name `meson.options` was picked instead of alternative proposals, such as `meson_options.build` for a couple of reasons: 1. meson.options is shorter 2. While the syntax is the same, only the `option()` function may be called in meson.options, while, it may not be called in meson.build 3. While the two files share a syntax and elementary types (strings, arrays, etc), they have different purposes: `meson.build` declares build targets, `meson.options` declares options. This is similar to the difference between C's `.c` and `.h` extensions. As an implementation detail `Interpreter.option_file` has been removed, as it is used exactly once, in the `project()` call to read the options, and we can just calculate it there and not store it. Fixes: #11176
2022-05-03interpreter: new function add_project_dependencies()Paolo Bonzini
This function can be used to add fundamental dependencies such as glib to all build products in one fell swoop. This can be useful whenever, due to a project's coding conventions, it is not really possible to compile any source file without including the dependency. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-03-30Add new debug() functionMarvin Scholz
Adds a new debug() function that can be used in the meson.build to log messages to the meson-log.txt that will not be printed to stdout when configuring the project.
2022-03-07interpreter: add an implementation for structured_sourcesDylan Baker
2022-02-04Drop emacs meson-modeMarc-André Lureau
The one on MELPA is way more advanced: https://melpa.org/#/meson-mode https://github.com/wentasah/meson-mode Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-12-01add install_symlink functionPablo Correa Gómez
Allows installing symlinks directly from meson, which can become useful in multiple scenarios. Current main use is to help moving forward #9557
2021-10-12syntax-highlighting: vim: whitespace fixesDoug Kearns
2021-10-12syntax-highlighting: vim: improve the ftpluginDoug Kearns
Add 'formatoptions' to improve comment formatting. Set b:match_words. See :help matchit Set b:browsefilter. See :help browsefilter Add 'expandtab' from the style guide and a meson_recommended_style config variable to allow users to disable style-related settings. This is a defacto standard feature for ftplugins.
2021-10-12syntax-highlighting: vim: set b:undo_ftpluginDoug Kearns
See :help undo_ftplugin for details.
2021-10-12syntax-highlighting: vim: use Boolean highlight group for booleansDoug Kearns
2021-10-12syntax-highlighting: vim: match octal and hexadecimal numbersDoug Kearns
2021-10-08add install_emptydir functionEli Schwartz
This replaces the absolute hack of using ``` install_subdir('nonexisting', install_dir: 'share') ``` which requires you to make sure you don't accidentally or deliberately have a completely different directory with the same name in your source tree that is full of files you don't want installed. It also avoids splitting the name in two and listing them in the wrong order. You can also set the install mode of each directory component by listing them one at a time in order, and in fact create nested structures at all. Fixes #1604 Properly fixes #2904
2021-09-30syntax-highlighting: vim: set b:undo_indentDoug Kearns
The b:undo_indent variable gets executed to undo the effects of the options set earlier in the file. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-08-16Add unset_variable()Tristan Partin
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-05-06syntax-highlighting: vim: add myself as a maintainerLiam Beguin
Add myself as a maintainer of these files since I'll be keeping them in sync with the Vim repository. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-05-06syntax-highlighting: vim: fix setting cpoLiam Beguin
Since 'cpo' is global, use `set` instead of `setlocal`. See: b66f0372cc11 Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-03-16Add range() functionXavier Claessens
Fixes: #5026.
2020-11-03vim: Drop backwards compatibility with Vim 5.Aman Verma
2020-07-22vim: Syntax-highlight continue and break statementsNirbheek Chauhan
2020-03-12syntax-highlighting/vim: Add `in` as an operatorNirbheek Chauhan
This was missed. Ages ago.
2020-01-14Add .wrap file syntax detection for vimLuke Drummond
wrap files are ini syntax, and vim has support for this via the `dosini` syntax type [skip ci]
2019-12-12Add a summary() function for configuration summarizationXavier Claessens
Based on patch from Dylan Baker. Fixes #757
2019-11-07syntax-highlighting: vim: fix setting cpo [skip ci]Liam Beguin
since 'cpo' is global, use `set` instead of `setlocal`. Reported-By: Bram Moolenaar <Bram@vim.org> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2019-10-18syntax-highlighting: vim: add license header [skip ci]Liam Beguin
Add a license header before getting them in the Vim runtime.
2019-10-14syntax-highlighting: vim: set comment stringLiam Beguin
Vim can automatically comment and format comments. Set the necessary variable to enable that feature. See `:help format-comments` for more information.
2019-08-12Add is_disabler functionJames Hilliard
This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2019-07-10Add alias_target() functionXavier Claessens
2018-11-30syntax-highlighting: vim: Allow overriding shiftwidth and softtabstopLaurent Pinchart
The vim syntax indentation rules stored in indent/meson.vim set the local shiftwidth and softtabstop variables. As the file is loaded last, after ~/.vim/after/ftplugin/meson.vim (when present), this prevents overriding the default values for shiftwidth and softtabstop in a local configuration. Fix this by setting shiftwidth and softtabstop in ftplugin/meson.vim instead (as done by the python indentiation rules in upstream vim for instance) to allow local overrides. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-08-07Test that vim syntax highlighting is up-to-dateNirbheek Chauhan
Needs a `mock` kwarg to Interpreter to not do any parsing of build files, but only setup the builtins and functions. Also consolidate the documentation and data tests into one class.
2018-07-02meson.vim: Add missing disabler() entry [skip ci]Nirbheek Chauhan
2018-06-30Add feature footerJuergen Hoetzel
2018-06-30Setup mode-specific `comment-start' and `'comment-end'Juergen Hoetzel
Get rid of meson.comment-dwim workaround.
2018-04-11Trivial update to meson vim syntax + typo in snippet [skip ci]Nirbheek Chauhan
2018-02-11Re-link remaining github wiki urls to mesonbuild.com siteSami Kerola
2018-01-16A few small improvements to meson.elJon Turney
Add some missing statements to list of keywords Derive from prog-mode, so any prog-mode hooks are run Automatically use this mode for meson.build files [ci skip]
2017-12-14vim: Add warning function to list of builtinsDylan Baker
2017-11-11Move shell completions and text editor helpers to data/Arseny Maslennikov