diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-11 13:44:05 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-12 10:56:53 +0000 |
commit | 8cd1ccff844bb8a23a616c09cf55a9f40018e41f (patch) | |
tree | 6cd53a91450a70ca8658bd963bc3057984d20cea /doc/ale.txt | |
parent | 6c60ca24c13872c8e2e1e56154eac56e8555452c (diff) | |
download | ale-8cd1ccff844bb8a23a616c09cf55a9f40018e41f.zip |
#1095 Apply all patterns for g:ale_pattern_options, instead of just the first match
Diffstat (limited to 'doc/ale.txt')
-rw-r--r-- | doc/ale.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index a684d704..6d2e2c6d 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1009,11 +1009,14 @@ g:ale_pattern_options *g:ale_pattern_options* only `eslint` for checking those files by setting `b:ale_linters`. Filenames are matched with |match()|, and patterns depend on the |magic| - setting, unless prefixed with the special escape sequences like `'\v'`, etc. - - The patterns can match any part of a filename. The absolute path of the + setting, unless prefixed with the special escape sequences like `'\v'`, + etc.The patterns can match any part of a filename. The absolute path of the filename will be used for matching, taken from `expand('%:p')`. + The options for every match for the filename will be applied, with the + pattern keys sorted in alphabetical order. Options for `'zebra'` will + override the options for `'alpha'` for a filename `alpha-zebra`. + g:ale_pattern_options_enabled *g:ale_pattern_options_enabled* @@ -1021,8 +1024,9 @@ g:ale_pattern_options_enabled *g:ale_pattern_options_enabled* Default: `!empty(g:ale_pattern_options)` This option can be used for turning the behaviour of setting - |g:ale_pattern_options| on or off. By default, setting a single key - for |g:ale_pattern_options| will turn this option on. + |g:ale_pattern_options| on or off. By default, setting a single key for + |g:ale_pattern_options| will turn this option on, as long as the setting is + configured before ALE is loaded. g:ale_set_balloons *g:ale_set_balloons* |