diff --git a/README.md b/README.md index c296626..436349a 100644 --- a/README.md +++ b/README.md @@ -86,9 +86,9 @@ For reference here are the sizes associated with their different functions | ---: | ---: | ---: | | [`acknowledgement::listing()`](https://docs.rs/two-face/latest/two_face/acknowledgement/fn.listing.html) | 10 | - | | [`syntax::extra_newlines()`](https://docs.rs/two-face/latest/two_face/syntax/fn.extra_newlines.html) (onig) | 920 | 360 | -| ^^ (fancy) | 865 | 360 | +| ^^ (fancy) | 900 | 360 | | [`syntax::extra_no_newlines()`](https://docs.rs/two-face/latest/two_face/syntax/fn.extra_no_newlines.html) (onig) | 919 | 359 | -| ^^ (fancy) | 864 | 359 | +| ^^ (fancy) | 899 | 359 | | [`theme::extra()`](https://docs.rs/two-face/latest/two_face/theme/index.html) | 45 | 5 | In short the syntax definitions are the real chonky part, and if you're @@ -115,14 +115,14 @@ The full listing of all syntaxes included in [`two_face::syntax`](https://docs.r | I | INI | | J | Java†, Javadoc†, Java Server Page (JSP)†, JavaScript†, JavaScript (Babel)\*, Jinja2, JQ, JSON†, Julia | | K | Kotlin | -| L | LaTeX†, LaTeX Log†, Lean, LESS, Lisp†, Literate Haskell†, LiveScript\*, LLVM, Lua† | +| L | LaTeX†, LaTeX Log†, Lean, LESS, Lisp†, Literate Haskell†, LiveScript, LLVM, Lua† | | M | Makefile†, Manpage, Markdown†, MATLAB†, Mediawiki, MutliMarkdown† | | N | NAnt Build File†, Nginx, Nim, Ninja, Nix, NSIS | | O | Objective-C†, Objective-C++†, OCaml†, OCamllex†, OCamlyacc†, Org Mode | | P | Pascal†, Perl†, PHP†, PowerShell\*, Protobuf, Puppet, PureScript, Python† | | Q | QML | | R | R†, Racket, Rd†, Rego, Regular Expression†, Requirements.txt, reStructuredText†, Robot Framework, Ruby†, Ruby Haml†, Ruby on Rails†, Ruby Slim, Rust† | -| S | Sass\*, Scala†, SCSS, Salt State SLS\*, SML, Solidity, SQL†, Strace, Stylus, Svelte, Swift, SystemVerilog | +| S | Sass, Scala†, SCSS, Salt State SLS\*, SML, Solidity, SQL†, Strace, Stylus, Svelte, Swift, SystemVerilog | | T | Tcl†, Terraform, TeX†, Textile†, Todo.txt, TOML, TypeScript, TypescriptReact | | V | Varlink, Verilog, VimL, Vue, Vyper | | W | WGSL | diff --git a/generated/syntaxes-fancy-newlines.bin b/generated/syntaxes-fancy-newlines.bin index 08a389b..41f5709 100644 Binary files a/generated/syntaxes-fancy-newlines.bin and b/generated/syntaxes-fancy-newlines.bin differ diff --git a/generated/syntaxes-fancy-no-newlines.bin b/generated/syntaxes-fancy-no-newlines.bin index aad5aef..7104548 100644 Binary files a/generated/syntaxes-fancy-no-newlines.bin and b/generated/syntaxes-fancy-no-newlines.bin differ diff --git a/generated/themes.bin b/generated/themes.bin index a42d670..8c352cd 100644 Binary files a/generated/themes.bin and b/generated/themes.bin differ diff --git a/src/lib.rs b/src/lib.rs index 51a2a43..2322186 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,9 +79,9 @@ //! | ---: | ---: | ---: | //! | [`acknowledgement::listing()`] | 10 | - | //! | [`syntax::extra_newlines()`] (onig) | 920 | 360 | -//! | ^^ (fancy) | 865 | 360 | +//! | ^^ (fancy) | 900 | 360 | //! | [`syntax::extra_no_newlines()`] (onig) | 919 | 359 | -//! | ^^ (fancy) | 864 | 359 | +//! | ^^ (fancy) | 899 | 359 | //! | [`theme::extra()`] | 45 | 5 | //! //! In short the syntax definitions are the real chonky part, and if you're @@ -108,14 +108,14 @@ //! | I | INI | //! | J | Java†, Javadoc†, Java Server Page (JSP)†, JavaScript†, JavaScript (Babel)\*, Jinja2, JQ, JSON†, Julia | //! | K | Kotlin | -//! | L | LaTeX†, LaTeX Log†, Lean, LESS, Lisp†, Literate Haskell†, LiveScript\*, LLVM, Lua† | +//! | L | LaTeX†, LaTeX Log†, Lean, LESS, Lisp†, Literate Haskell†, LiveScript, LLVM, Lua† | //! | M | Makefile†, Manpage, Markdown†, MATLAB†, Mediawiki, MutliMarkdown† | //! | N | NAnt Build File†, Nginx, Nim, Ninja, Nix, NSIS | //! | O | Objective-C†, Objective-C++†, OCaml†, OCamllex†, OCamlyacc†, Org Mode | //! | P | Pascal†, Perl†, PHP†, PowerShell\*, Protobuf, Puppet, PureScript, Python† | //! | Q | QML | //! | R | R†, Racket, Rd†, Rego, Regular Expression†, Requirements.txt, reStructuredText†, Robot Framework, Ruby†, Ruby Haml†, Ruby on Rails†, Ruby Slim, Rust† | -//! | S | Sass\*, Scala†, SCSS, Salt State SLS\*, SML, Solidity, SQL†, Strace, Stylus, Svelte, Swift, SystemVerilog | +//! | S | Sass, Scala†, SCSS, Salt State SLS\*, SML, Solidity, SQL†, Strace, Stylus, Svelte, Swift, SystemVerilog | //! | T | Tcl†, Terraform, TeX†, Textile†, Todo.txt, TOML, TypeScript, TypescriptReact | //! | V | Varlink, Verilog, VimL, Vue, Vyper | //! | W | WGSL | diff --git a/src/theme/mod.rs b/src/theme/mod.rs index c5f775a..621a204 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -362,7 +362,7 @@ pub enum EmbeddedThemeName { ///
/// # There currently is no ternary operator like true ? "yes" : "no"
/// # So the following is suggested
- /// "no" = if 1 == 0, do: "yes", else: "no"
+ /// "no" = if 1 == 0, do: "yes", else: "no"
///
Zenburn,
}
diff --git a/tests/docs_watchdog/readme.rs b/tests/docs_watchdog/readme.rs
index dd2a6f2..c70bd6d 100644
--- a/tests/docs_watchdog/readme.rs
+++ b/tests/docs_watchdog/readme.rs
@@ -13,10 +13,10 @@ fn embedded_asset_sizes() {
assert_eq!(10, kib(TwoFaceAsset::AckFull));
assert_eq!(920, kib(TwoFaceAsset::SynOnigNewlines));
- assert_eq!(865, kib(TwoFaceAsset::SynFancyNewlines));
+ assert_eq!(900, kib(TwoFaceAsset::SynFancyNewlines));
assert_eq!(919, kib(TwoFaceAsset::SynOnigNoNewlines));
- assert_eq!(864, kib(TwoFaceAsset::SynFancyNoNewlines));
+ assert_eq!(899, kib(TwoFaceAsset::SynFancyNoNewlines));
assert_eq!(45, kib(TwoFaceAsset::Themes));
}
@@ -50,7 +50,7 @@ const EXPECTED: &[&str] = &[
// K
"Kotlin",
// L
- "LaTeX", "LaTeX Log", "Lean", "Less", "Lisp", "Literate Haskell", "LLVM", "Lua",
+ "LaTeX", "LaTeX Log", "Lean", "Less", "Lisp", "Literate Haskell", "LiveScript", "LLVM", "Lua",
// M
"Makefile", "Manpage", "Markdown", "MATLAB", "MediaWiki", "MultiMarkdown",
// N
@@ -66,7 +66,7 @@ const EXPECTED: &[&str] = &[
"reStructuredText", "Robot Framework", "Ruby", "Ruby Haml", "Ruby Slim", "Ruby on Rails",
"Rust",
// S
- "Scala", "SCSS", "Solidity", "SML", "SQL", "Strace", "Stylus", "Svelte", "Swift",
+ "Sass", "Scala", "SCSS", "Solidity", "SML", "SQL", "Strace", "Stylus", "Svelte", "Swift",
"SystemVerilog",
// T
"Tcl", "Terraform", "TeX", "Textile", "Todo.txt", "TOML", "TypeScript", "TypeScriptReact",
@@ -97,7 +97,7 @@ const EXPECTED: &[&str] = &[
// Misc
"Java Properties", "JavaScript (Rails)", "jsonnet", "Vue Component", "camlp4", "Plain Text",
"R Console", "SQL (Rails)", "Protocol Buffer (TEXT)", "gnuplot", "HTTP Request and Response",
- "log", "syslog", "Highlight non-printables", "Dockerfile (with bash)",
+ "log", "syslog", "Highlight non-printables", "Dockerfile (with bash)", "Command Help",
];
/// Some syntax definitions use regex features that aren't supported by `fancy-regex`
@@ -107,17 +107,15 @@ const ONIG_ONLY: &[&str] = &[
"ARM Assembly",
// J
"JavaScript (Babel)",
- // L
- "LiveScript",
// P
"PowerShell",
// S
- "Salt State (SLS)", "Sass",
+ "Salt State (SLS)",
// -- Not worth displaying in docs --
// Misc
- "Command Help", "VimHelp",
+ "VimHelp",
];
#[test]
diff --git a/tests/docs_watchdog/theme.rs b/tests/docs_watchdog/theme.rs
index 0258976..7a7a5b5 100644
--- a/tests/docs_watchdog/theme.rs
+++ b/tests/docs_watchdog/theme.rs
@@ -414,7 +414,7 @@ fn zenburn() {
# There currently is no ternary operator like true ? "yes" : "no"
# So the following is suggested
- "no" = if 1 == 0, do: "yes", else: "no"
+ "no" = if 1 == 0, do: "yes", else: "no"
"#
);