Commit Graph

12 Commits (master)

Author SHA1 Message Date
Lena 4c85483486 Inline `format!` args wherever possible 3 months ago
Martin Nordholts 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.
3 years ago
Sean McLoughlin d89fa3ebc2 Add SystemVerilog support 3 years ago
sharkdp 71b2089384 Code formatting 4 years ago
Caio Alonso fc121f0c87 Defaults *.fs to F# 4 years ago
sharkdp 9cb43ef64d Update tests 4 years ago
Lzu Tao e37e9c1214 Fix some clippy lints
Some might actually improve perf
4 years ago
sharkdp 26c951fec4 Fix warnings, sort imports, input from string 4 years ago
sharkdp 2c2861db6a Further simplify module structure 4 years ago
sharkdp 62f2d0c100 Do not export syntax_set and theme_set 4 years ago
sharkdp 06b7be7ee9 Major restructuring of theme/syntax handling 4 years ago
sharkdp b611d2aef4 Add no-duplicate-extensions unit test 4 years ago