b040efff79
Support a hidden arg --no-custom-assets that skips loading assets from the cache
2021-07-29 08:27:02 +02:00
a81009607a
HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable
...
Or rather, introduce new versions of these methods and deprecate the old ones.
This is preparation to enable robust and user-friendly support for lazy-loading.
With lazy-loading, we don't know if the SyntaxSet is valid until after we try to
use it, so wherever we try to use it, we need to return a Result. See discussion
about panics in #1747 .
2021-07-29 08:26:18 +02:00
f464b1ba39
Update battest.py
...
Add decorator test `@classmethod` and fixed spellings.
2021-07-26 08:44:05 +02:00
7537e309d8
Add groff syntax
...
The syntax is named "Man Page" upstream, but our man page syntax is
different, it's for rendered man pages. Rename to Groff and remove
`.man` from extensions.
2021-07-25 13:27:30 +02:00
64763eafbe
Update Julia syntax test
2021-07-13 09:07:29 +02:00
ddb39ef2f6
Add syntax tests for ignored filename suffixes
2021-07-09 06:34:11 +02:00
12ecb325c9
Modify Linguist overrides
2021-06-14 08:36:20 +02:00
c18afcb01a
Add Verilog syntax test file
2021-06-01 22:36:56 +02:00
63043d4a60
Add varlink syntax test file
2021-06-01 22:36:56 +02:00
76034880ae
Add TypeScriptReact syntax test file
2021-06-01 22:36:56 +02:00
768189859a
Add Stylus syntax test file
2021-06-01 22:36:56 +02:00
6e5a2a5c51
Add Strace syntax test file
2021-06-01 22:36:56 +02:00
9935c4984c
Add Robot Framework syntax test file
2021-06-01 22:36:56 +02:00
a0a5e30c39
Add Rego syntax test file
2021-06-01 22:36:56 +02:00
4126bbeead
Add Puppet syntax test file
2021-06-01 22:36:56 +02:00
a5b79295d7
Add NAnt Build File syntax test file
2021-06-01 22:36:56 +02:00
e917784932
Add Literate Haskell syntax test file
2021-06-01 22:36:56 +02:00
f46b90d28d
Add jsonnet syntax test file
2021-06-01 22:36:56 +02:00
64cbfbed47
Add Java Server Page (JSP) syntax test file
2021-06-01 22:36:56 +02:00
1ced35ec76
Add 'NOTICE' to list of file names to skip
2021-06-01 22:36:56 +02:00
16d346773b
Add Fortran Namelist syntax test file
2021-06-01 22:36:56 +02:00
b02120cf66
Add Fortran (Fixed Form) syntax test file
2021-06-01 22:36:56 +02:00
702b5caf2d
Add Fortran (Modern) syntax test file
2021-06-01 22:36:56 +02:00
d395f64f58
Add F# syntax test file
2021-06-01 22:36:56 +02:00
c9627040cc
Add CoffeeScript syntax test file
2021-06-01 22:36:56 +02:00
b1f69434f9
Add Cabal syntax test file
2021-06-01 22:36:56 +02:00
8435cad602
Merge master
2021-05-15 09:41:27 +02:00
8b6341458b
Add XAML test file
2021-05-14 23:59:11 +02:00
8b787b4f70
Add dash test file
2021-05-14 23:02:23 +02:00
bfa9c3bef6
Merge branch 'master' into feature/dark_plus_theme
2021-05-12 22:28:10 +02:00
2904f24ea8
Merge pull request #1606 from sharkdp/syslog
...
Improve Syslog and general log file highlighting
2021-05-12 22:22:50 +02:00
e219c8fc03
Update SublimeEthereum version
...
A fix I submitted upstream was merged, and this commit bumps the submodule
to include it.
2021-05-12 11:42:17 +02:00
9eb26b702c
Add syntax test for Vyper language
2021-05-12 11:42:17 +02:00
c933be926d
Add syntax tests for Solidity language.
2021-05-12 11:42:17 +02:00
5db3c93057
Merge branch 'master' into syslog
2021-05-12 11:34:35 +02:00
aa442b5795
Merge branch 'master' into feature/dark_plus_theme
2021-05-12 11:30:49 +02:00
848ceb6f10
Remove variable.other from CSV highlighting
2021-05-11 21:04:02 +02:00
3559079de0
Improvements to CSV highlighting
2021-05-11 21:04:02 +02:00
7c4edacb2b
Add independent log syntax
2021-04-06 23:55:22 +03:00
782ede5db5
improve syslog syntax
2021-04-05 22:24:04 +03:00
1537733e6b
replace Syslog dependency with a custom syntax
2021-04-04 22:47:01 +03:00
ba0d43672b
add example syslog file for highlighting tests
2021-04-04 22:41:48 +03:00
0cd52e5be1
Add "Visual Studio Dark+" theme to vec of themes
2021-03-24 18:39:06 +05:00
d89fa3ebc2
Add SystemVerilog support
2021-03-15 07:21:15 +01:00
b8a18d3ebb
Use tempfiles for clircle tests
2021-02-28 23:04:49 +01:00
3af3549232
integration_tests: Use tempdir() in config_location_when_generating
...
For cleaner code.
Use the tempdir() function since that is recommended by the crate docs:
https://docs.rs/tempfile/3.2.0/tempfile/index.html
2021-02-28 18:09:44 +01:00
643f0bcbe3
integration_tests.rs: Add test config_location_when_generating
...
As a complement to #1556 to prevent #1550 from coming back.
The test purposefully fails if ca60937c2e
is reverted.
2021-02-28 18:09:44 +01:00
ca60937c2e
Do not ignore non-existent BAT_CONFIG_PATH
...
Do not ignore `BAT_CONFIG_PATH` if it doesn't exist. Both when
generating a new config file with `--generate-config-file` and
when attempting to read the config.
Also, provide a better error message in case the file can not
be created.
closes #1550
2021-02-28 10:08:24 +01:00
7768433d09
Improve Monokai Extended JSON key color with a patch
2021-02-28 09:55:24 +01:00
94496df3b0
Fix broken resolv.conf highlighting
...
closes #1510
The change in `create_highlighted_versions.py` fixes a "unknown theme
"'1337'" warning. The single quotes were wrong. `bat` was always falling
back to the default theme, so let's use that for now.
2021-02-16 22:15:31 +01:00