pub fn load_defaults_nonewlines() -> SyntaxSet {

        #[cfg(feature = "metadata")]
        {
            let mut ps: SyntaxSet = from_binary(include_bytes!("../assets/default_nonewlines.packdump"));
            let metadata = from_binary(include_bytes!("../assets/default_metadata.packdump"));
            ps.metadata = metadata;
            ps
        }
        #[cfg(not(feature = "metadata"))]
        {
            from_binary(include_bytes!("../assets/default_nonewlines.packdump"))
        }
    }
/// Instantiates a new syntax set from a binary dump of Sublime Text's default open source
/// syntax definitions.
///
/// These dumps are included in this library's binary for convenience.
///
/// This method loads the version for parsing line strings with no `\n` characters at the end.
/// If you're able to efficiently include newlines at the end of strings, use
/// [`load_defaults_newlines`] since it works better. See [`SyntaxSetBuilder::add_from_folder`]
/// for more info on this issue.
///
/// This is the recommended way of creating a syntax set for non-advanced use cases. It is also
/// significantly faster than loading the YAML files.
///
/// Note that you can load additional syntaxes after doing this. If you want you can even use
/// the fact that SyntaxDefinitions are serializable with the bincode crate to cache dumps of
/// additional syntaxes yourself.
///
/// [`load_defaults_newlines`]: #method.load_defaults_nonewlines
/// [`SyntaxSetBuilder::add_from_folder`]: struct.SyntaxSetBuilder.html#method.add_from_folder
Instantiates a new syntax set from a binary dump of Sublime Text's default open source
syntax definitions.

These dumps are included in this library's binary for convenience.

This method loads the version for parsing line strings with no `\n` characters at the end.
If you're able to efficiently include newlines at the end of strings, use
[`load_defaults_newlines`] since it works better. See [`SyntaxSetBuilder::add_from_folder`]
for more info on this issue.

This is the recommended way of creating a syntax set for non-advanced use cases. It is also
significantly faster than loading the YAML files.

Note that you can load additional syntaxes after doing this. If you want you can even use
the fact that SyntaxDefinitions are serializable with the bincode crate to cache dumps of
additional syntaxes yourself.


Instantiates a new syntax set from a binary dump of Sublime Text ' s default open source syntax definitions . These dumps are included in this library ' s binary for convenience . This method loads the version for parsing line strings with no ` \ n ` characters at the end . If you ' re able to efficiently include newlines at the end of strings use [ ` load_defaults_newlines ` ] since it works better . See [ ` SyntaxSetBuilder :: add_from_folder ` ] for more info on this issue . This is the recommended way of creating a syntax set for non - advanced use cases . It is also significantly faster than loading the YAML files . Note that you can load additional syntaxes after doing this . If you want you can even use the fact that SyntaxDefinitions are serializable with the bincode crate to cache dumps of additional syntaxes yourself .
pub fn load_defaults_nonewlines() -> SyntaxSet {
        #[cfg(feature = "metadata")]
        {
            let mut ps: SyntaxSet = from_binary(include_bytes!("../assets/default_nonewlines.packdump"));
            let metadata = from_binary(include_bytes!("../assets/default_metadata.packdump"));
            ps.metadata = metadata;
            ps
        }
        #[cfg(not(feature = "metadata"))]
        {
            from_binary(include_bytes!("../assets/default_nonewlines.packdump"))
        }
    }
pub fn load_defaults_nonewlines ( ) -> SyntaxSet { # [ cfg ( feature " " ) ] { let mut ps : SyntaxSet = from_binary ( include_bytes ! ( " " ) ) ; let metadata = from_binary ( include_bytes ! ( " " ) ) ; ps . metadata = metadata ; ps } # [ cfg ( not ( feature " " ) ) ] { from_binary ( include_bytes ! ( " " ) ) } }
Instantiates a new syntax set from a binary dump of Sublime Text's default open source
syntax definitions.
Instantiates a new syntax set from a binary dump of Sublime Text ' s default open source syntax definitions .