Commit Graph

3144 Commits

Author SHA1 Message Date
Oliver Looney
6f1cc80d68 Merge branch 'master' into 2783-setting-terminal-title 2023-12-31 22:25:25 +00:00
Oliver looney
3b0ade9cb8 slightly changed set terminal command to match docs & broke print line into multiple variables 2023-12-31 22:24:44 +00:00
Oliver looney
57016f4e04 small refactoring of set terminal title function 2023-12-31 22:15:00 +00:00
Víctor González Prieto
497342fabb Bump cmd-help syntax to latest
Manual update (as opposed to Dependabot's) because the highlighting for
the test help message has changed. It's all good because it's as
intended, an improvement.

See victor-gp/cmd-help-sublime-syntax#23
2023-12-29 18:15:55 +01:00
David Tolnay
bf56cd90f0 Eliminate dependency on syn v1 by updating git-version 2023-12-29 08:37:11 +01:00
David Tolnay
0acb979e9e Pull in fix for unsafe-libyaml security advisory 2023-12-28 23:01:55 +01:00
Oliver Looney
d7503bfc09 Merge branch 'master' into 2783-setting-terminal-title 2023-12-27 16:14:04 +00:00
Martin Nordholts
b89dc15be1 Use proper Architecture for Debian packages built for musl
New values taken from

    dpkg-architecture -L
2023-12-27 17:03:40 +01:00
cyqsimon
15ab4478c9 Reduce unnecessary build deps 2023-12-22 19:55:49 +08:00
Oliver looney
5b4ce684a1 ran cargo fmt 2023-12-18 17:47:09 +00:00
Oliver looney
0027055a83 fixed system_wide_config.rs tests 2023-12-18 17:44:52 +00:00
Oliver looney
321b3ec81b updated CHANGELOG.md 2023-12-18 17:38:11 +00:00
Oliver looney
1679460f42 updated CHANGELOG.md 2023-12-18 17:32:08 +00:00
Oliver looney
907af9e35f updated tests since terminal title is set conditionally 2023-12-18 17:27:51 +00:00
Oliver looney
12b74dfb4e terminal title is only set when pager is being used 2023-12-18 16:59:12 +00:00
Oliver looney
fd84e4f49f fixed all but two failing tests. Last two tests are erroring because of IO circle detected error 2023-12-11 19:09:48 +00:00
cyqsimon
f0a6fe216d Benchmark prototype 2023-12-11 10:38:59 +08:00
cyqsimon
d792dc5804 Move rusty-fork to dev-dependencies 2023-12-11 10:21:07 +08:00
cyqsimon
8a08025091 Disable builtin_mappings_are_lazily_evaluated for ARM builds 2023-12-11 10:21:06 +08:00
cyqsimon
586c804b1e Add test: builtin_mappings_are_lazily_evaluated 2023-12-11 10:21:06 +08:00
cyqsimon
e30161ac3c Add test: builtin_mappings_matcher_only_compile_once 2023-12-11 10:21:06 +08:00
cyqsimon
3865908439 Add test: custom_mappings_precedence 2023-12-11 10:21:06 +08:00
cyqsimon
9474b4cf8b Rename & sort syntax mapping tests 2023-12-11 10:21:06 +08:00
cyqsimon
b48bda21a3 Add test: all_fixed_builtin_mappings_can_compile 2023-12-11 10:21:06 +08:00
cyqsimon
daf33709a0 Additional sanity check for matcher parser 2023-12-11 10:21:06 +08:00
cyqsimon
36073a3d95 Document another rule ignore condition 2023-12-11 10:21:06 +08:00
cyqsimon
12fa2cb1eb - is not a legal character in variable name 2023-12-11 10:21:06 +08:00
cyqsimon
1f10d846a3 Fix tests
1. for override test, test for something in `common`
2. move git mappings to `common`
2023-12-11 10:21:05 +08:00
cyqsimon
22531eab90 Port all mappings to new system 2023-12-11 10:21:05 +08:00
cyqsimon
0c1b80faab Impl per-target syntax mappings 2023-12-11 10:21:05 +08:00
cyqsimon
2c9bf229e1 Add doc comment for BUILTIN_MAPPINGS 2023-12-11 10:21:05 +08:00
cyqsimon
822e81bb24 Suppress clippy warning for MappingTarget in build script 2023-12-11 10:21:05 +08:00
cyqsimon
ad628c0471 Fix iterator lifetime incompatibility 2023-12-11 10:21:05 +08:00
cyqsimon
f483d2df42 Lazily compile GlobMatchers 2023-12-11 10:21:05 +08:00
cyqsimon
4ad3002543 s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/ 2023-12-11 10:21:05 +08:00
cyqsimon
cfd622d6e1 Migrate SyntaxMapping impl to new system
Most existing builtins are removed but not yet ported, so the test
`user_can_override_builtin_mappings` should fail. It should pass once the old
rules have been ported.
2023-12-11 10:21:05 +08:00
cyqsimon
1c7c9a6b6d Split syntax_mapping/builtin.rs 2023-12-11 10:21:05 +08:00
cyqsimon
0c93ca80f4 Guard against duplicate matchers in build script 2023-12-11 10:21:04 +08:00
cyqsimon
de6d418d42 Remove BuiltinMatcher enum
Explanation added as comments in code
Using plain `Lazy<Option<GlobMatcher>>` is just better
2023-12-11 10:21:04 +08:00
cyqsimon
c016b462c0 STATIC_RULES => BUILTIN_MAPPINGS 2023-12-11 10:21:04 +08:00
cyqsimon
7e1fbcfe95 Fix visibility for SyntaxMapping::get_syntax_for
This change was made in 31fb708, but then was reverted (I assume incorrectly)
in 6246485.
2023-12-11 10:21:04 +08:00
cyqsimon
4815b6155e Write changelog 2023-12-11 10:21:03 +08:00
cyqsimon
075b5b288a Matcher parser errors when empty 2023-12-11 10:20:12 +08:00
cyqsimon
7cfd1e0d78 Rerun build script only when necessary 2023-12-11 10:20:12 +08:00
cyqsimon
9f7d70f642 Use regex for matcher parsing
- Somewhat better maintainability I think
2023-12-11 10:20:12 +08:00
cyqsimon
0fea82cff9 Minor improvement of variable naming accuracy 2023-12-11 10:20:11 +08:00
cyqsimon
64840fbbae join_segments -> build_glob_string
- this is a more descriptive name
2023-12-11 10:20:11 +08:00
cyqsimon
827b3eca2f Add unset *.conf example 2023-12-11 10:20:11 +08:00
cyqsimon
9478d2dfe8 Isolate variables at compile time 2023-12-11 10:20:11 +08:00
cyqsimon
d24501ab5e include! generated mappings in source 2023-12-11 10:20:11 +08:00