on 448bfaf help sign in
history ofsrc/assets.rs
all commits
4e36a56Expose syntect theme and syntax sets (#2030)Dan Davison a3ea798Credit syntax definition and theme authors with new `--acknowledgements` option (#1971)Martin Nordholts e250da8Run `cargo clippy --fix --all-targets --all-features` with Rust 1.57Martin Nordholts 7fceb48Load themes lazily for improved startup time (#1969)Martin Nordholts dd0925aReplace lazycell with once_cellMartin Nordholts d7671faRemove the code related to minimal_syntaxes.binMartin Nordholts e79b07bHighlightingAssets::get_syntax_set(): Make privateMartin Nordholts d6ed5e6Support for ignored-suffix CLI arguments (#1892)Bojan Đurđević 7fe4fdfIntroduce MapExtensionToUnknown MappingTarget (#1889)cbolgiano aefc8fdsrc/printer.rs: Simplify Plain Text fallback codeMartin Nordholts 405a80fHighlightingAssets: Turn get_syntax_for_path() into public APIMartin Nordholts ad98d35HighlightingAssets: Implement get_syntax_for_file_name() with get_syntax_for_path()Martin Nordholts b69ab21HighlightingAssets: Extract get_syntax_for_path() methodMartin Nordholts dc8225fsrc/assets.rs: Extract helper method OpenedInput::path()Martin Nordholts 0994f37HighlightingAssets: Move common get_extension_syntax() code into find_syntax_by_extension()Martin Nordholts 974dec3HighlightingAssets: Inline find_syntax_by_file_name() and find_syntax_by_file_name_extension()Martin Nordholts a0c3636src/assets.rs: Use /// not // for COMPRESS_* constsMartin Nordholts d989224HighlightingAssets: Inline absolute_pathMartin Nordholts 82f439eHighlightingAssets: Simplify absolute_path with .map_or_else()Martin Nordholts b034879HighlightingAssets: No need for both path and path_strMartin Nordholts 9ed9a6fSimplify HighlightingAssets::get_syntax() first_line logic (#1852)Martin Nordholts e84b702Extract some private submodules from 'bat::assets' (#1850)Martin Nordholts 6226ebaHighlightingAssets: Add find_syntax_by_extension() helperMartin Nordholts 9e0ea06HighlightingAssets: Add find_syntax_by_name() helperMartin Nordholts 7956485Improve iterator usageMarcin Puc 372e42fReduce nesting in if blocks by short circuitingMarcin Puc 9124271Load independent and minimal syntax sets when using --language (#1787)Martin Nordholts 87978e7Make asset compression optional at compile time (#1825)Martin Nordholts 7c41bd7assets: add Debian ucf backups to ignored suffixesVille Skyttä 19c3e82Replace deprecated 'error-chain' with 'thiserror' (#1820)Martin Nordholts f1c0fd7Don't take a HighlightingAssets detour to build assets (#1802)Martin Nordholts ed09f90Fix all lints that are new with Rust 1.54Martin Nordholts 25fa577Make 'build-assets' an optional capability for applicationMartin Nordholts deddc81src/assets.rs: Use ThemeSet::new() instead of BTreeMap::new()Martin Nordholts d8b813cWhen returning a SyntaxReference, also return the SyntaxSet that contains it (#1776)Martin Nordholts 47d955aAdd code for analyzing dependencies between syntaxesMartin Nordholts 0331d28cargo fmtMartin Nordholts 3b020fdMerge pull request #1771 from sharkdp/warn_when_missing_contextsKeith Hall 50e1c60Warn when building assets from files if some referenced contexts are missingKeith Hall a610987assets::tests: Add get_syntax_name() helperMartin Nordholts ffdf349HighlightingAssets: Encapsulate theme_set behind a getterMartin Nordholts 6acec2cReduce startup time in loop-through mode with 80%-90%Martin Nordholts 1bac375HighlightingAssets: Move out fn get_integrated_*set() to module scopeMartin Nordholts a810096HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failableMartin Nordholts c0e0966HighlightingAssets::get_extension_syntax(): Split up into smaller methodsMartin Nordholts ccf4563Make loading of cached assets closer in performance to integrated assetsMartin Nordholts f6fc826HighlightingAssets: Introduce private fn new() helperMartin Nordholts 375d55aHighlightingAssets: Encapsulate syntax_set behind a getterMartin Nordholts 6ef2bb3De-duplicate some themes.bin and syntaxes.bin related codeMartin Nordholts 33c11d6Run cargo fmtDavid Peter