Enum version
Language
has been changed from a struct
to an enum
-- the language's attributes are now assigned to each variant. To accomplish this, we had to move to defining language data at compile-time instead of runtime. This means that this release drops the ability to define your own language definitions -- the default languages.yaml
is now the only language definition.
Types for performing analysis, like Analyzers
, have also been dropped to accomplish this. Now, Language
has methods that return Self
that can be used to match file information to a language.
Usage of the binary should be the same.
What's Changed
💥 Breaking changes
- Switch to
Language
enum by @spenserblack in #298 - Mark
Category
as non-exhaustive by @spenserblack in #311
Other Changes
- Skip files that are detected as binary by @spenserblack in #297
- Add
.wixproj
and.wxs
as XML extensions by @spenserblack in #304
Full Changelog: v0.10.1...v0.11.0