mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
miniscule: fix edition fmt (#5167)
* miniscule: fix edition fmt * fix: rust analyzer might enable this and hence cause red squiggles Reduce the visual overload. * fix/spellcheck/quirk: allow 124_123 numbers
This commit is contained in:
committed by
GitHub
parent
189dfdc006
commit
0e34a8080f
@@ -67,7 +67,10 @@ pub(crate) fn gum(item: proc_macro::TokenStream, level: Level) -> proc_macro::To
|
|||||||
|
|
||||||
let res = expander::Expander::new("gum")
|
let res = expander::Expander::new("gum")
|
||||||
.add_comment("Generated overseer code by `gum::warn!(..)`".to_owned())
|
.add_comment("Generated overseer code by `gum::warn!(..)`".to_owned())
|
||||||
.dry(!cfg!(feature = "expand"))
|
// `dry=true` until rust-analyzer can selectively disable features so it's
|
||||||
|
// not all red squiggles. Originally: `!cfg!(feature = "expand")`
|
||||||
|
// ISSUE: <https://github.com/rust-analyzer/rust-analyzer/issues/11777>
|
||||||
|
.dry(true)
|
||||||
.verbose(false)
|
.verbose(false)
|
||||||
.fmt(expander::Edition::_2021)
|
.fmt(expander::Edition::_2021)
|
||||||
.maybe_write_to_out_dir(impl_gum2(item, level))
|
.maybe_write_to_out_dir(impl_gum2(item, level))
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ pub(crate) fn impl_overseer_gen(
|
|||||||
.add_comment("Generated overseer code by `#[overlord(..)]`".to_owned())
|
.add_comment("Generated overseer code by `#[overlord(..)]`".to_owned())
|
||||||
.dry(!cfg!(feature = "expand"))
|
.dry(!cfg!(feature = "expand"))
|
||||||
.verbose(false)
|
.verbose(false)
|
||||||
.fmt(expander::Edition::_2018)
|
.fmt(expander::Edition::_2021)
|
||||||
.write_to_out_dir(additive)
|
.write_to_out_dir(additive)
|
||||||
.expect("Expander does not fail due to IO in OUT_DIR. qed");
|
.expect("Expander does not fail due to IO in OUT_DIR. qed");
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,22 @@ skip_os_lookups = true
|
|||||||
use_builtin = true
|
use_builtin = true
|
||||||
|
|
||||||
[hunspell.quirks]
|
[hunspell.quirks]
|
||||||
# `Type`'s
|
|
||||||
# 5x
|
|
||||||
# He tagged it as 'TheGreatestOfAllTimes'
|
# He tagged it as 'TheGreatestOfAllTimes'
|
||||||
|
transform_regex = [
|
||||||
|
# `Type`'s
|
||||||
|
"^'([^\\s])'$",
|
||||||
|
# 5x
|
||||||
|
# 10.7%
|
||||||
|
"^[0-9_]+(?:\\.[0-9]*)?(x|%)$",
|
||||||
# Transforms'
|
# Transforms'
|
||||||
transform_regex = ["^'([^\\s])'$", "^[0-9]+(?:\\.[0-9]*)?(x|%)$", "^(.*)'$", "^\\+$", "^[0-9]*+k|MB|Mb|ms|Mbit|nd|th|rd$", "^=|>|<|%$"]
|
"^(.*)'$",
|
||||||
|
# backslashes
|
||||||
|
"^\\+$",
|
||||||
|
"^[0-9]*+k|MB|Mb|ms|Mbit|nd|th|rd$",
|
||||||
|
# single char `=` `>` `%` ..
|
||||||
|
"^=|>|<|%$",
|
||||||
|
# 22_100
|
||||||
|
"^(?:[0-9]+_)+[0-9]+$"
|
||||||
|
]
|
||||||
allow_concatenation = true
|
allow_concatenation = true
|
||||||
allow_dashes = true
|
allow_dashes = true
|
||||||
|
|||||||
Reference in New Issue
Block a user