Initial commit.
Signed-off-by: Andreas Widen <aw@luflow.net>
This commit is contained in:
commit
a4a5c7daa5
1389 changed files with 241399 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.vscode
|
||||||
|
output
|
||||||
|
/target
|
||||||
|
flow-web.log
|
||||||
19
AUTHORS
Normal file
19
AUTHORS
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
luflow.net static web site generator
|
||||||
|
Maintainer: Andreas Widen <aw@luflow.net>
|
||||||
|
License: GNU AGPL-3.0 or later (see LICENSE for details)
|
||||||
|
URL: https://www.luflow.net
|
||||||
|
|
||||||
|
Authors
|
||||||
|
=======
|
||||||
|
|
||||||
|
Andreas Widen <aw@luflow.net>
|
||||||
|
|
||||||
|
|
||||||
|
Graphics
|
||||||
|
========
|
||||||
|
|
||||||
|
Public domain 2015 Luis Felipe López Acevedo and Andreas Widen 2025.
|
||||||
|
|
||||||
|
All the graphics in this directory are dedicated to the public domain, except
|
||||||
|
for the luflow.net logo (navigation bar logo to the left), which can be used
|
||||||
|
under the Creative Commons Attribution-ShareAlike 4.0 International License.
|
||||||
1154
Cargo.lock
generated
Normal file
1154
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
24
Cargo.toml
Normal file
24
Cargo.toml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
[package]
|
||||||
|
name = "flow-web"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
authors = ["Andreas Widen <aw@luflow.net>"]
|
||||||
|
description = "flow-web is a program that will allow you to generate a static website."
|
||||||
|
license = "AGPL-3.0-or-later"
|
||||||
|
repository = "https://luflow.net/git/hfsoulz/flow-web.git"
|
||||||
|
readme = "README.md"
|
||||||
|
documentation = "https://luflow.net/git/hfsoulz/flow-web.git"
|
||||||
|
keywords = ["static", "site", "generator"]
|
||||||
|
exclude = [".github", "/ci/*", "*.log"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
async-recursion = "1.1.1"
|
||||||
|
chrono = "0.4.45"
|
||||||
|
fern = "0.7.1"
|
||||||
|
humantime = "2.3.0"
|
||||||
|
log = "0.4.32"
|
||||||
|
markdown = "1.0.0"
|
||||||
|
regex = "1.12.4"
|
||||||
|
rich_rust = "0.2.1"
|
||||||
|
sailfish = "0.11.1"
|
||||||
|
tokio = { version = "1.52.3", features = ["macros", "fs", "io-util", "rt-multi-thread"] }
|
||||||
661
LICENSE
Normal file
661
LICENSE
Normal file
|
|
@ -0,0 +1,661 @@
|
||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
43
README.md
Normal file
43
README.md
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
# flow-web
|
||||||
|
|
||||||
|
`flow-web` is a program written in Rust that will allow you to generate
|
||||||
|
[https://www.luflow.net](https://www.luflow.net) static website.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Install `Rust` from your package manager or by downloading from here:
|
||||||
|
[https://rust-lang.org/](https://rust-lang.org/).
|
||||||
|
|
||||||
|
## Generate the website
|
||||||
|
|
||||||
|
Build using release mode:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
Run to generate site:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo run --release
|
||||||
|
```
|
||||||
|
|
||||||
|
The generated output can be found in the '**output**' folder.
|
||||||
|
|
||||||
|
## Serve locally
|
||||||
|
|
||||||
|
Run the following command to serve locally using **servez** as an example:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
servez output
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, visit the following url in a web browser:
|
||||||
|
|
||||||
|
[http://localhost:8080/](http://localhost:8080)
|
||||||
|
|
||||||
|
You can stop the server pressing CTRL+c.
|
||||||
|
|
||||||
|
## LICENSE
|
||||||
|
|
||||||
|
See the file 'LICENSE' for license information.
|
||||||
|
|
@ -0,0 +1,78 @@
|
||||||
|
author: Andreas
|
||||||
|
published: 2026-06-10 10:41:00
|
||||||
|
updated: 2026-06-10 10:41:00
|
||||||
|
topics: flow-web, Static web site, generator, Rust
|
||||||
|
title: flow-web: A program that will allow you to generate static website
|
||||||
|
snippet: flow-web is a program written in Rust that will allow you to generate luflow.net static website.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
This static website is generated with a program written in [Rust](https://rust-lang.org/)
|
||||||
|
called [flow-web](https://luflow.net/git/hfsoulz/flow-web.git).
|
||||||
|
`flow-web` is specifically written to generate this static website.
|
||||||
|
|
||||||
|
### Installing Rust
|
||||||
|
|
||||||
|
Install `Rust` from your package manager or by downloading from here:
|
||||||
|
[https://rust-lang.org/](https://rust-lang.org/).
|
||||||
|
|
||||||
|
### Getting the code
|
||||||
|
|
||||||
|
Install `git` from your package manager or by downloading from here:
|
||||||
|
[https://git-scm.com/install](https://git-scm.com/install). The [git repository](https://luflow.net/git/hfsoulz/flow-web.git)
|
||||||
|
can also be browsed online.
|
||||||
|
|
||||||
|
Clone the `git` repository:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://luflow.net/git/hfsoulz/flow-web.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiling the code
|
||||||
|
|
||||||
|
cd into the cloned dir:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd flow-web
|
||||||
|
```
|
||||||
|
|
||||||
|
Build using release mode:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
### Generating the site
|
||||||
|
|
||||||
|
Generate the site using release mode:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo run --release
|
||||||
|
```
|
||||||
|
|
||||||
|
The generated output can be found in '**output**' folder.
|
||||||
|
|
||||||
|
### Serve locally
|
||||||
|
|
||||||
|
Run the following command to serve locally using **[servez](https://www.npmjs.com/package/servez)** as an example:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
servez output
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, visit the following url in a web browser:
|
||||||
|
|
||||||
|
[http://localhost:8080/](http://localhost:8080)
|
||||||
|
|
||||||
|
You can stop the server pressing CTRL+c.
|
||||||
|
|
||||||
|
servez can be installed through [Node.js](https://nodejs.org/en) like so:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install -g servez
|
||||||
|
```
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
[flow-web](https://luflow.net/git/hfsoulz/flow-web.git) is licensed under the
|
||||||
|
[GNU AGPL](https://gnu.org/licenses/agpl-3.0.html) license.
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
author: Andreas
|
||||||
|
published: 2026-06-10 11:31:00
|
||||||
|
updated: 2026-06-10 11:31:00
|
||||||
|
topics: flow-rbp, Rect bin packing, Rust
|
||||||
|
title: flow-rbp: A library for packing rectangles into two-dimensional finite bins
|
||||||
|
snippet: flow-rbp is a library for packing rectangles into two-dimensional finite bins using different heuristic methods for placement.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[flow-rbp](https://luflow.net/git/hfsoulz/flow-rbp.git) is a library for packing
|
||||||
|
rectangles into two-dimensional finite bins using different heuristic methods
|
||||||
|
for placement.
|
||||||
|
|
||||||
|
The two-dimensional rectangle bin packing is a classical problem in
|
||||||
|
combinatorial optimization. In this problem, one is given a sequence of
|
||||||
|
rectangles `(R1, R2, ... Rn), Ri = (wi, hi)` and the task is to find a packing
|
||||||
|
of these items into a minimum number of bins of size `(W, H)`. No two
|
||||||
|
rectangles may intersect or be contained inside one another. This library uses
|
||||||
|
an algorithm sometimes referred as `The Maximal Rectangles ALgorithm`. This
|
||||||
|
algorithm stores a list of free rectangles that represents the free area of the
|
||||||
|
bin.
|
||||||
|
|
||||||
|
[flow-texpack](https://luflow.net/git/hfsoulz/flow-texpack.git) is a program that
|
||||||
|
uses [flow-rbp](https://luflow.net/git/hfsoulz/flow-rbp.git) to generate texture
|
||||||
|
atlas.
|
||||||
|
|
||||||
|
### Installing Rust
|
||||||
|
|
||||||
|
Install `Rust` from your package manager or by downloading from here:
|
||||||
|
[https://rust-lang.org/](https://rust-lang.org/).
|
||||||
|
|
||||||
|
### Getting the code
|
||||||
|
|
||||||
|
Install `git` from your package manager or by downloading from here:
|
||||||
|
[https://git-scm.com/install](https://git-scm.com/install). The [git
|
||||||
|
repository](https://luflow.net/git/hfsoulz/flow-rbp.git) can also be browsed
|
||||||
|
online.
|
||||||
|
|
||||||
|
Clone the `git` repository:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://luflow.net/git/hfsoulz/flow-rbp.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Add this to your `Cargo.toml`:
|
||||||
|
|
||||||
|
```
|
||||||
|
[dependencies]
|
||||||
|
flow-rbp = { git = "https://luflow.net/git/hfsoulz/flow-rbp.git", tag = "v0.1.0" }
|
||||||
|
```
|
||||||
|
|
||||||
|
Then:
|
||||||
|
|
||||||
|
```rust
|
||||||
|
use flow_rbp::FreeRectHeuristic;
|
||||||
|
use flow_rbp::RectsBinPack;
|
||||||
|
|
||||||
|
// create a new bin of size 32x32 which allows rotation:
|
||||||
|
let mut rbp = RectsBinPack::new(32, 32, true).unwrap();
|
||||||
|
|
||||||
|
// make sure occupancy is zero:
|
||||||
|
assert_eq!(rbp.get_occupancy(), 0.0);
|
||||||
|
|
||||||
|
// add a few rects that should fit:
|
||||||
|
assert_eq!(rbp.insert(16, 16, FreeRectHeuristic::BottomLeft).is_some(), true);
|
||||||
|
assert_eq!(rbp.insert(16, 16, FreeRectHeuristic::BottomLeft).is_some(), true);
|
||||||
|
assert_eq!(rbp.get_occupancy(), 0.5);
|
||||||
|
assert_eq!(rbp.insert(16, 16, FreeRectHeuristic::BottomLeft).is_some(), true);
|
||||||
|
assert_eq!(rbp.insert(16, 16, FreeRectHeuristic::BottomLeft).is_some(), true);
|
||||||
|
assert_eq!(rbp.get_occupancy(), 1.0);
|
||||||
|
|
||||||
|
// this rect will not fit and therefore returns None:
|
||||||
|
assert_eq!(rbp.insert(1, 1, FreeRectHeuristic::BottomLeft).is_none(), true);
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
[flow-rbp](https://luflow.net/git/hfsoulz/flow-rbp.git) is licensed under the
|
||||||
|
zlib license. This license allows you to use `flow-rbp` freely in any software.
|
||||||
|
|
@ -0,0 +1,109 @@
|
||||||
|
author: Andreas
|
||||||
|
published: 2026-06-10 14:01:00
|
||||||
|
updated: 2026-06-10 14:01:00
|
||||||
|
topics: flow-texpack, Texture Atlas, Image Atlas, generator, Rust
|
||||||
|
title: flow-texpack: A program that will allow you to generate texture atlas.
|
||||||
|
snippet: flow-texpack is a program that will allow you to generate texture atlas from input images (BMP, HDR, JPG, PNG, TGA, TIFF, WEBP).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[flow-texpack](https://luflow.net/git/hfsoulz/flow-texpack.git) is a program that
|
||||||
|
will allow you to generate texture atlas from input images (BMP, HDR, JPG, PNG,
|
||||||
|
TGA, TIFF, WEBP). The application generates both texture atlas and descriptions
|
||||||
|
file that can be read by a game.
|
||||||
|
|
||||||
|
### Installing Rust
|
||||||
|
|
||||||
|
Install `Rust` from your package manager or by downloading from here:
|
||||||
|
[https://rust-lang.org/](https://rust-lang.org/).
|
||||||
|
|
||||||
|
### Getting the code
|
||||||
|
|
||||||
|
Install `git` from your package manager or by downloading from here:
|
||||||
|
[https://git-scm.com/install](https://git-scm.com/install). The [git
|
||||||
|
repository](https://luflow.net/git/hfsoulz/flow-texpack.git) can also be browsed
|
||||||
|
online.
|
||||||
|
|
||||||
|
Clone the `git` repository:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://luflow.net/git/hfsoulz/flow-texpack.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiling the code
|
||||||
|
|
||||||
|
Build using release mode and install locally:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo install --locked --path .
|
||||||
|
```
|
||||||
|
|
||||||
|
The binary produced should be located here: `~/.cargo/bin/flow-texpack` (on
|
||||||
|
GNU/Linux). Make sure `~/.cargo/bin` is in your `PATH`.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Show available options:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -h
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack --help
|
||||||
|
```
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
Generate from input `data/characters` and `data/tiles`, write output to
|
||||||
|
`out/atlas` and enable the options: `premultiply` pixels by their alpha
|
||||||
|
channel, `trim` excess transparency off the textures, `remove duplicate
|
||||||
|
textures` from the atlas, enable `rotation` of textures 90 degrees clockwise,
|
||||||
|
`pad` each texture by 2 pixels and finally enable `verbose` output mode.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/characters data/tiles -o out/atlas -m -t -u -r -p 2 -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Enable `load filter` so that only `TGA` images are included in the texture atlas:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/tiles -o out/atlas --load-filter tga -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Enable rect heuristic `AreaFit`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/tiles -o out/atlas --rect-heuristic area-fit -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Enable output `atlas size` of **2048x2048**:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/tiles -o out/atlas --atlas-size pot2048 -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Read input files/directories from `input.txt` but exclude all in `exclude.txt`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack --input-file input.txt --exlude-file exclude.txt -o out/atlas -v
|
||||||
|
```
|
||||||
|
|
||||||
|
`Adjust atlas size` automatically so that texture will fit:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/characters -o out/atlas --adjust-size -v
|
||||||
|
```
|
||||||
|
|
||||||
|
`Adjust texture size` so that it will fit given atlas size:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-texpack -i data/characters -o out/atlas --adjust-fit -v
|
||||||
|
```
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
[flow-texpack](https://luflow.net/git/hfsoulz/flow-texpack.git) is licensed under the
|
||||||
|
zlib license. This license allows you to use `flow-texpack` freely in any software.
|
||||||
81
cliff.toml
Normal file
81
cliff.toml
Normal file
|
|
@ -0,0 +1,81 @@
|
||||||
|
# git-cliff ~ configuration file
|
||||||
|
# https://git-cliff.org/docs/configuration
|
||||||
|
|
||||||
|
[changelog]
|
||||||
|
# A Tera template to be rendered as the changelog's header.
|
||||||
|
# See https://keats.github.io/tera/docs/#introduction
|
||||||
|
header = """
|
||||||
|
# Changelog\n
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
|
||||||
|
"""
|
||||||
|
# A Tera template to be rendered for each release in the changelog.
|
||||||
|
# See https://keats.github.io/tera/docs/#introduction
|
||||||
|
body = """
|
||||||
|
{% if version -%}
|
||||||
|
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||||
|
{% else -%}
|
||||||
|
## [Unreleased]
|
||||||
|
{% endif -%}
|
||||||
|
{% for group, commits in commits | group_by(attribute="group") %}
|
||||||
|
### {{ group | upper_first }}
|
||||||
|
{% for commit in commits %}
|
||||||
|
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}\n
|
||||||
|
"""
|
||||||
|
# A Tera template to be rendered as the changelog's footer.
|
||||||
|
# See https://keats.github.io/tera/docs/#introduction
|
||||||
|
footer = """
|
||||||
|
{% for release in releases -%}
|
||||||
|
{% if release.version -%}
|
||||||
|
{% if release.previous.version -%}
|
||||||
|
[{{ release.version | trim_start_matches(pat="v") }}]: \
|
||||||
|
https://luflow.net/git/hfsoulz/flow-web.git\
|
||||||
|
/compare/{{ release.previous.version }}..{{ release.version }}
|
||||||
|
{% else -%}
|
||||||
|
[{{ release.version | trim_start_matches(pat="v") }}]: \
|
||||||
|
https://luflow.net/git/hfsoulz/flow-web.git\
|
||||||
|
/releases/tag/{{ release.version }}
|
||||||
|
{% endif -%}
|
||||||
|
{% else -%}
|
||||||
|
[unreleased]: https://luflow.net/git/hfsoulz/flow-web.git\
|
||||||
|
/compare/{{ release.previous.version }}..HEAD
|
||||||
|
{% endif -%}
|
||||||
|
{% endfor %}
|
||||||
|
<!-- generated by git-cliff -->
|
||||||
|
"""
|
||||||
|
# Remove leading and trailing whitespaces from the changelog's body.
|
||||||
|
trim = true
|
||||||
|
|
||||||
|
[git]
|
||||||
|
# Parse commits according to the conventional commits specification.
|
||||||
|
# See https://www.conventionalcommits.org
|
||||||
|
conventional_commits = true
|
||||||
|
# Exclude commits that do not match the conventional commits specification.
|
||||||
|
filter_unconventional = false
|
||||||
|
# An array of regex based parsers for extracting data from the commit message.
|
||||||
|
# Assigns commits to groups.
|
||||||
|
# Optionally sets the commit's scope and can decide to exclude commits from further processing.
|
||||||
|
commit_parsers = [
|
||||||
|
{ message = "^[a|A]dd", group = "Added" },
|
||||||
|
{ message = "^[s|S]upport", group = "Added" },
|
||||||
|
{ message = "^[r|R]emove", group = "Removed" },
|
||||||
|
{ message = "^.*: add", group = "Added" },
|
||||||
|
{ message = "^.*: support", group = "Added" },
|
||||||
|
{ message = "^.*: remove", group = "Removed" },
|
||||||
|
{ message = "^.*: delete", group = "Removed" },
|
||||||
|
{ message = "^test", group = "Fixed" },
|
||||||
|
{ message = "^fix", group = "Fixed" },
|
||||||
|
{ message = "^.*: fix", group = "Fixed" },
|
||||||
|
{ message = "^.*", group = "Changed" },
|
||||||
|
]
|
||||||
|
# Prevent commits that are breaking from being excluded by commit parsers.
|
||||||
|
filter_commits = false
|
||||||
|
# Order releases topologically instead of chronologically.
|
||||||
|
topo_order = false
|
||||||
|
# Order of commits in each group/release within the changelog.
|
||||||
|
# Allowed values: newest, oldest
|
||||||
|
sort_commits = "oldest"
|
||||||
42
screenshots/hfge-screenshots.txt
Normal file
42
screenshots/hfge-screenshots.txt
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
screenshots_title: HFGE Screenshots
|
||||||
|
screenshots_url: projects/hfge/screenshots
|
||||||
|
|
||||||
|
title: HFGE Example: Basic 2D
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_1.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_1.png
|
||||||
|
url: projects/hfge/screenshot/basic-2d
|
||||||
|
|
||||||
|
title: HFGE Example: Basic 3D (minimal convex hull in green)
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_2.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_2.png
|
||||||
|
url: projects/hfge/screenshot/basic-3d
|
||||||
|
|
||||||
|
title: HFGE Example: glTF skinning
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_3.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_3.png
|
||||||
|
url: projects/hfge/screenshot/gltf-skinning
|
||||||
|
|
||||||
|
title: HFGE Example: Deferred rendering
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_4.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_4.png
|
||||||
|
url: projects/hfge/screenshot/deferred-rendering
|
||||||
|
|
||||||
|
title: HFGE Example: Morphing animation
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_5.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_5.png
|
||||||
|
url: projects/hfge/screenshot/morphing-animation
|
||||||
|
|
||||||
|
title: HFGE Example: Skinning animation (with blending)
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_6.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_6.png
|
||||||
|
url: projects/hfge/screenshot/skinning-animation-with-blending
|
||||||
|
|
||||||
|
title: HFGE Example: Collision 3D
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_7.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_7.png
|
||||||
|
url: projects/hfge/screenshot/collision-3d
|
||||||
|
|
||||||
|
title: HFGE Example: Collision 2D
|
||||||
|
image_min: static/media/screenshots/hfge/hfge_screenshot_min_8.png
|
||||||
|
image_big: static/media/screenshots/hfge/hfge_screenshot_big_8.png
|
||||||
|
url: projects/hfge/screenshot/collision-2d
|
||||||
12
src/main.rs
Normal file
12
src/main.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
mod site;
|
||||||
|
|
||||||
|
use crate::site::generate_site;
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
// generate all site related files:
|
||||||
|
generate_site().await;
|
||||||
|
}
|
||||||
111
src/site.rs
Normal file
111
src/site.rs
Normal file
|
|
@ -0,0 +1,111 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
pub mod blog;
|
||||||
|
pub mod blog_post;
|
||||||
|
pub mod core;
|
||||||
|
pub mod helper;
|
||||||
|
pub mod screenshot;
|
||||||
|
pub mod screenshots;
|
||||||
|
|
||||||
|
use rich_rust::console::Console;
|
||||||
|
use rich_rust::interactive::Status;
|
||||||
|
|
||||||
|
use std::path::PathBuf;
|
||||||
|
use std::time::Instant;
|
||||||
|
|
||||||
|
use crate::site::blog::BlogShared;
|
||||||
|
use crate::site::blog::generate_blog;
|
||||||
|
use crate::site::blog::get_latest_blog_posts;
|
||||||
|
use crate::site::core::CoreShared;
|
||||||
|
use crate::site::core::generate_core;
|
||||||
|
use crate::site::core::generate_root_index;
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
use crate::site::screenshots::ScreenshotsShared;
|
||||||
|
use crate::site::screenshots::generate_screenshots;
|
||||||
|
|
||||||
|
fn init_logger() {
|
||||||
|
fern::Dispatch::new()
|
||||||
|
.format(|out, message, record| out.finish(format_args!("[{}] {}", record.level(), message)))
|
||||||
|
.level(log::LevelFilter::Debug)
|
||||||
|
.chain(
|
||||||
|
std::fs::OpenOptions::new()
|
||||||
|
.create(true)
|
||||||
|
.write(true)
|
||||||
|
.truncate(true)
|
||||||
|
.append(false)
|
||||||
|
.open("flow-web.log")
|
||||||
|
.unwrap(),
|
||||||
|
)
|
||||||
|
.apply()
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn generate_site() {
|
||||||
|
// make sure 'templates', 'screenshots' and 'blog-posts' dirs exists:
|
||||||
|
// (this tool must be executed in root folder)
|
||||||
|
if !Helper::exists_dir(&PathBuf::new().join("blog-posts"))
|
||||||
|
|| !Helper::exists_dir(&PathBuf::new().join("screenshots"))
|
||||||
|
|| !Helper::exists_dir(&PathBuf::new().join("templates"))
|
||||||
|
{
|
||||||
|
panic!(
|
||||||
|
"flow-web must be executed in root folder where 'blog-posts', 'screenshots' and
|
||||||
|
'templates' folders reside. Use command 'cargo run --release' in root folder."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
let start_time = Instant::now();
|
||||||
|
|
||||||
|
// init rich_rust:
|
||||||
|
let console = Console::new().shared();
|
||||||
|
if let Ok(_status) = Status::new(&console, "Generating site...") {
|
||||||
|
// init logger:
|
||||||
|
init_logger();
|
||||||
|
|
||||||
|
// remove old output dir if exists:
|
||||||
|
if Helper::exists_dir(&Helper::get_output_dir()) {
|
||||||
|
Helper::remove_dir_all(&Helper::get_output_dir());
|
||||||
|
}
|
||||||
|
|
||||||
|
// generate core pages:
|
||||||
|
let core_shared = CoreShared::new().shared();
|
||||||
|
let core_handle = tokio::spawn(generate_core());
|
||||||
|
|
||||||
|
// generate screenshot pages:
|
||||||
|
let screenshots_shared = ScreenshotsShared::new().shared();
|
||||||
|
let screenshots_handle = tokio::spawn(generate_screenshots(screenshots_shared.clone()));
|
||||||
|
|
||||||
|
// generate blog pages:
|
||||||
|
let blog_base_dir = "blog";
|
||||||
|
let blog_shared = BlogShared::new(String::from(blog_base_dir), 20).shared();
|
||||||
|
let blog_handle = tokio::spawn(generate_blog(
|
||||||
|
blog_shared.clone(),
|
||||||
|
String::from(blog_base_dir),
|
||||||
|
));
|
||||||
|
|
||||||
|
// wait until blog and screenshots are generated:
|
||||||
|
screenshots_handle.await.unwrap();
|
||||||
|
blog_handle.await.unwrap();
|
||||||
|
|
||||||
|
// generate core index page now when we've all data we need:
|
||||||
|
core_shared.set_core_index_data(
|
||||||
|
String::from(blog_base_dir),
|
||||||
|
get_latest_blog_posts(blog_shared.clone(), 3),
|
||||||
|
screenshots_shared.get_screenshots(6, "HFGE Screenshots"),
|
||||||
|
);
|
||||||
|
let core_index_handle = tokio::spawn(generate_root_index(core_shared.clone()));
|
||||||
|
|
||||||
|
// wait until core is fully done:
|
||||||
|
core_handle.await.unwrap();
|
||||||
|
core_index_handle.await.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
console.print("[dim]See 'output' folder for generated files..[/]");
|
||||||
|
console.print("[dim]Serve locally example: 'servez output'[/]");
|
||||||
|
console.print("");
|
||||||
|
console.print(&format!(
|
||||||
|
"[dim]Completed in {:.1}s[/]",
|
||||||
|
start_time.elapsed().as_secs_f64()
|
||||||
|
));
|
||||||
|
console.print("[green]Generation completed successfully![/]");
|
||||||
|
}
|
||||||
500
src/site/blog.rs
Normal file
500
src/site/blog.rs
Normal file
|
|
@ -0,0 +1,500 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use chrono::{Datelike, Local};
|
||||||
|
use sailfish::Template;
|
||||||
|
use std::cmp;
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
|
use crate::site::blog_post::BlogPost;
|
||||||
|
use crate::site::blog_post::parse_markdown_file;
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
|
||||||
|
pub struct BlogShared {
|
||||||
|
state: Mutex<BlogState>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BlogShared {
|
||||||
|
pub fn new(base_dir: String, num_previews_per_page: usize) -> Self {
|
||||||
|
Self {
|
||||||
|
state: Mutex::new(BlogState::new(base_dir, num_previews_per_page)),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn shared(self) -> Arc<Self> {
|
||||||
|
Arc::new(self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "blog_overview.stpl")]
|
||||||
|
pub struct BlogState {
|
||||||
|
base_dir: String,
|
||||||
|
num_previews_per_page: usize,
|
||||||
|
blog_posts: Vec<BlogPost>,
|
||||||
|
topic_blog_indices: HashMap<String, Vec<usize>>,
|
||||||
|
topics: Vec<String>,
|
||||||
|
topics_sanitized: Vec<String>,
|
||||||
|
year_blog_indices: HashMap<String, Vec<usize>>,
|
||||||
|
years: Vec<String>,
|
||||||
|
overview_page_url: String,
|
||||||
|
overview_current_page: usize,
|
||||||
|
overview_num_pages: usize,
|
||||||
|
overview_offset: usize,
|
||||||
|
overview_num_posts: usize,
|
||||||
|
overview_keywords: String,
|
||||||
|
overview_title: String,
|
||||||
|
overview_topic: String,
|
||||||
|
overview_topic_sanitized: String,
|
||||||
|
overview_year: String,
|
||||||
|
overview_type: i32,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BlogState {
|
||||||
|
pub fn new(base_dir: String, num_previews_per_page: usize) -> Self {
|
||||||
|
Self {
|
||||||
|
base_dir: base_dir,
|
||||||
|
num_previews_per_page: num_previews_per_page,
|
||||||
|
blog_posts: Vec::new(),
|
||||||
|
topic_blog_indices: HashMap::new(),
|
||||||
|
topics: Vec::new(),
|
||||||
|
topics_sanitized: Vec::new(),
|
||||||
|
year_blog_indices: HashMap::new(),
|
||||||
|
years: Vec::new(),
|
||||||
|
overview_page_url: String::new(),
|
||||||
|
overview_current_page: 0,
|
||||||
|
overview_num_pages: 0,
|
||||||
|
overview_offset: 0,
|
||||||
|
overview_num_posts: 0,
|
||||||
|
overview_keywords: String::new(),
|
||||||
|
overview_title: String::new(),
|
||||||
|
overview_topic: String::new(),
|
||||||
|
overview_topic_sanitized: String::new(),
|
||||||
|
overview_year: String::new(),
|
||||||
|
overview_type: 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn generate_blog(shared: Arc<BlogShared>, base_dir: String) {
|
||||||
|
// create output dirs for topic, year and feeds:
|
||||||
|
create_output_dirs(shared.clone());
|
||||||
|
|
||||||
|
// parse all the markdown files in 'blog-posts' folder:
|
||||||
|
parse_markdown_files(shared.clone(), base_dir).await;
|
||||||
|
|
||||||
|
// generate all individual blog posts:
|
||||||
|
generate_blog_posts(shared.clone()).await;
|
||||||
|
|
||||||
|
// generate blog overview:
|
||||||
|
generate_overview_posts(shared.clone()).await;
|
||||||
|
|
||||||
|
// generate blog overview by topic:
|
||||||
|
generate_overview_topic(shared.clone()).await;
|
||||||
|
|
||||||
|
// generate blog overview by year:
|
||||||
|
generate_overview_year(shared.clone()).await;
|
||||||
|
|
||||||
|
// generate blog atom feed:
|
||||||
|
generate_atom_feed(shared.clone()).await;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_latest_blog_posts(shared: Arc<BlogShared>, num_posts: usize) -> Vec<BlogPost> {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
let mut blog_posts = Vec::new();
|
||||||
|
|
||||||
|
for i in 0..num_posts {
|
||||||
|
if let Some(value) = lock.blog_posts.get(i) {
|
||||||
|
blog_posts.push(value.clone());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return blog_posts;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn create_output_dirs(shared: Arc<BlogShared>) {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.base_dir).join("topic"));
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.base_dir).join("year"));
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join("feeds"));
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn parse_markdown_files(shared: Arc<BlogShared>, base_dir: String) {
|
||||||
|
let mut reader = tokio::fs::read_dir("blog-posts").await.unwrap();
|
||||||
|
let mut tasks = vec![];
|
||||||
|
loop {
|
||||||
|
if let Some(f) = reader.next_entry().await.unwrap() {
|
||||||
|
tasks.push(tokio::spawn(parse_markdown_file(
|
||||||
|
f.path(),
|
||||||
|
base_dir.clone(),
|
||||||
|
)));
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// await all created blog_posts:
|
||||||
|
let mut blog_posts = Vec::with_capacity(tasks.len());
|
||||||
|
for task in tasks {
|
||||||
|
blog_posts.push(task.await.unwrap());
|
||||||
|
}
|
||||||
|
|
||||||
|
// sort so that latest is first:
|
||||||
|
blog_posts.sort_by(|a, b| b.get_published_date().cmp(a.get_published_date()));
|
||||||
|
|
||||||
|
let mut topic_blog_indices: HashMap<String, Vec<usize>> = HashMap::new();
|
||||||
|
let mut year_blog_indices: HashMap<String, Vec<usize>> = HashMap::new();
|
||||||
|
for (i, post) in blog_posts.iter().enumerate() {
|
||||||
|
// add blog_id for each blog topic for later lookup:
|
||||||
|
for topic in post.get_topics() {
|
||||||
|
if let Some(indices) = topic_blog_indices.get_mut(topic) {
|
||||||
|
indices.push(i);
|
||||||
|
} else {
|
||||||
|
topic_blog_indices.insert(String::from(topic), vec![i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// add blog_id for each blog year for later lookup:
|
||||||
|
let year_str = post.get_year();
|
||||||
|
if let Some(indices) = year_blog_indices.get_mut(&year_str) {
|
||||||
|
indices.push(i);
|
||||||
|
} else {
|
||||||
|
year_blog_indices.insert(String::from(year_str), vec![i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// move into state:
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
lock.blog_posts = blog_posts;
|
||||||
|
|
||||||
|
for (key, _value) in &topic_blog_indices {
|
||||||
|
lock.topics.push(String::from(key));
|
||||||
|
lock.topics_sanitized
|
||||||
|
.push(String::from(Helper::sanitize_string(key)));
|
||||||
|
}
|
||||||
|
// sort by topic name:
|
||||||
|
lock.topics
|
||||||
|
.sort_by(|a, b| a.to_lowercase().cmp(&b.to_lowercase()));
|
||||||
|
lock.topics_sanitized.sort_by(|a, b| a.cmp(b));
|
||||||
|
|
||||||
|
for (key, _value) in &year_blog_indices {
|
||||||
|
lock.years.push(String::from(key));
|
||||||
|
}
|
||||||
|
// sort by year:
|
||||||
|
lock.years.sort_by(|a, b| a.cmp(b));
|
||||||
|
|
||||||
|
// move created hashmaps:
|
||||||
|
lock.topic_blog_indices = topic_blog_indices;
|
||||||
|
lock.year_blog_indices = year_blog_indices;
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_blog_posts(shared: Arc<BlogShared>) {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
for post in &lock.blog_posts {
|
||||||
|
post.create_output_dir();
|
||||||
|
post.generate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_overview_posts(shared: Arc<BlogShared>) {
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
lock.overview_offset = 0;
|
||||||
|
let num = lock.blog_posts.len() as f32 / lock.num_previews_per_page as f32;
|
||||||
|
lock.overview_num_pages = num.ceil() as usize;
|
||||||
|
lock.overview_num_posts = lock.num_previews_per_page;
|
||||||
|
lock.overview_keywords = String::from("overview");
|
||||||
|
lock.overview_title = String::from("Blog Overview");
|
||||||
|
lock.overview_type = 0;
|
||||||
|
|
||||||
|
for i in 1..lock.overview_num_pages + 1 {
|
||||||
|
lock.overview_current_page = i;
|
||||||
|
lock.overview_page_url = format!("{}/page/{}", lock.base_dir, i);
|
||||||
|
|
||||||
|
if i == lock.overview_num_pages {
|
||||||
|
lock.overview_num_posts = cmp::min(
|
||||||
|
lock.blog_posts.len() - lock.num_previews_per_page * (i - 1),
|
||||||
|
lock.num_previews_per_page,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if lock.overview_current_page == 1 {
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.base_dir)
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
// create dir recursively:
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.overview_page_url));
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.overview_page_url)
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
lock.overview_offset += lock.overview_num_posts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_overview_topic(shared: Arc<BlogShared>) {
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
// TODO: How to solve this without a clone??
|
||||||
|
for (key, indices) in &lock.topic_blog_indices.clone() {
|
||||||
|
lock.overview_offset = 0;
|
||||||
|
let num = indices.len() as f32 / lock.num_previews_per_page as f32;
|
||||||
|
lock.overview_num_pages = num.ceil() as usize;
|
||||||
|
lock.overview_num_posts = lock.num_previews_per_page;
|
||||||
|
lock.overview_keywords = format!("topic, {}", key);
|
||||||
|
lock.overview_topic = String::from(key);
|
||||||
|
lock.overview_topic_sanitized = Helper::sanitize_string(key);
|
||||||
|
lock.overview_type = 1;
|
||||||
|
|
||||||
|
for i in 1..lock.overview_num_pages + 1 {
|
||||||
|
lock.overview_current_page = i;
|
||||||
|
lock.overview_page_url = format!(
|
||||||
|
"{}/topic/{}/page/{}",
|
||||||
|
lock.base_dir,
|
||||||
|
Helper::sanitize_string(key),
|
||||||
|
i
|
||||||
|
);
|
||||||
|
lock.overview_title = format!("Blog posts by topic: {}", key);
|
||||||
|
|
||||||
|
if i == lock.overview_num_pages {
|
||||||
|
lock.overview_num_posts = cmp::min(
|
||||||
|
indices.len() - lock.num_previews_per_page * (i - 1),
|
||||||
|
lock.num_previews_per_page,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if lock.overview_current_page == 1 {
|
||||||
|
// create dir recursively:
|
||||||
|
Helper::create_dir_all(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.base_dir)
|
||||||
|
.join("topic")
|
||||||
|
.join(Helper::sanitize_string(key)),
|
||||||
|
);
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.base_dir)
|
||||||
|
.join("topic")
|
||||||
|
.join(Helper::sanitize_string(key))
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
// create dir recursively:
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.overview_page_url));
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.overview_page_url)
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
lock.overview_offset += lock.overview_num_posts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_overview_year(shared: Arc<BlogShared>) {
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
// TODO: How to solve this without a clone??
|
||||||
|
for (key, indices) in &lock.year_blog_indices.clone() {
|
||||||
|
lock.overview_offset = 0;
|
||||||
|
let num = indices.len() as f32 / lock.num_previews_per_page as f32;
|
||||||
|
lock.overview_num_pages = num.ceil() as usize;
|
||||||
|
lock.overview_num_posts = lock.num_previews_per_page;
|
||||||
|
lock.overview_keywords = format!("year, {}", key);
|
||||||
|
lock.overview_year = String::from(key);
|
||||||
|
lock.overview_type = 2;
|
||||||
|
|
||||||
|
for i in 1..lock.overview_num_pages + 1 {
|
||||||
|
lock.overview_current_page = i;
|
||||||
|
lock.overview_page_url = format!(
|
||||||
|
"{}/year/{}/page/{}",
|
||||||
|
lock.base_dir,
|
||||||
|
Helper::sanitize_string(key),
|
||||||
|
i
|
||||||
|
);
|
||||||
|
lock.overview_title = format!("Blog posts by year: {}", key);
|
||||||
|
|
||||||
|
if i == lock.overview_num_pages {
|
||||||
|
lock.overview_num_posts = cmp::min(
|
||||||
|
indices.len() - lock.num_previews_per_page * (i - 1),
|
||||||
|
lock.num_previews_per_page,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if lock.overview_current_page == 1 {
|
||||||
|
// create dir recursively:
|
||||||
|
Helper::create_dir_all(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.base_dir)
|
||||||
|
.join("year")
|
||||||
|
.join(Helper::sanitize_string(key)),
|
||||||
|
);
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.base_dir)
|
||||||
|
.join("year")
|
||||||
|
.join(Helper::sanitize_string(key))
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
// create dir recursively:
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.overview_page_url));
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&lock.overview_page_url)
|
||||||
|
.join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
lock.overview_offset += lock.overview_num_posts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_atom_feed(shared: Arc<BlogShared>) {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
let mut _feed_data = String::new();
|
||||||
|
let date_now = get_date_now_for_feed();
|
||||||
|
|
||||||
|
// header info:
|
||||||
|
_feed_data = String::from("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
||||||
|
_feed_data += "<feed xmlns=\"http://www.w3.org/2005/Atom\">\n";
|
||||||
|
_feed_data += " <id>https:/www.luflow.net/feeds/blog.atom</id>\n";
|
||||||
|
_feed_data += " <title>luflow.net Blog</title>\n";
|
||||||
|
_feed_data += " <updated>";
|
||||||
|
_feed_data += &date_now;
|
||||||
|
_feed_data += "</updated>\n";
|
||||||
|
_feed_data += " <generator>https://luflow.net/git/hfsoulz/flow-web.git/</generator>\n";
|
||||||
|
_feed_data += " <author>\n";
|
||||||
|
_feed_data += " <name>luflow.net</name>\n";
|
||||||
|
_feed_data += " <uri>https://www.luflow.net/</uri>\n";
|
||||||
|
_feed_data += " </author>\n";
|
||||||
|
_feed_data += " <link rel=\"alternate\" href=\"https:/www.luflow.net/blog/\"/>\n";
|
||||||
|
_feed_data += " <link rel=\"self\" href=\"https:/www.luflow.net/feeds/blog.atom\"/>\n";
|
||||||
|
_feed_data += " <subtitle>This blog is dedicated to free software in general.</subtitle>\n";
|
||||||
|
_feed_data += " <logo>https:/www.luflow.net/static/img/icon.png</logo>\n";
|
||||||
|
_feed_data += " <icon>https:/www.luflow.net/favicon.ico</icon>\n";
|
||||||
|
|
||||||
|
// each blog entry:
|
||||||
|
for blog_post in &lock.blog_posts {
|
||||||
|
_feed_data += " <entry>\n";
|
||||||
|
|
||||||
|
// author:
|
||||||
|
_feed_data += " <author>\n";
|
||||||
|
_feed_data += " <name>Andreas</name>\n";
|
||||||
|
_feed_data += " </author>\n";
|
||||||
|
|
||||||
|
// title:
|
||||||
|
_feed_data += " <title type=\"html\"><![CDATA[";
|
||||||
|
_feed_data += &blog_post.title;
|
||||||
|
_feed_data += "]]></title>\n";
|
||||||
|
|
||||||
|
// link href:
|
||||||
|
_feed_data += " <link href=\"https:/www.luflow.net/";
|
||||||
|
_feed_data += &lock.base_dir;
|
||||||
|
_feed_data += "/";
|
||||||
|
_feed_data += &blog_post.url;
|
||||||
|
_feed_data += "/\"/>\n";
|
||||||
|
|
||||||
|
// id:
|
||||||
|
_feed_data += " <id>https:/www.luflow.net/";
|
||||||
|
_feed_data += &lock.base_dir;
|
||||||
|
_feed_data += "/";
|
||||||
|
_feed_data += &blog_post.url;
|
||||||
|
_feed_data += "/</id>\n";
|
||||||
|
|
||||||
|
// updated:
|
||||||
|
_feed_data += " <updated>";
|
||||||
|
_feed_data += &blog_post.updated_for_feed;
|
||||||
|
_feed_data += "</updated>\n";
|
||||||
|
|
||||||
|
// published:
|
||||||
|
_feed_data += " <published>";
|
||||||
|
_feed_data += &blog_post.published_for_feed;
|
||||||
|
_feed_data += "</published>\n";
|
||||||
|
|
||||||
|
// categories:
|
||||||
|
for topic in &blog_post.topics {
|
||||||
|
_feed_data += " <category term=\"";
|
||||||
|
_feed_data += &topic;
|
||||||
|
_feed_data += "\"/>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
// summary:
|
||||||
|
_feed_data += " <summary type=\"html\"><![CDATA[";
|
||||||
|
_feed_data += &blog_post.snippet;
|
||||||
|
_feed_data += "]]></summary>\n";
|
||||||
|
|
||||||
|
// content:
|
||||||
|
_feed_data += " <content type=\"html\"><![CDATA[";
|
||||||
|
_feed_data += &blog_post.html;
|
||||||
|
_feed_data += "]]></content>\n";
|
||||||
|
|
||||||
|
_feed_data += " </entry>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
// close feed:
|
||||||
|
_feed_data += "</feed>";
|
||||||
|
|
||||||
|
// write it out:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir().join("feeds").join("blog.atom"),
|
||||||
|
_feed_data.as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn get_date_now_for_feed() -> String {
|
||||||
|
let date = Local::now();
|
||||||
|
|
||||||
|
let month = date.month();
|
||||||
|
let day = date.day();
|
||||||
|
|
||||||
|
let mut month_str = month.to_string();
|
||||||
|
let mut day_str = day.to_string();
|
||||||
|
|
||||||
|
if month < 10 {
|
||||||
|
month_str = format!("0{}", month);
|
||||||
|
}
|
||||||
|
|
||||||
|
if day < 10 {
|
||||||
|
day_str = format!("0{}", day);
|
||||||
|
}
|
||||||
|
|
||||||
|
return format!("{}-{}-{}T{}Z", date.year(), month_str, day_str, date.time());
|
||||||
|
}
|
||||||
192
src/site/blog_post.rs
Normal file
192
src/site/blog_post.rs
Normal file
|
|
@ -0,0 +1,192 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use chrono::{Datelike, NaiveDateTime};
|
||||||
|
use sailfish::Template;
|
||||||
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "blog_post.stpl")]
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
|
pub struct BlogPost {
|
||||||
|
pub base_dir: String,
|
||||||
|
|
||||||
|
pub author: String,
|
||||||
|
pub published: NaiveDateTime,
|
||||||
|
pub published_for_feed: String,
|
||||||
|
pub updated: NaiveDateTime,
|
||||||
|
pub updated_for_feed: String,
|
||||||
|
pub topics_comma_separated: String,
|
||||||
|
pub topics: Vec<String>,
|
||||||
|
pub topics_sanitized: Vec<String>,
|
||||||
|
pub topic_base_dir: String,
|
||||||
|
pub title: String,
|
||||||
|
pub snippet: String,
|
||||||
|
pub html: String,
|
||||||
|
pub url: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BlogPost {
|
||||||
|
pub fn new(base_dir: String) -> BlogPost {
|
||||||
|
BlogPost {
|
||||||
|
base_dir: base_dir,
|
||||||
|
|
||||||
|
author: String::new(),
|
||||||
|
published: NaiveDateTime::parse_from_str("2000-01-01 23:56:04", "%Y-%m-%d %H:%M:%S")
|
||||||
|
.unwrap(),
|
||||||
|
published_for_feed: String::new(),
|
||||||
|
updated: NaiveDateTime::parse_from_str("2000-01-01 23:56:04", "%Y-%m-%d %H:%M:%S")
|
||||||
|
.unwrap(),
|
||||||
|
updated_for_feed: String::new(),
|
||||||
|
topics_comma_separated: String::new(),
|
||||||
|
topics: Vec::new(),
|
||||||
|
topics_sanitized: Vec::new(),
|
||||||
|
topic_base_dir: String::from("topic"),
|
||||||
|
title: String::new(),
|
||||||
|
snippet: String::new(),
|
||||||
|
html: String::new(),
|
||||||
|
url: String::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_topics(&self) -> &Vec<String> {
|
||||||
|
return &self.topics;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_year(&self) -> String {
|
||||||
|
return self.published.year().to_string();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_published_date(&self) -> &NaiveDateTime {
|
||||||
|
return &self.published;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn get_date_for_feed(&self, date: &NaiveDateTime) -> String {
|
||||||
|
let month = date.month();
|
||||||
|
let day = date.day();
|
||||||
|
|
||||||
|
let mut month_str = month.to_string();
|
||||||
|
let mut day_str = day.to_string();
|
||||||
|
|
||||||
|
if month < 10 {
|
||||||
|
month_str = format!("0{}", month);
|
||||||
|
}
|
||||||
|
|
||||||
|
if day < 10 {
|
||||||
|
day_str = format!("0{}", day);
|
||||||
|
}
|
||||||
|
|
||||||
|
return format!(
|
||||||
|
"{}-{}-{}T{}.000Z",
|
||||||
|
date.year(),
|
||||||
|
month_str,
|
||||||
|
day_str,
|
||||||
|
date.time()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn create_output_dir(&self) {
|
||||||
|
Helper::create_dir_all(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&self.base_dir)
|
||||||
|
.join(&self.url),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn generate(&self) {
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir()
|
||||||
|
.join(&self.base_dir)
|
||||||
|
.join(&self.url)
|
||||||
|
.join("index.html"),
|
||||||
|
&self.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn parse_markdown_file(path: PathBuf, base_dir: String) -> BlogPost {
|
||||||
|
let contents = tokio::fs::read_to_string(path).await.unwrap();
|
||||||
|
let mut post_start_found = false;
|
||||||
|
let mut markdown = String::new();
|
||||||
|
let mut blog_post = BlogPost::new(base_dir.clone());
|
||||||
|
|
||||||
|
for line in contents.lines() {
|
||||||
|
if !post_start_found && line.len() > 0 {
|
||||||
|
if line == "---" {
|
||||||
|
post_start_found = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
let v: Vec<&str> = line.splitn(2, ':').collect();
|
||||||
|
assert_eq!(v.len(), 2);
|
||||||
|
|
||||||
|
if let Some(key) = v.get(0) {
|
||||||
|
if *key == "author" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.author = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'author'.");
|
||||||
|
}
|
||||||
|
} else if *key == "published" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.published =
|
||||||
|
NaiveDateTime::parse_from_str(value, "%Y-%m-%d %H:%M:%S").unwrap();
|
||||||
|
blog_post.published_for_feed =
|
||||||
|
blog_post.get_date_for_feed(&blog_post.published);
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'published'.");
|
||||||
|
}
|
||||||
|
} else if *key == "updated" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.updated =
|
||||||
|
NaiveDateTime::parse_from_str(value, "%Y-%m-%d %H:%M:%S").unwrap();
|
||||||
|
blog_post.updated_for_feed =
|
||||||
|
blog_post.get_date_for_feed(&blog_post.updated);
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'updated'.");
|
||||||
|
}
|
||||||
|
} else if *key == "topics" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.topics_comma_separated = String::from(value.trim());
|
||||||
|
let v = blog_post.topics_comma_separated.split(",");
|
||||||
|
for topic in v {
|
||||||
|
let topic_trimmed = topic.trim();
|
||||||
|
blog_post.topics.push(String::from(topic_trimmed));
|
||||||
|
blog_post
|
||||||
|
.topics_sanitized
|
||||||
|
.push(Helper::sanitize_string(topic_trimmed));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'topics'.");
|
||||||
|
}
|
||||||
|
} else if *key == "title" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.title = String::from(value.trim());
|
||||||
|
blog_post.url = Helper::sanitize_string(&blog_post.title);
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'title'.");
|
||||||
|
}
|
||||||
|
} else if *key == "snippet" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
blog_post.snippet = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'snippet'.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if markdown.len() > 0 {
|
||||||
|
markdown += "\n";
|
||||||
|
}
|
||||||
|
markdown += line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// convert markdown to html:
|
||||||
|
blog_post.html = markdown::to_html(&markdown);
|
||||||
|
|
||||||
|
return blog_post;
|
||||||
|
}
|
||||||
174
src/site/core.rs
Normal file
174
src/site/core.rs
Normal file
|
|
@ -0,0 +1,174 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use log::info;
|
||||||
|
use sailfish::Template;
|
||||||
|
use sailfish::TemplateSimple;
|
||||||
|
use std::path::Path;
|
||||||
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
|
use crate::site::blog_post::BlogPost;
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
use crate::site::screenshot::Screenshot;
|
||||||
|
|
||||||
|
pub struct CoreShared {
|
||||||
|
state: Mutex<CoreState>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl CoreShared {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
state: Mutex::new(CoreState::new()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn shared(self) -> Arc<Self> {
|
||||||
|
Arc::new(self)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn set_core_index_data(
|
||||||
|
&self,
|
||||||
|
blog_base_dir: String,
|
||||||
|
blog_posts: Vec<BlogPost>,
|
||||||
|
screenshots: Vec<Screenshot>,
|
||||||
|
) {
|
||||||
|
let mut lock = self.state.lock().unwrap();
|
||||||
|
lock.blog_base_dir = blog_base_dir;
|
||||||
|
lock.blog_posts = blog_posts;
|
||||||
|
lock.screenshots = screenshots;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "index.stpl")]
|
||||||
|
struct CoreState {
|
||||||
|
pub blog_posts: Vec<BlogPost>,
|
||||||
|
pub screenshots: Vec<Screenshot>,
|
||||||
|
pub hfge_url: String,
|
||||||
|
pub blog_base_dir: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl CoreState {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
blog_posts: Vec::new(),
|
||||||
|
screenshots: Vec::new(),
|
||||||
|
hfge_url: String::from("projects/hfge"),
|
||||||
|
blog_base_dir: String::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn generate_core() {
|
||||||
|
// create output dirs needed:
|
||||||
|
create_output_dirs();
|
||||||
|
|
||||||
|
let mut tasks = Vec::with_capacity(4);
|
||||||
|
|
||||||
|
// copy all static related files:
|
||||||
|
tasks.push(tokio::spawn(copy_static_dirs()));
|
||||||
|
|
||||||
|
// generate all core pages (core index will be done as the very
|
||||||
|
// last thing as screenshot and blog generation must be done first):
|
||||||
|
tasks.push(tokio::spawn(generate_error_pages()));
|
||||||
|
tasks.push(tokio::spawn(generate_project_pages()));
|
||||||
|
tasks.push(tokio::spawn(generate_contact_page()));
|
||||||
|
|
||||||
|
// wait until all taks are done:
|
||||||
|
for task in tasks {
|
||||||
|
task.await.unwrap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn create_output_dirs() {
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join("contact"));
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join("projects/hfge"));
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn copy_static_dirs() {
|
||||||
|
// copy static and static_root to output folder:
|
||||||
|
Helper::copy_dir_all(Path::new("static"), Helper::get_output_dir().join("static"))
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
info!(
|
||||||
|
"Copied dir 'static' recursively to '{}'",
|
||||||
|
Helper::get_output_dir().join("static").display()
|
||||||
|
);
|
||||||
|
|
||||||
|
Helper::copy_dir_all(Path::new("static_root"), Helper::get_output_dir())
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
info!(
|
||||||
|
"Copied dir 'static_root' recursively to '{}'",
|
||||||
|
Helper::get_output_dir().display()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_error_pages() {
|
||||||
|
// 404:
|
||||||
|
#[derive(TemplateSimple)]
|
||||||
|
#[template(path = "404.stpl")]
|
||||||
|
struct Err404Template {}
|
||||||
|
|
||||||
|
let ctx = Err404Template {};
|
||||||
|
Helper::write_file(
|
||||||
|
&Helper::get_output_dir().join("404.html"),
|
||||||
|
&ctx.render_once().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
// 500:
|
||||||
|
#[derive(TemplateSimple)]
|
||||||
|
#[template(path = "500.stpl")]
|
||||||
|
struct Err500Template {}
|
||||||
|
|
||||||
|
let ctx = Err500Template {};
|
||||||
|
Helper::write_file(
|
||||||
|
&Helper::get_output_dir().join("500.html"),
|
||||||
|
&ctx.render_once().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_project_pages() {
|
||||||
|
// projects/hfge:
|
||||||
|
#[derive(TemplateSimple)]
|
||||||
|
#[template(path = "hfge.stpl")]
|
||||||
|
struct HFGETemplate {}
|
||||||
|
|
||||||
|
let ctx = HFGETemplate {};
|
||||||
|
Helper::write_file(
|
||||||
|
&Helper::get_output_dir().join("projects/hfge/index.html"),
|
||||||
|
&ctx.render_once().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn generate_contact_page() {
|
||||||
|
// contact:
|
||||||
|
#[derive(TemplateSimple)]
|
||||||
|
#[template(path = "contact.stpl")]
|
||||||
|
struct ContactTemplate {}
|
||||||
|
|
||||||
|
let ctx = ContactTemplate {};
|
||||||
|
Helper::write_file(
|
||||||
|
&Helper::get_output_dir().join("contact/index.html"),
|
||||||
|
&ctx.render_once().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn generate_root_index(shared: Arc<CoreShared>) {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir().join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
123
src/site/helper.rs
Normal file
123
src/site/helper.rs
Normal file
|
|
@ -0,0 +1,123 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use log::info;
|
||||||
|
use regex::Regex;
|
||||||
|
use std::env;
|
||||||
|
use std::fs;
|
||||||
|
use std::io::Write;
|
||||||
|
use std::path::Path;
|
||||||
|
use std::path::PathBuf;
|
||||||
|
use tokio::fs::File;
|
||||||
|
use tokio::io::{self, AsyncWriteExt};
|
||||||
|
|
||||||
|
pub struct Helper {}
|
||||||
|
|
||||||
|
impl Helper {
|
||||||
|
pub fn get_current_working_dir() -> PathBuf {
|
||||||
|
let res = env::current_dir();
|
||||||
|
match res {
|
||||||
|
Ok(path) => path,
|
||||||
|
Err(_) => PathBuf::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_output_dir() -> PathBuf {
|
||||||
|
let cwd = Helper::get_current_working_dir();
|
||||||
|
return cwd.join("output");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Replaces spaces with '-', only allows 'a-z', 'A-Z', '0-9' and '-' characters and finally
|
||||||
|
/// converts to lowercase.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
///
|
||||||
|
/// * `str` - is the string to sanitize.
|
||||||
|
///
|
||||||
|
/// # Examples
|
||||||
|
///
|
||||||
|
/// ```
|
||||||
|
/// let str_to_sanitize = "This is a test, and so on.";
|
||||||
|
/// let str_sanitized = Helper::sanitize_string(str_to_sanitize);
|
||||||
|
/// assert_eq!(str_sanitized, "this-is-a-test-and-so-on");
|
||||||
|
/// ```
|
||||||
|
pub fn sanitize_string(str: &str) -> String {
|
||||||
|
let re_whitespace = Regex::new(r"\s").unwrap();
|
||||||
|
let re_unsupported = Regex::new(r"[^0-9a-zA-Z-]").unwrap();
|
||||||
|
|
||||||
|
// replace all spaces with '-':
|
||||||
|
let after_whitespace = re_whitespace.replace_all(str, "-");
|
||||||
|
// only allow 'a-z' 'A-Z' '0-9' and '-' characters:
|
||||||
|
let after_unsupported = re_unsupported.replace_all(&after_whitespace, "");
|
||||||
|
|
||||||
|
// also convert to lower case:
|
||||||
|
return after_unsupported.to_string().to_lowercase();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn create_dir_all<'a>(dir: &'a PathBuf) {
|
||||||
|
match fs::create_dir_all(dir) {
|
||||||
|
Ok(()) => info!("Created dir: '{}'", dir.display()),
|
||||||
|
Err(err) => panic!(
|
||||||
|
"Failed to create dir: '{}'. Error msg: '{}'",
|
||||||
|
dir.display(),
|
||||||
|
err
|
||||||
|
),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn remove_dir_all<'a>(dir: &'a PathBuf) {
|
||||||
|
match fs::remove_dir_all(dir) {
|
||||||
|
Ok(()) => info!("Removed dir: '{}'", dir.display()),
|
||||||
|
Err(err) => panic!(
|
||||||
|
"Failed to remove dir: '{}'. Error msg: '{}'",
|
||||||
|
dir.display(),
|
||||||
|
err
|
||||||
|
),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn exists_dir<'a>(dir: &'a PathBuf) -> bool {
|
||||||
|
return dir.as_path().exists();
|
||||||
|
}
|
||||||
|
|
||||||
|
#[async_recursion::async_recursion]
|
||||||
|
pub async fn copy_dir_all<S, D>(src: S, dst: D) -> Result<(), std::io::Error>
|
||||||
|
where
|
||||||
|
S: AsRef<Path> + Send + Sync,
|
||||||
|
D: AsRef<Path> + Send + Sync,
|
||||||
|
{
|
||||||
|
tokio::fs::create_dir_all(&dst).await?;
|
||||||
|
let mut entries = tokio::fs::read_dir(src).await?;
|
||||||
|
while let Some(entry) = entries.next_entry().await? {
|
||||||
|
let ty = entry.file_type().await?;
|
||||||
|
if ty.is_dir() {
|
||||||
|
Self::copy_dir_all(entry.path(), dst.as_ref().join(entry.file_name())).await?;
|
||||||
|
} else {
|
||||||
|
tokio::fs::copy(entry.path(), dst.as_ref().join(entry.file_name())).await?;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn write_file<'a>(file_path: &'a PathBuf, data: &'a [u8]) -> io::Result<()> {
|
||||||
|
// create output file:
|
||||||
|
let mut file = File::create(file_path).await?;
|
||||||
|
|
||||||
|
// write data to file:
|
||||||
|
file.write_all(data).await?;
|
||||||
|
|
||||||
|
info!("Wrote '{}' successfully", file_path.display());
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn write_file_sync<'a>(file_path: &'a PathBuf, data: &'a [u8]) -> io::Result<()> {
|
||||||
|
// create output file:
|
||||||
|
let mut file = std::fs::File::create(file_path)?;
|
||||||
|
|
||||||
|
// write data to file:
|
||||||
|
file.write_all(data)?;
|
||||||
|
|
||||||
|
info!("Wrote '{}' successfully", file_path.display());
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
49
src/site/screenshot.rs
Normal file
49
src/site/screenshot.rs
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use sailfish::Template;
|
||||||
|
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "screenshot.stpl")]
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
|
pub struct Screenshot {
|
||||||
|
pub screenshots_title: String,
|
||||||
|
pub screenshots_url: String,
|
||||||
|
pub title: String,
|
||||||
|
pub image_min: String,
|
||||||
|
pub image_big: String,
|
||||||
|
pub url: String,
|
||||||
|
pub screenshots: Vec<Screenshot>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Screenshot {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
screenshots_title: String::new(),
|
||||||
|
screenshots_url: String::new(),
|
||||||
|
title: String::new(),
|
||||||
|
image_min: String::new(),
|
||||||
|
image_big: String::new(),
|
||||||
|
url: String::new(),
|
||||||
|
screenshots: Vec::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn generate(&self) {
|
||||||
|
// create output dir needed:
|
||||||
|
self.create_output_dir();
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir().join(&self.url).join("index.html"),
|
||||||
|
&self.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn create_output_dir(&self) {
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&self.url));
|
||||||
|
}
|
||||||
|
}
|
||||||
217
src/site/screenshots.rs
Normal file
217
src/site/screenshots.rs
Normal file
|
|
@ -0,0 +1,217 @@
|
||||||
|
// luflow.net web site
|
||||||
|
// AGPL-3.0 License (see LICENSE)
|
||||||
|
|
||||||
|
use sailfish::Template;
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
|
use crate::site::helper::Helper;
|
||||||
|
use crate::site::screenshot::Screenshot;
|
||||||
|
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
|
pub struct ScreenshotsInfo {
|
||||||
|
pub title: String,
|
||||||
|
pub url: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ScreenshotsInfo {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
title: String::new(),
|
||||||
|
url: String::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct ScreenshotsShared {
|
||||||
|
state: Mutex<ScreenshotsState>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ScreenshotsShared {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
state: Mutex::new(ScreenshotsState::new()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn shared(self) -> Arc<Self> {
|
||||||
|
Arc::new(self)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_screenshots(&self, num_screenshots: usize, key: &str) -> Vec<Screenshot> {
|
||||||
|
let lock = self.state.lock().unwrap();
|
||||||
|
let mut screenshots = Vec::new();
|
||||||
|
|
||||||
|
if let Some(value) = lock.screenshots.get(key) {
|
||||||
|
for i in 0..num_screenshots {
|
||||||
|
if let Some(screenshot) = value.get(i) {
|
||||||
|
screenshots.push(screenshot.clone());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
panic!("Did not find any screenshots for key: {}", key);
|
||||||
|
}
|
||||||
|
|
||||||
|
return screenshots;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "screenshots.stpl")]
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
|
struct ScreenshotsState {
|
||||||
|
screenshots: HashMap<String, Vec<Screenshot>>,
|
||||||
|
screenshot_urls: HashMap<String, String>,
|
||||||
|
title: String,
|
||||||
|
url: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ScreenshotsState {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
screenshots: HashMap::new(),
|
||||||
|
screenshot_urls: HashMap::new(),
|
||||||
|
title: String::new(),
|
||||||
|
url: String::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub async fn generate_screenshots(shared: Arc<ScreenshotsShared>) {
|
||||||
|
parse_files(shared.clone(), "screenshots").await;
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn parse_files(shared: Arc<ScreenshotsShared>, base_dir: &str) {
|
||||||
|
let mut reader = tokio::fs::read_dir(base_dir).await.unwrap();
|
||||||
|
loop {
|
||||||
|
if let Some(f) = reader.next_entry().await.unwrap() {
|
||||||
|
let contents = tokio::fs::read_to_string(f.path()).await.unwrap();
|
||||||
|
|
||||||
|
parse_file(shared.clone(), contents);
|
||||||
|
update_screenshots(shared.clone());
|
||||||
|
generate(shared.clone());
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse_file(shared: Arc<ScreenshotsShared>, contents: String) {
|
||||||
|
let mut screenshots_info = ScreenshotsInfo::new();
|
||||||
|
let mut screenshot = Screenshot::new();
|
||||||
|
|
||||||
|
for line in contents.lines() {
|
||||||
|
if line.len() == 0 {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
let v: Vec<&str> = line.splitn(2, ':').collect();
|
||||||
|
assert_eq!(v.len(), 2);
|
||||||
|
|
||||||
|
if let Some(key) = v.get(0) {
|
||||||
|
if *key == "screenshots_title" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshots_info.title = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'screenshots_title'.");
|
||||||
|
}
|
||||||
|
} else if *key == "screenshots_url" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshots_info.url = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'screenshots_url'.");
|
||||||
|
}
|
||||||
|
} else if *key == "title" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshot.title = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'title'.");
|
||||||
|
}
|
||||||
|
} else if *key == "image_min" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshot.image_min = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'image_min'.");
|
||||||
|
}
|
||||||
|
} else if *key == "image_big" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshot.image_big = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'image_big'.");
|
||||||
|
}
|
||||||
|
} else if *key == "url" {
|
||||||
|
if let Some(value) = v.get(1) {
|
||||||
|
screenshot.url = String::from(value.trim());
|
||||||
|
} else {
|
||||||
|
panic!("Unable to parse field: 'url'.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// all info needed for one screenshot:
|
||||||
|
if screenshot.title.len() > 0
|
||||||
|
&& screenshot.image_min.len() > 0
|
||||||
|
&& screenshot.image_big.len() > 0
|
||||||
|
&& screenshot.url.len() > 0
|
||||||
|
&& screenshots_info.title.len() > 0
|
||||||
|
&& screenshots_info.url.len() > 0
|
||||||
|
{
|
||||||
|
screenshot.screenshots_title = screenshots_info.title.clone();
|
||||||
|
screenshot.screenshots_url = screenshots_info.url.clone();
|
||||||
|
|
||||||
|
{
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
if let Some(value) = lock.screenshots.get_mut(&screenshots_info.title) {
|
||||||
|
value.push(screenshot);
|
||||||
|
} else {
|
||||||
|
lock.screenshot_urls
|
||||||
|
.insert(screenshots_info.title.clone(), screenshots_info.url.clone());
|
||||||
|
lock.screenshots
|
||||||
|
.insert(screenshots_info.title.clone(), vec![screenshot]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// reset for new screenshot:
|
||||||
|
screenshot = Screenshot::new();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
lock.title = screenshots_info.title.clone();
|
||||||
|
lock.url = screenshots_info.url.clone();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn update_screenshots(shared: Arc<ScreenshotsShared>) {
|
||||||
|
// TODO: this could be done more efficiently:
|
||||||
|
// (need screenshots for each screenshot as they are linked below)
|
||||||
|
let mut lock = shared.state.lock().unwrap();
|
||||||
|
for (_key, value) in &mut lock.screenshots {
|
||||||
|
let v = value.clone();
|
||||||
|
for s in value {
|
||||||
|
s.screenshots = v.clone();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn generate(shared: Arc<ScreenshotsShared>) {
|
||||||
|
let lock = shared.state.lock().unwrap();
|
||||||
|
|
||||||
|
for (_key, screenshots) in &lock.screenshots {
|
||||||
|
// create output dir needed:
|
||||||
|
Helper::create_dir_all(&Helper::get_output_dir().join(&lock.url));
|
||||||
|
|
||||||
|
// write page to disk:
|
||||||
|
Helper::write_file_sync(
|
||||||
|
&Helper::get_output_dir().join(&lock.url).join("index.html"),
|
||||||
|
&lock.render().unwrap().as_bytes(),
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
// generate all individual screenshot pages:
|
||||||
|
for screenshot in screenshots {
|
||||||
|
screenshot.generate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
38
static/css/breadcrumbs.css
Normal file
38
static/css/breadcrumbs.css
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
.breadcrumbs {
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
background-image: url('../img/breadcrumbs-bg.png');
|
||||||
|
color: #e6e6e6;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 0px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumbs span {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 0.7em;
|
||||||
|
line-height: 2em;
|
||||||
|
padding: 0px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.crumb:link,
|
||||||
|
.crumb:visited {
|
||||||
|
border-style: none;
|
||||||
|
color: #e6e6e6;
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 2em;
|
||||||
|
padding: 0px 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.crumb:active,
|
||||||
|
.crumb:focus,
|
||||||
|
.crumb:hover {
|
||||||
|
color: #fade8b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.crumb-active:link,
|
||||||
|
.crumb-active:visited {
|
||||||
|
color: #fade8b;
|
||||||
|
}
|
||||||
64
static/css/buttons.css
Normal file
64
static/css/buttons.css
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
.button-big,
|
||||||
|
.button-big:link,
|
||||||
|
.button-big:visited {
|
||||||
|
border-color: #f4bb15;
|
||||||
|
border-radius: 6px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
color: black;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 0.8em;
|
||||||
|
height: 47px;
|
||||||
|
line-height: 47px;
|
||||||
|
margin: 10px;
|
||||||
|
padding: 0px 30px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-big:active,
|
||||||
|
.button-big:focus,
|
||||||
|
.button-big:hover {
|
||||||
|
border-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-light,
|
||||||
|
.button-light:link,
|
||||||
|
.button-light:visited {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-light:active,
|
||||||
|
.button-light:focus,
|
||||||
|
.button-light:hover {
|
||||||
|
border-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-little,
|
||||||
|
.button-little:link,
|
||||||
|
.button-little:visited {
|
||||||
|
border-color: #c0c0c0;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
color: #525252;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 0.8em;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
vertical-align: top;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-little-active:link,
|
||||||
|
.button-little-active:visited,
|
||||||
|
.button-little:active,
|
||||||
|
.button-little:focus,
|
||||||
|
.button-little:hover {
|
||||||
|
background-color: #ffcc00;
|
||||||
|
border-color: #d4aa00;
|
||||||
|
}
|
||||||
122
static/css/common.css
Normal file
122
static/css/common.css
Normal file
|
|
@ -0,0 +1,122 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
min-height: 100vh;
|
||||||
|
background: #333;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Offset element (A11Y)
|
||||||
|
- Hide the element in graphic Web browsers.
|
||||||
|
- But display it in text-based browsers.
|
||||||
|
*/
|
||||||
|
.a11y-offset {
|
||||||
|
position: absolute;
|
||||||
|
left: -50000px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bold {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered-block {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered-text {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.light-text {
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.limit-width {
|
||||||
|
max-width: 960px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mono {
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-yellow:link,
|
||||||
|
.link-yellow:visited {
|
||||||
|
border-style: none;
|
||||||
|
color: #f4bb15;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-yellow:active,
|
||||||
|
.link-yellow:focus,
|
||||||
|
.link-yellow:hover {
|
||||||
|
color: #f49b15;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noise-bg {
|
||||||
|
background-color: #333;
|
||||||
|
background-image: url('../img/noise-bg.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-number-indicator {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.4em;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 10px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-selector {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.responsive-image {
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sheet {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-shadow-bg {
|
||||||
|
background-image: url('../img/depression-shadow-top.png');
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1280px) {
|
||||||
|
.sheet {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sheet-padded {
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
73
static/css/elements.css
Normal file
73
static/css/elements.css
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
color: #565656;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: maroon;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
code,
|
||||||
|
pre {
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #f6f6f6;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #d4cbb6;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
border-width: thin;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre,
|
||||||
|
pre code {
|
||||||
|
color: inherit;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table,
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
border-color: gray;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
10
static/css/footer.css
Normal file
10
static/css/footer.css
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: #333;
|
||||||
|
color: #e6e6e6;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
190
static/css/header.css
Normal file
190
static/css/header.css
Normal file
|
|
@ -0,0 +1,190 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
header {
|
||||||
|
position: sticky;
|
||||||
|
transition: transform 0.25s ease-in-out;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 66px;
|
||||||
|
background: #333;
|
||||||
|
border-color: #1a1a1a;
|
||||||
|
border-style: none none solid none;
|
||||||
|
border-width: thin;
|
||||||
|
padding: 0 32px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 0.9em;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-up {
|
||||||
|
transform: translateY(-100px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-down {
|
||||||
|
transform: translateY(0px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.branding:link,
|
||||||
|
.branding:active,
|
||||||
|
.branding:focus,
|
||||||
|
.branding:hover,
|
||||||
|
.branding:visited {
|
||||||
|
background-image: url('../img/branding.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
border-style: none;
|
||||||
|
display: inline-block;
|
||||||
|
height: 55px;
|
||||||
|
width: 54px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li {
|
||||||
|
position: relative;
|
||||||
|
list-style: none;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li a {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.1em;
|
||||||
|
padding: 28px 25px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li a:link {
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li a:hover,
|
||||||
|
.menu-item-active:link,
|
||||||
|
.menu-item-active:visited {
|
||||||
|
color: #f4bb15;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.menu-item-active:link,
|
||||||
|
a.menu-item-active:visited {
|
||||||
|
background-image: url('../img/menu-item-active-bg.png');
|
||||||
|
background-position: bottom center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li a:hover {
|
||||||
|
background: #434343;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li b {
|
||||||
|
padding-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li ul {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
width: 200px;
|
||||||
|
background: #333;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li:hover > ul {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li ul li {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li ul li ul {
|
||||||
|
top: 0;
|
||||||
|
left: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* make it responsive */
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
header {
|
||||||
|
padding: 10px 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
top: 66px;
|
||||||
|
left: 0;
|
||||||
|
background: #333;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header.active nav {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.menu-item-active:link,
|
||||||
|
a.menu-item-active:visited {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li ul {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul li ul li ul {
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul li:hover ul li {
|
||||||
|
background: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuToggle {
|
||||||
|
position: relative;
|
||||||
|
width: 40px;
|
||||||
|
height: 50px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuToggle::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 3px;
|
||||||
|
background: #fff;
|
||||||
|
transform: translateY(-12px);
|
||||||
|
box-shadow: 0 12px #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuToggle::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 3px;
|
||||||
|
background: #fff;
|
||||||
|
transform: translateY(12px);
|
||||||
|
}
|
||||||
|
|
||||||
|
header.active .menuToggle::before {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
box-shadow: 0 0 #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
header.active .menuToggle::after {
|
||||||
|
transform: rotate(315deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
130
static/css/index.css
Normal file
130
static/css/index.css
Normal file
|
|
@ -0,0 +1,130 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: #4d4d4d;
|
||||||
|
font-size: 2.5em;
|
||||||
|
margin: 50px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
color: #4d4d4d;
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 50px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-box {
|
||||||
|
padding: 40px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-content {
|
||||||
|
background-color: #3d3d3d;
|
||||||
|
background-image:
|
||||||
|
url('../img/checkerboard-bg.png'), url('../img/featured-box-bg.png');
|
||||||
|
background-position: top, bottom;
|
||||||
|
background-repeat: repeat, repeat-x;
|
||||||
|
color: white;
|
||||||
|
font-size: 17px;
|
||||||
|
padding: 40px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-content > ul {
|
||||||
|
list-style-image: url('../img/white-star.png');
|
||||||
|
margin: auto;
|
||||||
|
max-width: 960px;
|
||||||
|
padding: 0px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-content li {
|
||||||
|
padding: 10px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.discovery-box {
|
||||||
|
background-color: #333;
|
||||||
|
background-image:
|
||||||
|
url('../img/depression-shadow-top.png'), url('../img/noise-bg.png');
|
||||||
|
background-repeat: repeat-x, repeat;
|
||||||
|
color: #e6e6e6;
|
||||||
|
padding: 40px 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.discovery-box h2,
|
||||||
|
.discovery-box h3 {
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshots-box {
|
||||||
|
padding: 40px 0px 0px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview {
|
||||||
|
font-size: 0.7em;
|
||||||
|
margin: 40px auto;
|
||||||
|
max-width: 250px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview a,
|
||||||
|
.screenshot-preview img {
|
||||||
|
border-radius: 5px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview-description {
|
||||||
|
padding-top: 8px;
|
||||||
|
color: #e6e6e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview a:link,
|
||||||
|
.screenshot-preview a:visited {
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
box-shadow: 0 0 4px gray;
|
||||||
|
color: #e6e6e6;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview a:active,
|
||||||
|
.screenshot-preview a:focus,
|
||||||
|
.screenshot-preview a:hover {
|
||||||
|
border-color: black;
|
||||||
|
box-shadow: 0 0 4px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-viewer {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 300px) {
|
||||||
|
.screenshot-inset-shadow {
|
||||||
|
border-radius: 5px;
|
||||||
|
box-shadow: inset 0 0 4px black;
|
||||||
|
display: block;
|
||||||
|
height: 140px;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview a:active .screenshot-inset-shadow,
|
||||||
|
.screenshot-preview a:focus .screenshot-inset-shadow,
|
||||||
|
.screenshot-preview a:hover .screenshot-inset-shadow {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 480px) {
|
||||||
|
.button-big:link,
|
||||||
|
.button-big:visited {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-preview {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 15px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
}
|
||||||
59
static/css/item-preview.css
Normal file
59
static/css/item-preview.css
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
.item-preview,
|
||||||
|
.item-preview:link,
|
||||||
|
.item-preview:visited {
|
||||||
|
border-color: #f4bb15;
|
||||||
|
border-style: none none solid none;
|
||||||
|
border-width: thin;
|
||||||
|
color: #4d4d4d;
|
||||||
|
display: block;
|
||||||
|
padding: 10px 15px;
|
||||||
|
text-align: left;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-preview:active,
|
||||||
|
.item-preview:focus,
|
||||||
|
.item-preview:hover {
|
||||||
|
background-color: #f4bb15;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-preview h3 {
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0px;
|
||||||
|
padding-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-preview p {
|
||||||
|
padding-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-date {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1024px) {
|
||||||
|
.item-preview,
|
||||||
|
.item-preview:link,
|
||||||
|
.item-preview:visited {
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 10px 0px 15px 0px;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 270px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-preview:active,
|
||||||
|
.item-preview:focus,
|
||||||
|
.item-preview:hover {
|
||||||
|
border-color: #f4bb15;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
71
static/css/page.css
Normal file
71
static/css/page.css
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5 {
|
||||||
|
color: #4d4d4d;
|
||||||
|
line-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
margin-top: 32px;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4,
|
||||||
|
h5 {
|
||||||
|
margin-top: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 2.5em;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.2em;
|
||||||
|
padding: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
line-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Aim for ~12 words per line for good readability. */
|
||||||
|
.page.limit-width,
|
||||||
|
.page-post.limit-width {
|
||||||
|
max-width: 720px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-post {
|
||||||
|
background-color: white;
|
||||||
|
padding: 50px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
background-color: white;
|
||||||
|
padding: 50px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page p {
|
||||||
|
margin-top: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page a:link,
|
||||||
|
.page a:visited {
|
||||||
|
color: #0064ff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page a:active,
|
||||||
|
.page a:focus,
|
||||||
|
.page a:hover {
|
||||||
|
border-style: none none dashed none;
|
||||||
|
border-width: thin;
|
||||||
|
color: #357edd;
|
||||||
|
}
|
||||||
108
static/css/post.css
Normal file
108
static/css/post.css
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
article {
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article p {
|
||||||
|
margin-top: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article ul {
|
||||||
|
margin-left: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article a:link,
|
||||||
|
article a:visited {
|
||||||
|
color: #0064ff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
article a:active,
|
||||||
|
article a:focus,
|
||||||
|
article a:hover {
|
||||||
|
border-style: none none dashed none;
|
||||||
|
border-width: thin;
|
||||||
|
color: #357edd;
|
||||||
|
}
|
||||||
|
|
||||||
|
article a img {
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h2 {
|
||||||
|
font-size: 1.8em;
|
||||||
|
text-align: left;
|
||||||
|
line-height: 1.2em;
|
||||||
|
padding: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h4 {
|
||||||
|
font-size: 2em;
|
||||||
|
padding: 30px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
article h5 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article audio,
|
||||||
|
article img,
|
||||||
|
article video {
|
||||||
|
display: block;
|
||||||
|
margin: 50px auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-metadata {
|
||||||
|
color: #4d4d4d;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topic-list {
|
||||||
|
margin: 50px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topic-list p {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Aim for ~12 words per line for good readability. */
|
||||||
|
article.limit-width {
|
||||||
|
max-width: 720px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.license {
|
||||||
|
font-size: 0.8em;
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article button {
|
||||||
|
padding: 2px;
|
||||||
|
margin: 2px;
|
||||||
|
min-width: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* force wrapping to new line so that scrollbar isn't needed: */
|
||||||
|
code[class*='language-'] {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-code {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: #white;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
line-height: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-code:hover {
|
||||||
|
background-color: #f6f6f6;
|
||||||
|
}
|
||||||
94
static/css/sidebar.css
Normal file
94
static/css/sidebar.css
Normal file
|
|
@ -0,0 +1,94 @@
|
||||||
|
/* luflow.net web site */
|
||||||
|
/* Public domain 2025. All rights waived */
|
||||||
|
|
||||||
|
.side-bar {
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #555753;
|
||||||
|
font-size: 0.9em;
|
||||||
|
padding: 30px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-title {
|
||||||
|
color: #525252;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-list {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-item {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 10px 5px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-link:link,
|
||||||
|
.bar-link:visited {
|
||||||
|
border-color: silver;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
color: #525252;
|
||||||
|
padding: 5px 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-link:active,
|
||||||
|
.bar-link:focus,
|
||||||
|
.bar-link:hover {
|
||||||
|
background-color: #ffcc00;
|
||||||
|
border-color: #d4aa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feed-link {
|
||||||
|
background-image: url('/static/img/feed-bg-white.png');
|
||||||
|
background-position: bottom left;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1280px) {
|
||||||
|
.side-bar {
|
||||||
|
border-color: #999;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: thin;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0px;
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-title {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-title-top {
|
||||||
|
border-radius: 4px 4px 0px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-list {
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-item {
|
||||||
|
display: block;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar-link:link,
|
||||||
|
.bar-link:visited {
|
||||||
|
border-color: #f5f5f5;
|
||||||
|
border-radius: 0px;
|
||||||
|
border-style: solid none none none;
|
||||||
|
display: block;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 8px 8px 8px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
123
static/gpg/aw-luflow-net-pubkey.asc
Normal file
123
static/gpg/aw-luflow-net-pubkey.asc
Normal file
|
|
@ -0,0 +1,123 @@
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBFLmX+sBEADXBnrCof4g31eNq5aha9v6A1PRr2xo4g62lpszp36wmW7VaRkD
|
||||||
|
oGkd0RQKY1xc3HnPLVs8ZhLUqoJq3Y8WtJN19vw8l2Q9orVoMTw8KRwJusxNgJB+
|
||||||
|
0G0bZ0OibJzUx5c+6ehPZmtr9db8N0fvrRvUvVipjGu9aOeDhVlsm0rqeCPKITV1
|
||||||
|
rxK3AGykDFuB2f0xzcT91Cn+z63Jpqu7FfYlFXDJT4vYg+FMKsoRH+rW/MHCC4SH
|
||||||
|
+pWQrx6oxVz9lS5qPZONOo0GtFseEwQzZMfQo4fkQ5LXGn8IwbcbHC3/7QLkQZMS
|
||||||
|
4R8NUObzHHMd0c+0kv+3WsI14NP5dgW6GxYw23tbf1vyuPFiui5UrUq4WiuaAjMu
|
||||||
|
7rNgkDrVtMfzFSRZazp2nGgFRR7rJpJ8kZrpCBQd3fysu8Pw0DxJhKhp0bumn7wh
|
||||||
|
kwcUlcJEkMetnfxbEi1MprVHV1VM90eRBAFPF4UW1f8oZHfIn9HyeiEGWnVobXdm
|
||||||
|
y9lfMn8TmptYfGulAlu9/f5ocFhSCaXHU3vlaah/mFn01BlOlopQEcKX36RY6ewe
|
||||||
|
Odr2VcAcc2T6Q3YegmDPp/pOb7rpJ82tF54DHo1WU4ZueU/cP+6CbQKCsFBK58wF
|
||||||
|
CqaStrjZy6NPX+U6l4UBHt4p48+6iRLh3TKB08Vmls3Nla5YU6JjdWg+twARAQAB
|
||||||
|
tBdBbmRyZWFzIDxhd0BsdWZsb3cubmV0PokCNwQTAQIAIQIbAwIeAQIXgAUCVKVx
|
||||||
|
GgULCQgHAwUVCgkICwUWAgMBAAAKCRBbhfm19XamZ6uBEADMSQdXUeOGJHDFXEvP
|
||||||
|
P5BVJuiJVLr5M+wCvH0fDAKBd1wO7ciVNGHyAx6EYT//n0zVUi+MXif8kahg7JB+
|
||||||
|
o1h4LfJVfh7sKL6soOTIs7dYiAoEgFWtf6RrgIWtqVKENqrEoVEp9t0SJa7l49GJ
|
||||||
|
Ju5/Mll2ZfaRhhnsbixG6nrFFbEXRo73GHR+qwsPk2ZXUpmlT0yk8ABuazY/26Kr
|
||||||
|
xx3O+y9y43dJkxhEEwwpDLqGQHKJMGylSZCgMeMdYelnI8V3BujNkmYDYalKkFgR
|
||||||
|
cpO34HjRIDGqGWdowFoEowakR0zutKGIBqevFo6KY3kE1J9DiUzojIZR7icv2pIm
|
||||||
|
AB3KcY7DoQZRXusoC/Uf0K+ojc5MDmRqM/mTw7+0VFOOi2cYAui48Bws42y+Aokw
|
||||||
|
xw9mIWiHrpEbJ5DUSvaJ7qCLSuT2OdRlTnHV615gaFODZbPCDskV/0HcF8Y7bkbp
|
||||||
|
fxIynkGwoXaWmlFehi4Cqb5qWbBLwZgFeFKMAKz+VflrQdvO/tTlwKJTKDzmb7T8
|
||||||
|
ZpCeWJHjch4dRr8mCiPdHUggQX9x3KyxFOCVUv0Pcm3ne7zcSovW4cEkC1gwMKsT
|
||||||
|
DCbD9HSgAiWZtbEvN2tDRBRiAj8gbW0T8npsal9HT0Mwg1fpFnDLLIkEhoYfVQ04
|
||||||
|
BEao2rkdH3i3vDW5BBl+phi+ZokCOAQTAQIAIgUCUuZf6wIbAwYLCQgHAwIGFQgC
|
||||||
|
CQoLBBYCAwECHgECF4AACgkQW4X5tfV2pmePcA//az8CWo5b9DUzt7E0KiBjjiyd
|
||||||
|
e4rd7Ddt24DzcmMxJmppmnjBMXfAcIjJPsCTh5hgrS6uolv8+MUR2F7bxMAgLqsK
|
||||||
|
rVAzhTqpv+xVjZg72E3O9ArBC72RFm17f84KUgxSBbjGJVlkp9A/6iEB03IJX6qL
|
||||||
|
sNKNtTXobzcvvg3K8hveX4ud/MOf2JZRQCURQdodJdjjXh3QEdB/NYOxmEy8tHQf
|
||||||
|
nAPSYmZbshdVq4DpplD+ekokotyjeek408dSLClVDDTIjXy8EJWrwG9Cg1DRMcwj
|
||||||
|
/z+2oiLyKE++dll+pO7OjTGkOSSzZPndLV+HQ9VLzhLJWjmQybfDAEWh0auy+K7c
|
||||||
|
8VlkncPjVqBpem+ddimqsSKWng4nG9Z9KbmK6x+A3AMVPf9TsM+QyN6/mpc07pPn
|
||||||
|
C9hbSIjNmha4EtS8HM861kmjlBO8jyDT5TEXHD4uFGNirn0hgA06BJlDsWyCrXwO
|
||||||
|
i3CuIicE0dER/x9wV0GzOmUKpCntH9ABD0dgh+JYZuVIkpADUNkjjVQWKnEJ/8RI
|
||||||
|
0dgiv0/8eiPDIWGOLqwARK3eMbuuYkzF2iLl0WuEG/2zbto7iC8XYUCKeXNjz/4k
|
||||||
|
MIqs9cZaR4okxY+QzNsIORzGTmLwFHvlvXfk3Uhp7E/+1kVY2rClfMGxKb/Ihlo9
|
||||||
|
DQfrdf3NHTSpA52rPCyJAj0EEwEKACcCGwMCHgECF4AFCwkIBwMFFQoJCAsFFgID
|
||||||
|
AQAFAlZtvwcFCQdJxhQACgkQW4X5tfV2pmeHfxAAidTduItwW5eCV3pt3uPWIuWe
|
||||||
|
dK6OxYtCIZ1ZUnUZop+s/q+Mc940Jlxn6hB8he+iRRaC0e8kddNbrzm4Ec1MfM/Z
|
||||||
|
JiUN5k3J/+qNZCe3oHlzNTGB71mboa6zF14dobXqIIyvBu9lc912co2VciT9I2X/
|
||||||
|
WxmgLF1EUJKVhYQoOM2+SW+3dseAyHG0wz48uJ0sQ+3rCqw3X2F3luoWARViOzrF
|
||||||
|
+HuXdqgZv9srbpBm/On9oTvS88wAvMholpnWro4yWxpahbxm25yqNskCTMcWxpaL
|
||||||
|
p0rJYnkizZEnqOXzO69EmjOWOGARy2auQDBLSZmZbfP8bZoEwlkmzj7CdF6wSrDs
|
||||||
|
tY5HMGNJJKRcY7vkXhcxdXVPPzN2rb9JxjT50mjKCxDfTsnIIO2xNkqHZlSzN1EH
|
||||||
|
vY4P0wZpmvxpDg53SqNQgc+gdPst4TP3tBlxi5b5KxM2WWTon0xsHwImmdVAbXJa
|
||||||
|
pJdzKvuE3sUPWBaCNkTU5Pepqe/Xhm2ttGkSdzdN68E8LetXPPUfaicAC+KbQKah
|
||||||
|
RiGFFQ1t6GO1xIz17+nZBMNpl5q7IgWQHM3IK4Gxairu7BxXiu9B50E7D5Uqja6D
|
||||||
|
werjdBpfZUx/Ar8HXhUWvK0YqhXJkcG7MXX9ccewdkgGKBiKhR+CGCl2zuvbhUI3
|
||||||
|
8LHLS4CjeId/mEiBu92JAj0EEwEKACcCGwMCHgECF4AFCwkIBwMFFQoJCAsFFgID
|
||||||
|
AQAFAllCVIQFCQoeW5QACgkQW4X5tfV2pmcmKBAAxv5LO1yC+Ub7I94dbWqdNGxw
|
||||||
|
6MsXT1jucxcbll1zYO1U7aHanWYMQM3pQw+jwiZLfemvaN7LrI2Tcp+A0hqcx/hG
|
||||||
|
nVm/GJ+2lDJgja5qmWMslLwX6S2viJ9+Cb/2U4/evFrjNsz9zt8FPezaHtQL4Ezr
|
||||||
|
Ryfzyzb/BZvyMZmsiueDZNaoFxsNreKc/bhSJiXpYePHXLK+k8UJ/GkrpK20y0R5
|
||||||
|
Bq/IFBlSUvvLJLVsXNiMewqoOEWZfI5E4T+HIEdCI5bG6Bp/8FMaxySA6N0FLIJK
|
||||||
|
VZrctT4V4ngVlfVyk1DFpaCLhNq3notmYX06tj0zewCW/HTH7EanfyZbxoKbL0nY
|
||||||
|
VlTaUSulOvmrJF+hspaCt4qM97jjuavpLIJDOWM0fcDjBWWq6A5dJMDq7W/wYHo3
|
||||||
|
rPmN56Jp7ewnQegoGaeyzn9VIXmmY9pWZ2x48eX/u2G3XegvoC3ayHWvp5Mg//EO
|
||||||
|
22xqtWgtLmHTpyo90ww6rKAvXZnt7D4a0KKTs0GlaJvjLbRHFVfyK2YwyrLB6oc/
|
||||||
|
BqWOAbYHbCiay+ICmEs66lFroAkMXCfmfWDQEFTgUArkqCMnKxvTGYwuOah6BzqH
|
||||||
|
3vS6Gh31o3CAjnlTXtRnGwYQ6Qf4pYtpfww0kZCRDRuP86987RLt0T1tzobcObJM
|
||||||
|
bxcm8wPbzs91ndEImJKJAlQEEwEKAD4CGwMCHgECF4AFCwkIBwMFFQoJCAsFFgID
|
||||||
|
AQAWIQSP1h5ppVWyHSNH7q1bhfm19XamZwUCXJzayQUJDXjh3gAKCRBbhfm19Xam
|
||||||
|
Z9eQD/0RI8Wgv6XxTgbdIg7LMPvqw3z9lp4YZ/vIfWTu9C6qQuJIjcjtfQVIQKMZ
|
||||||
|
P8tFWkC0LkuCsRyW8CxOsPkRvv8uJPg0mkBlZ46kttonVSMYlXHq7kWF8LfttqKw
|
||||||
|
lI7964ausI9Q8Q3O+ZhpKwJmNjvaFsXRPM4d8+KkhKP9qCMQf9SASu72TmvlkztY
|
||||||
|
zdSxJx4iUwz8U6jhsXVoWQxpRpoz1exU1kaBIJUmPohR8WeP8s/j4XgRWlO7qZ25
|
||||||
|
3fbZVuxib7+QkLQSqHvnWMbr56tn0H6gRkP+FcB02LcMxcPBENuEfErOiuhngbgW
|
||||||
|
FlrT3BkkD8E7paAjc6P9id/Ffq9bztFDLAXARMvINkP8Mk4r+wQmvoviWULhrgVo
|
||||||
|
7D/Ez0NXBxB+pmzg6kAejJsaGO2uziuPiUGghLS82SWKTmJHhKBEgk4AtGI4VHQA
|
||||||
|
/oVr1f+PCT4Z/Wl0hlRt8gcI8eyQ3q3jUwbkbW2qxFhSBsLkOLEfTYuIZhZh7aSq
|
||||||
|
5KVzW+Ofg7jUirvn4Ow4tJjRPymsXR79yh/nOZgrSWLHqSGvFcwogYkCV2G25McV
|
||||||
|
bTXYhSER1kMtP8rBVTPeH2+ktzhdW8wj+VLSfT7mh6ZevlAClfqRFtq3VENeUvhS
|
||||||
|
7qqnJL0SMq92VASoqyPypvXJ5Lz0CpRH+TamUr5Le3oG15Gl8IkCTgQTAQoAOAIb
|
||||||
|
AwIeAQIXgAULCQgHAwUVCgkICwUWAgMBABYhBI/WHmmlVbIdI0furVuF+bX1dqZn
|
||||||
|
BQJlGsk0AAoJEFuF+bX1dqZneYEQANZhxTJll4B4ssu1du0yUKnai+ArO75YDudz
|
||||||
|
yTSIthiZD2bfz7c3NDbRzud01Ec2srjNbGSxQTQL5K6RNtB+zALhsKnvtIVAAP4p
|
||||||
|
FsSqBB5XsxBh1EKa4eVi/gArCTbU6s9kD33qwiTHTvaBjSa/UGWs3+g7aazvv09R
|
||||||
|
9enn1JLHolvyEkMqNdusXY5EG8RA9Q7cXxY7Ztbpzh8THsvkaacpN6If2QLFniCJ
|
||||||
|
yhLCYWk6E6f3WoCZSytSoetl2O4+PC+w/Qq/M9knw67zuJuTDRYY+NBd6heJlc4k
|
||||||
|
2FqYGBcMrkhVQthdFpvjH0SySN6PFCy6PNpb7bHVf/acVYJkxGHSuc0ymn30ZJ6q
|
||||||
|
mC7xPXDO22tKmnq8CGZvJwJVJpGuRXP77HT2GRzx8cIBPAayWNSUEA8PPyKUs/ix
|
||||||
|
0JJQ6CG2o/l85Z+nzEd7tc7tpYe6KegKye2E5B8pz2S1ykRVlykbLSTEBEOFLcA/
|
||||||
|
9hiK1jXoo0XZj6442y1nhaV0e09X4R5W1F/uCc93nKDzdSVexVQZmL/Xpn05usIf
|
||||||
|
nAVG8dVBho8CY1vo3gCwIPRZOt0AF811ndEicZF+7ZwpI4wLwcXVNBfRX7BmjA3r
|
||||||
|
t9VBa6v06xhHAegkhA0BeJ5u/39gXsc8sMeDwlZKCB/QcaiJCQ1Y3vRFW+dNUHbN
|
||||||
|
ruLzHQ1JiQJUBBMBCgA+AhsDAh4BAheABQsJCAcDBRUKCQgLBRYCAwEAFiEEj9Ye
|
||||||
|
aaVVsh0jR+6tW4X5tfV2pmcFAl/YhZ0FCRKVwDIACgkQW4X5tfV2pmduUhAArvEb
|
||||||
|
8QDAFrGjgqas73ProAtZJz2M7OFWw7jnTVR/yyCwFZ5hF9dwxvnX7BQJ3w6gx0po
|
||||||
|
NSaHS6W7FXJoSc1byJa1kFDrYAsVyZDzuaWyZ0cO92jGu7RzQPigaejqbolF1eSM
|
||||||
|
tI/BbHCYF7/z7TKr7R/r2MfUiZtpAxz4MRwLVo6EiYWQ3DW9j01BAr8q2xJihUPZ
|
||||||
|
IgbTPlRkjRcQnLtlshESGbsLrcN/Rhmrkz3aRxL4qwqwpBeCxNcW9QVblsxA9qzW
|
||||||
|
v2bKu3hj+3M4Wx6hbdFIzvBRni5ck+kvlOjq4EiZOrD5BRZ6yVRdAK1zU/BtdFO/
|
||||||
|
iIikSPny8qS3Kjs51zprPXp64dZ7Nvu6wA04XBQRW9NLlfhewshGA/VMynQs+HuW
|
||||||
|
VaUgDOSg5dSki1xZ7wWl+gEvIYP1O0Q93qBJynr3HGBk6KvJWlxme99dPZU2gr6Z
|
||||||
|
Pmo6TVMqTRWUXieIuw/7TnQFWg4aTRbl1yaa3+YygnAv0Bhfv5tQPCFafHIqMOQ9
|
||||||
|
S3GeQfF6rDmsiRUV+A2TYTZGDPHLtvdvwfuzg/ntjwKzaQTAe0abUqSuYa1aoaa5
|
||||||
|
R45Tf8Kmbh23Z/2BaqP9lpV/ozVg/Myp7vXcnZrZNd2imsi2BRxKdfxsDh9N2UEu
|
||||||
|
NZJXaoggFZSMTSjacFXJTeymfyLEdJT7UYizvQG5Ag0EUuZf6wEQAJpNPDmiiahY
|
||||||
|
Cv/xWs6OksumVaZVM62pVXDz5afWn4119h1iitDdWgDIqwK+wP70/dSH1z7nYzfX
|
||||||
|
7TakhZCZE1JJN589zdE4v/8h6w8aDjJPKQvkNOGbCIlMGK5TreG3+4omIjzga5Pc
|
||||||
|
6o0PyNrarasROTOSsIFkZryJ6PALPTImADA8xvLY9Dqk3fT8LAd4qf0osgmGXF8k
|
||||||
|
OL9fWecvUA4xNiSZugbN6IX+tbixCN7lKLRtcAW/syf+icqRCTiLIoQC1sUQ5yQK
|
||||||
|
oWfLJN8VoXdAoj3FXMjm7jkvpWy5NZCbXuiVHKHZgjSpQEfoO2tCRg1jBhNfq1LV
|
||||||
|
QiS+N1EOhJA4rDSN5+CMIag329HEf9nvauasJTNC/xM1f707Tqmb9I/Hmsop67fJ
|
||||||
|
K2HmS5HWKXbcuCmUhZY7plUzbF31E1SNEO13etbkvv347A1Z5ETlfO0sUKZo2You
|
||||||
|
Z4qpM2jrL+AcucUfWXi2VGEGBd5MfiQD4VRYl+AXTKcwy5faIHosKRjmqtDFQXoN
|
||||||
|
PTn/5pOxcXNyHrt5G73Re26syeYnJKDe3f82JqC73Jcpk+ld5G7ThCMFT6wQUiK3
|
||||||
|
Vm/GufhtEttcwf9wdLo/l7kr1Vf4+BIiiGyWNWXAgBtQ78dUwzCnGBsB4NAMIDIa
|
||||||
|
vk6SKvPw7+s2tTFN5TJk1z9NAo0jyWcnABEBAAGJAh8EGAECAAkFAlLmX+sCGwwA
|
||||||
|
CgkQW4X5tfV2pmePYQ//Rr7sgKV6qkerE1GSdx7P9eZxpmno1c9HKC0IZcF37SjK
|
||||||
|
C2wUn17ouAjJRSifT3kaOTq9M23GvNFHvlr7nSI8cP9I/Yv3U4b0+hw/kl/4xekq
|
||||||
|
jUwiHa4JWOsdXL449MKtbavAdkkB46CuNjhdEMz5UUIpDqqG3mytJdCxk6wadq2g
|
||||||
|
WIde7hVUq+Iq9CA8p5j/ezgepXuCsK7eWpBYXm1FNcNIdzGwZ7aq8tnQhcnIVbTv
|
||||||
|
RCjxEpkJmgn4AmyuoST1Cpp1D0hD9y9kWzL2N23YEH/G0gTP3MBZ8ygmBi5WIO1/
|
||||||
|
qFyJBHOkxxn6Jrq14VkHggCYb5qfh2bMNYWHfP8Wxjq6lAnN6VhaTN5jUB9XzvzV
|
||||||
|
Wk8MhD3W+LywnH1uncoNVgfuo8snGY2ACSp3zHoQvOiBs3iTOEc4FkWyW5nDrDDZ
|
||||||
|
ZJk5Dg1cFuHIxfuKr/1ShgLvmrJ/98RXPJUwC5goNg7qqV9geAaD+Y7bNDAXLkc1
|
||||||
|
SfkjFfW1cgAkjL34g5XKyjq0bQ+kFgRMfuLqduk7+qHAfgE6T+RKHmkpin/LbjUS
|
||||||
|
RnjbdXx4HpoD33uUiNrB4TUkEYi+g47RRebhzgxbG6v7/MjU2Gv+uP2wrtP61NJA
|
||||||
|
en4z9YmC7XpIaQKV7uIHxW9qxWNFkdL728RXnAjlw/0/G15dta4Z4x/oICteYuk=
|
||||||
|
=QFzF
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
793
static/highlight/DIGESTS.md
Normal file
793
static/highlight/DIGESTS.md
Normal file
|
|
@ -0,0 +1,793 @@
|
||||||
|
## Subresource Integrity
|
||||||
|
|
||||||
|
If you are loading Highlight.js via CDN you may wish to use [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) to guarantee that you are using a legimitate build of the library.
|
||||||
|
|
||||||
|
To do this you simply need to add the `integrity` attribute for each JavaScript file you download via CDN. These digests are used by the browser to confirm the files downloaded have not been modified.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script
|
||||||
|
src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"
|
||||||
|
integrity="sha384-5xdYoZ0Lt6Jw8GFfRP91J0jaOVUq7DGI1J5wIyNi0D+eHVdfUwHR4gW6kPsw489E"></script>
|
||||||
|
<!-- including any other grammars you might need to load -->
|
||||||
|
<script
|
||||||
|
src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/go.min.js"
|
||||||
|
integrity="sha384-HdearVH8cyfzwBIQOjL/6dSEmZxQ5rJRezN7spps8E7iu+R6utS8c2ab0AgBNFfH"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
The full list of digests for every file can be found below.
|
||||||
|
|
||||||
|
### Digests
|
||||||
|
|
||||||
|
```
|
||||||
|
sha384-+o0wnZ3Qv3ToSMdW07AO+SZA9YOje7MRS7dCOYaam0wMTNM+p5GPoRcVorbX2EXS /es/languages/1c.js
|
||||||
|
sha384-P+aXp77LDR3sReOm/LqJ/TZDajYl9YR0s5jPDLkAjkxbRCHBO8WhjPoWGXUYHoyz /es/languages/1c.min.js
|
||||||
|
sha384-JUyb8d0nZ1inOkUmauJVlq7Z3qvEcs2tn+0MCfdtPJCOp3pgsL60LoMb+1Ht6JZG /es/languages/abnf.js
|
||||||
|
sha384-fExacwevjaxWOjfZ4u5wK9AhGBB7cIpf9poF5tuE2ks+Cq7jrxdO6xMIWHtkExtu /es/languages/abnf.min.js
|
||||||
|
sha384-G3c8SNZYjR6jFPYkQxQDgYhzlaj4olCEySxxCnqKYBz3jcHODQ+RZQyyFGnM6ZTM /es/languages/accesslog.js
|
||||||
|
sha384-UetTFEKURO3tHQVj0YC0xP9Lo84vGmqippXzOpf96Awpk5fTIJ1lrKDBZWj5LqXa /es/languages/accesslog.min.js
|
||||||
|
sha384-o2fJw+r8c8T685EWLelpigrp8fgj1FXqgUrLDwWhn0+u4mjOnDOuFe86UTjTvs22 /es/languages/actionscript.js
|
||||||
|
sha384-DPMC6DNrQDnI19iz4boLDfCil/2VUOIvP95RdukjHU5GjXsdyGFymEoxIaskaAnq /es/languages/actionscript.min.js
|
||||||
|
sha384-nu/g/g0nbv2d6e+yZTqKfiMaxSWgN4oz5ti9sITx7Hey8uPkcuy7HDT7B2eCEQDL /es/languages/ada.js
|
||||||
|
sha384-nBHRn3msg3hmXvMrHK7V4nGHLgKG9i1/l/1/euhtIuXQLkkkpLPgCdcfRA3pru9Y /es/languages/ada.min.js
|
||||||
|
sha384-Y8zS3pzAPSZ6Y7oXkj1pP5yfHdCfcYvAolBQABmLySwJBMfsNPzhmhFHtoP3UsJk /es/languages/angelscript.js
|
||||||
|
sha384-KkF76nCbG7BPU92q9wjUKzhE2og8d56vytlV+v+KZaYwfTgWQMAIeTfIqZLZyPvS /es/languages/angelscript.min.js
|
||||||
|
sha384-QTDtPWugT5ylY4BegCLYLiNE4eMBrlFVNCv5RjiUQCBChC/v9fi9U1q76ZzrSAvA /es/languages/apache.js
|
||||||
|
sha384-HPrpX+j31X1o9T5eF99pY7R2u5y8udMGQ5YFLMxlVqNmBsLu2vesOPKXGzEiNKcr /es/languages/apache.min.js
|
||||||
|
sha384-3NpB7pd5PAUhsjH+fLlY28h8QMZTPpVsrcgbTkJ8XlvJzaa+WuhiN9bB2K7EoC0c /es/languages/applescript.js
|
||||||
|
sha384-xrWFlrFw2hKRyDUNdc/5RS4+OYmawKTVRBizj4keBc+hWQXYcwA7aI2T4pX5Jeoh /es/languages/applescript.min.js
|
||||||
|
sha384-yYAtpFA2KNxA90s4a/gk5GQu2YDvgdmZBHzqnfpF9JvepAEkAK0WhscKNnFa4om4 /es/languages/arcade.js
|
||||||
|
sha384-7S47/0OrcUlxyT5U91QRrBl0WB3ngB4RbklzyUFqMvh5l6hQQ+aQZ5SNtmi2ssM+ /es/languages/arcade.min.js
|
||||||
|
sha384-DZ/QAiGsDoaeLPHAnnWQ+KAi+ISBMQ1jorfzWY5B6Nck/LEW5BrlynsA7GqEwyq4 /es/languages/arduino.js
|
||||||
|
sha384-5fqRyRDjJwFL5ud85A5a43LTiHQYvuRA8aoZQfQmjEKTQzQ58xBXhKVxno6hb/yS /es/languages/arduino.min.js
|
||||||
|
sha384-70Hnsgq+pLV6Nv+jLuSMFD/HnkaD43hro7nQzNuHz4xgF+tKOytAIoA6Sge1X9HB /es/languages/armasm.js
|
||||||
|
sha384-bLfpGfjsTXF9t/A7zVpnKcKLVqfpoDQO3cj/Otmw7Kg6WeGCUKiKIfT4ORFq4YFK /es/languages/armasm.min.js
|
||||||
|
sha384-+QLqOzVprIbDNiTtALJ0CqYF9lCa5YNGtiQE3WogL8TVStFdTMgpkWFBbVdDnj1W /es/languages/asciidoc.js
|
||||||
|
sha384-3p/AcS9vjLxqOK7hnymyAfIV1SJlGE0eW/iTNNfV56XtUc9kqpliCe3yJL7yZ2R3 /es/languages/asciidoc.min.js
|
||||||
|
sha384-guH88kMmYrC3Lmot8J9Vac3rlk/zYP0oQPFC10cX7itH5Jo9BCk1E0keTdX9hkn9 /es/languages/aspectj.js
|
||||||
|
sha384-lNIMCZxm9l8gzr7WAxrq2w8h83FUIjC+sgZgfoMUOndXP96opihgLeKHWmwl1PcX /es/languages/aspectj.min.js
|
||||||
|
sha384-Mrh0Bn5Cr9xsoNJZxsrQEC60o6IywNDXtujUyD6T4QpNC1zUx063VR8XgFBmdTk1 /es/languages/autohotkey.js
|
||||||
|
sha384-KmgS3OVfpMEpVcANzQ7xAeLXR4gnymof90LNn09kuu78XoKmam7a4ElcX2Xl+u5M /es/languages/autohotkey.min.js
|
||||||
|
sha384-qKWSGlOfTLYJTvt26Iuxx0mijkl9OJpKXvlG0rr8MeAkeeHVcc5HB7+hQWX15kx8 /es/languages/autoit.js
|
||||||
|
sha384-E9pJR2w9ceWfEDdQM0axW9Ko4/bJ6deNtqWCEhKxYTKLmMY/8kiQLvt5bT5koXKD /es/languages/autoit.min.js
|
||||||
|
sha384-GEKuLIWUwFVie1Sa2ux9Tqd97zFLMG27gkSee6tgrlQ2T7ZV2Z2k9Gb4VkllEqns /es/languages/avrasm.js
|
||||||
|
sha384-ZC3UT/YWwRsO9wJC1OuvC1LbMr5Gl6m+8t4IWuxAVU7AdxXERm5q/mKZUc59L18u /es/languages/avrasm.min.js
|
||||||
|
sha384-+podZ7vcyPFT/3VNlVH5UNb//7AUAgNin4DT3sfVvkwfvESxszn+AIZzClBgjMac /es/languages/awk.js
|
||||||
|
sha384-EHnfKoIoapCq56z5MHMlmX+azfja6Qd7pXAV3984kggFfPSWT9f9U96k/Yjm3dfy /es/languages/awk.min.js
|
||||||
|
sha384-NV4YwiWmwsRPAdQmBvfk+30RX6jKIeoStQ2Em31J85WGghPLcuD9i0v9bLD065LT /es/languages/axapta.js
|
||||||
|
sha384-EfymdVdw4LpdoN7FCQD21aP38ryGq8spY2ym6nvau2xvQOiVXd2FZ1XgBWjVlWpd /es/languages/axapta.min.js
|
||||||
|
sha384-gRTR/fmk+6+ygbihH/fJvHgmffnOrd/eO7DW5zgu1uN9GBohtDx+OBs0DI0ejigB /es/languages/bash.js
|
||||||
|
sha384-Pg7b9hYE6kefjcNqAabhv8jOLCVoZubUaM4bZFjUJd0CaaQ14ksDI0GVllMtAF4S /es/languages/bash.min.js
|
||||||
|
sha384-rqmXEblVZx9ZsNNet5SE9HzCpyLycJlsvFieXpvVMP7rSlQ5g10/r0X/tOuJUzet /es/languages/basic.js
|
||||||
|
sha384-Z8A67hV3B66k1DT7o/OqP2m0DYQvowlpPFpnONn1omgUmBoqXPbxtd5yjwgn2APh /es/languages/basic.min.js
|
||||||
|
sha384-QHbn99pVnzMc1eTlAHuzezde2oeInU8mH7zlG4cQ70jpXfjfoD531aUjUzxEjGHC /es/languages/bnf.js
|
||||||
|
sha384-UqgBDF2X+N1GebyqNxeti8OeNEMW7n/TzYibf/T/xNJp/W7GZOlaFHLM/kxsSAuU /es/languages/bnf.min.js
|
||||||
|
sha384-pu3w7lNNLUB7buFlFR3L+AtF9q3nSSOIJgO0esuKoqUfUqD6scWh1qmaDyDlN//N /es/languages/brainfuck.js
|
||||||
|
sha384-5Di+hEgBSRkJwSrjHMQIs2QIwae05Eskbb7kizfL3EbgrGoeA9hxFwf52yTj5qHg /es/languages/brainfuck.min.js
|
||||||
|
sha384-xhohaHGp8S443Qn4JZUYAcKqIIl0bQkFA79EUxpbX8GWb5oufdvvSI9ipl/Dasev /es/languages/c.js
|
||||||
|
sha384-xaTVEdq02jgKStoYDcZD8NhTN1XV/TWpIu4OM53MtMiLl08+e9YJNENo+R/6Nwp0 /es/languages/c.min.js
|
||||||
|
sha384-RLZaXx++np1D/9j/+v1MZLPMstFgX3dOmAZxvhT6y7IN19i7P3vjVajIEbnzVLJM /es/languages/cal.js
|
||||||
|
sha384-I2FUaDLnpeELCNAIxaoR3gkAhNdcc5Ame7AkbEMbwOsudd2VzF6qZtS7M2LQ1Ouy /es/languages/cal.min.js
|
||||||
|
sha384-4YRSqoQKmRid4deuCZn4W5dKPoz7/rIHEWL0XR/DAKA0C0KcmqyfR0y1FUH1Oyyt /es/languages/capnproto.js
|
||||||
|
sha384-eS7SxRZ/E4cBZcxCUL0ytrdfO7Du0+I9h5sAbuO40XtFXPGEP3lrEZqygmHSuBdN /es/languages/capnproto.min.js
|
||||||
|
sha384-JqfjKoUfm5FxQAk+DZXWFG+QsHDv+UN33SNNMxmsc00Wb5PP0eORPryTKcAzuIFg /es/languages/ceylon.js
|
||||||
|
sha384-2fm8xiTBnHGYikBmYzXsHdNkejBluscHr6lflc37uLEOmqS7mO5AWcEetfKofCq2 /es/languages/ceylon.min.js
|
||||||
|
sha384-7N4xhquF6JIV8b8UdjB/QscN1NmcqKdB8rVQgjps6D6uafq2mnvXqW+sVCCLeUio /es/languages/clean.js
|
||||||
|
sha384-1garsM3t5LF5Hgq5YEhQ69+QDOnHQhKwY6B/lR13gA/zmZw85MF0aTlfINZ9z/z/ /es/languages/clean.min.js
|
||||||
|
sha384-coQMnGMwsi6uI+LsPEbPPrrhiU46Mvlg7R9BekHXZR7bERZChk6D2T3xqrtyz6fV /es/languages/clojure.js
|
||||||
|
sha384-wUFe0FaJd5qqazVoR9bUsZ84IozJ/ADhmdglzzjnBMKPiQa4mdsh/Pu/Wbm06g/l /es/languages/clojure.min.js
|
||||||
|
sha384-i0ggfwgE1OsvHXbXfqUxGOJQzvdJ8m1fi9MRBsthd84In131PSgXT4W8EIOQtdAs /es/languages/clojure-repl.js
|
||||||
|
sha384-Wknndeare8QK+wj3swbSm33Q/NPqFpAio/ALh1KoInphZ8nmRU6PFHl9cxr5E7UF /es/languages/clojure-repl.min.js
|
||||||
|
sha384-4Jkc+l0njgG1ekq/E7kJCYXltFaDopM/LQLUyoCpBGa7oWSdgQzWPXqFxZWXsyRI /es/languages/cmake.js
|
||||||
|
sha384-7HLwuzaDtJxWvaGQ7qGwWFgozJH1ljKCOPmIVeVosrCZ8RpzoA1wEF/6RSqDKyeP /es/languages/cmake.min.js
|
||||||
|
sha384-n+TJxTYPOVlnVU30J2KbOSrEWKeKNfNK2Y0l4SziXZOnYxNWe6tzH3gOlpyF1Mlu /es/languages/coffeescript.js
|
||||||
|
sha384-nC3NYYR2DoB1VGCbsComaX6JrgUGlYySu0O9lOl2YyM6bcZQYMvGDk8ecgQ5BUp2 /es/languages/coffeescript.min.js
|
||||||
|
sha384-caErsay9EvozXw0GnRqnOIb+Bi03+pMowTegWii8mmg5ClVFJUdZMOgaHL+kOnII /es/languages/coq.js
|
||||||
|
sha384-K5ORXxxMn6dMhashfWD47jLbEOmIAe4GJMVVBQUGhwQtXWz7ip1tAFpyWb8biVgO /es/languages/coq.min.js
|
||||||
|
sha384-o3uepSM9q33H3PqpCAeZJKXDEO6CoMOZrnD4ir16myBf86PhCHCyjO2b985p+10Y /es/languages/cos.js
|
||||||
|
sha384-WZQPy+Pp1cmMBgES65XN/920yzXprmouq01yN18D4DG2ImRPqtVA1Mtc0N09dhUU /es/languages/cos.min.js
|
||||||
|
sha384-rFCBWxbZHxZD51qKR2cdayIcKUSHS3p1PWPIs1kjgsP7lu9ZP32ah/2DoQUm/rTg /es/languages/cpp.js
|
||||||
|
sha384-+1Koxl0St78gEZW5CpFK+dbLp7yNsfwLzzQUsSGimV4k/RVJUz6YvqtsqtdbJyKf /es/languages/cpp.min.js
|
||||||
|
sha384-libVIkMfhwIAKlxTgKwCMgLN1i3YcCGc2ssx8/j8K3rYxomI9LRH0dlAUQLLJAxv /es/languages/crmsh.js
|
||||||
|
sha384-Kre8OW+LeR9OVgElhVDWiEkl43gegrPE8SwOxGCBV2y0brdD/nsVN+vgnOa2zH+g /es/languages/crmsh.min.js
|
||||||
|
sha384-MNeQHVR8xcLSJDolyMOu6ryJG57itl2ZQkQkX1ROPkTvdymcoVabvsqHWVk13mXq /es/languages/crystal.js
|
||||||
|
sha384-lans159An332J9CYcvdgkWOX6MHcoxH7Qu1lk25Kmc5cOTe39OuemUwkX8Ol2PfJ /es/languages/crystal.min.js
|
||||||
|
sha384-0s8f7nphuRu8IIkFNCeOVZhvbjt7YKZEHl38OjfkCkdtnwIUvwRNbxxUHkCdcYjm /es/languages/csharp.js
|
||||||
|
sha384-xLfGW0hIBHie9xNFuVroNihI0BdEO8FKxOeCdyJBrO1eM7s5BsQ8F3fLtFydQZ+Z /es/languages/csharp.min.js
|
||||||
|
sha384-cn55aML3qDmOtCXYMz7y+xebH0wqaEsVHHRTdUGfX1f2oDYE/GunJ9q7vVZIqCbw /es/languages/csp.js
|
||||||
|
sha384-7IiULxqEiwmhu0rNZ7NF+AYPbZjVxcSWYjLv41MAx+alnu8EfsHrJKMCMRaOHuSf /es/languages/csp.min.js
|
||||||
|
sha384-Gmvct15f4Mo9AXQG5bk5w78N1YjBLXXU3KIV7no+mOVnApXlwfw1dwjfueAwljIV /es/languages/css.js
|
||||||
|
sha384-1D7DbOic0Z5nM2ldSO9O/EsBfsg/5x7X7So1qnMgscI2ucDevptcg7cTvrD9rL0D /es/languages/css.min.js
|
||||||
|
sha384-5+7iD+SLPN8zscrU9bvYL4OTACJLhBvB0Lu0bx/NVJX5M7Fop4Z3Utuj0NWz+gQE /es/languages/d.js
|
||||||
|
sha384-1+sb+CiIZoPKZwgpbgG/uy6FfFwAIK9+SCzra3YzyxMO/WsCL2bweMxv2NnKEnUt /es/languages/d.min.js
|
||||||
|
sha384-p9dveaB2LAcve5Dbjh6dGlQBU/AV2qMfsq+YCbF9CJxMeYK9mlP5sZK+KAWxmuXj /es/languages/dart.js
|
||||||
|
sha384-68y8u39VrtQ85zZP9c5coSo2jjPLBwTB1MAV4XLcP0220WLQivfhp6RVofQKWY+L /es/languages/dart.min.js
|
||||||
|
sha384-rhgmyUgDa4QzGf+ipXYqag6cJFfJInFarduqDqxccHX4Zq5iOSXYRDQXgGZjdjEi /es/languages/delphi.js
|
||||||
|
sha384-vqP/jwtCqKD4HHL69aew2iS9gh2tMCjOJle+JqFmey4un+HuloMCh2GaaHVQy1eF /es/languages/delphi.min.js
|
||||||
|
sha384-CxgzMCYCdPS3oPSgukCqpDiqHKDKcrLdlyMqy9UF73u63+XVRlI32OproboitNa6 /es/languages/diff.js
|
||||||
|
sha384-joI34L4jMJOgkz6zOb3sqraHH5tmocRfXvs9HkdHfUpD3ceSxAqKlubpBT/4Q/sV /es/languages/diff.min.js
|
||||||
|
sha384-IZPwfVGChjxiFn/yRHid99p+81wHZKppqSWzWv3/VpfILbOfX+FBbsAEjyYEz+08 /es/languages/django.js
|
||||||
|
sha384-c6VNDV3sM+ivvQX1L4LuDW3MjiYsC6u70/NKATWDBfdRODoECdSJ7oUhpcU/WBUi /es/languages/django.min.js
|
||||||
|
sha384-2JWkG0RxwUVIplguSh0wqy72AdJTl3UnuY2FVJePb6kHsj5MNf85BjqsHRbLJFSP /es/languages/dns.js
|
||||||
|
sha384-awuLaeTnQUKMFxA81452r437c+WlKf1OGhsqRp3TG5i40wpQQe9w3ntPitWEfVcN /es/languages/dns.min.js
|
||||||
|
sha384-GjF+59AA+OY/6RDsvWxm3u318l0CruHb/Fm3oywrHZWho96FKyPUFnoIKqCKiM4D /es/languages/dockerfile.js
|
||||||
|
sha384-qyGdaK2usg+DEmSJUcr3Rogi6miy7A1Rn8QlRc71wBlMHpN1Y4b3d8hh2hf31dCu /es/languages/dockerfile.min.js
|
||||||
|
sha384-dGlJAOeF9W4Zdwt+V59AzWs+kT86GVgVxG2SldMZcNwThPSzc0Gtx6LekCH0t7es /es/languages/dos.js
|
||||||
|
sha384-GClxwhFSWyi58TL/Eu6ftCf/fsQtTyZrpLN+GhdaCqGnY46u9ECXsGFk0aRbD3hP /es/languages/dos.min.js
|
||||||
|
sha384-GqZqtbpWFWVmdKIFq+dypg6TLugbGe0F5kegnREhdNHPd6kZ4akNq9W4xJ5peE6o /es/languages/dsconfig.js
|
||||||
|
sha384-crsqi4l7RdxidD6oicLW9AEb0v0F9FgySo2wRxI7rUi9uqhrox+vjtEsUsLmjnEI /es/languages/dsconfig.min.js
|
||||||
|
sha384-RdvptjpWZJxkDrlrMAX1DeTgVWPL/9xjt5rToE+imfpnCquDB9etwLSgTeFFI9CN /es/languages/dts.js
|
||||||
|
sha384-K7yTU5VogT3E6tM+jSReX8uP5cDu3I6pWb9/aXFlCDObz0+wFjKaWjc5vUaBW6oU /es/languages/dts.min.js
|
||||||
|
sha384-QQAURm18bnBqSFpDSmRuz8bzw46NgrYYBoZMIfNaDI1T3a4BaWVQHNbxIOiehc/h /es/languages/dust.js
|
||||||
|
sha384-O4VN4oc9WRqTnhATTkN5YHdqGbSyzkB3KqOG/LsLKp2uQi9e8l10XT2pm3L4MNWy /es/languages/dust.min.js
|
||||||
|
sha384-shXrwieu5ai9YtuhcQHaKKsevtNwVuGb4feBZwLL0OrWxFkhG3/C8wA59pn5SeDF /es/languages/ebnf.js
|
||||||
|
sha384-QVixKXA4tPisshbP4uNyLPdjm9n9p0/UX26/y6Qi5do5oJq2TiyTYLJuNXVqbUz/ /es/languages/ebnf.min.js
|
||||||
|
sha384-Hfuhh3x1RbPa4rYfRTTtChzwKTFkCahs/ca9HsVOoDNlnp6A7Jw6l4y+QK0XuYsl /es/languages/elixir.js
|
||||||
|
sha384-/ISckXQDi5ORypxVU6Y3Zn9KkfUR+EzDTSsm72jsrhN2QHNZyfwtooynB0AC/gHz /es/languages/elixir.min.js
|
||||||
|
sha384-jlafLOWPkoD3ouiDToF0FeYQMPAytZcseEXBE1e+tFkVKP/EyBwIjzzYM22/eUKi /es/languages/elm.js
|
||||||
|
sha384-9PbcWGZ+dZWjn+bcdkYqto9TsTQ9+oT7QhJXDbVNDqxtOG2s2yNX+nSo8Zc88EwA /es/languages/elm.min.js
|
||||||
|
sha384-IqKK0JzwUzwQ3avT5MJ2AciO4MNPB/LrdPFY/EBq73AYxjparLtQV9tl5nw9ibfe /es/languages/erb.js
|
||||||
|
sha384-QDkR9sKukFGwekCR3jkiiQCY4g9cQ0MAJLgPwPJoAqKz/VRtLef9Y6WxuGNRVh54 /es/languages/erb.min.js
|
||||||
|
sha384-OE+CvsowKJt5L9HBs/Im5HElarFI6C2S7L+Ar0BCr+UfH9L+/GUlfSglVZDpMYmn /es/languages/erlang.js
|
||||||
|
sha384-4XvKs9FWdMZFUIHDBodcg+dK+cMy0apR3a2FnYO21omft3i1Ucx++DDGbZRnXCZO /es/languages/erlang.min.js
|
||||||
|
sha384-6qOQj6fJzhfIslaXu+J5adsRpeJqDq5m+3R05fHLkvOgMRbdA6b5cCifh06p8x95 /es/languages/erlang-repl.js
|
||||||
|
sha384-ZIzdDBJKRIOwooTaa0407JhlTryNn9kxMsoAeKytMGPbsZsDerzYigA+ht+A6C6a /es/languages/erlang-repl.min.js
|
||||||
|
sha384-R0+GK/lkizVo8grKxYjl+obl3tvk43iOTFY58pPXObdF9JB7BB28jC/UKhZ7FTXO /es/languages/excel.js
|
||||||
|
sha384-PBfTDnXKYjfADHHbN2T7cmoiM0HI3MkM2+MczeGYiXBZE05RoSDZtGotmT/gm0gc /es/languages/excel.min.js
|
||||||
|
sha384-4xUhEnRn7qNc/ZHgLZM3H2cngy3FMpKxiuAxvq5fcdSkPWxU+LsbXDpsGo4PGtKt /es/languages/fix.js
|
||||||
|
sha384-zd6DV8PoDjE5VcuqShpnRa5BTGHpPW2QZW6Q9PwG1Zldb2tCKkeIIGAIztrs9Rkh /es/languages/fix.min.js
|
||||||
|
sha384-V6zIIIAymvRoFOmQcfoUWXb+EtfkYTsSw7Ot9o15HENVYbmc5RPh+ld3UuqdR6PI /es/languages/flix.js
|
||||||
|
sha384-YalUIgWEG8hsPt8z/fPqFxhZVrSnWpQO6mtVwkG5olnf6laeHt0fknWDfZuGiAUN /es/languages/flix.min.js
|
||||||
|
sha384-QhpRZLeHeNpi6mc0tQD8EPA3ngl6rRNrRFIP2L/+5xw4CAsB6i4XfsybfFBrgSBa /es/languages/fortran.js
|
||||||
|
sha384-A3+PvZy70E3+xm6wPPF7V67hbjr+poCeuK2CMSUJmhZcFvszluhlVveb2P7VCDBJ /es/languages/fortran.min.js
|
||||||
|
sha384-aZFRn/Hm8ROw+lhlW27ooQmdFTlb4vAzQRAvy0inR5M9WY2Ev0b+qxf5rlEAOOP+ /es/languages/fsharp.js
|
||||||
|
sha384-cFMVFv2j0WFmDOILSH3KABqXK8eMV1cRhgjAcQXuWbMQZXvFPJxtftyUx89oi0sZ /es/languages/fsharp.min.js
|
||||||
|
sha384-9AB1aSYPsresDI8dyjbtc+psdOIQ80Tx0uRQoP/CSCkboByfG8++p4W7PpQPYgB2 /es/languages/gams.js
|
||||||
|
sha384-uP0FJmKDMLeO97OswzEXwNfGic0W5BoctCIM6By7Qd4D6vxmB+2+WBDRwA82nMFf /es/languages/gams.min.js
|
||||||
|
sha384-V/qEtX6QOckclp1vxZYDp9Z4tGAAkMGbNmSgM46s925zdr4+qOTY7sRXq9M4r+76 /es/languages/gauss.js
|
||||||
|
sha384-i5vaYwafSNo5IdCPruLAzqJVisDe416NcgM6+nZn19Vl1mddKc67VO+IBPLl0z/Z /es/languages/gauss.min.js
|
||||||
|
sha384-mefVVkSm6I+QTBap6lx3uflTRWlDcLsXEJNbkS3nSBtNHXdybb3vVikWJuSY9R4T /es/languages/gcode.js
|
||||||
|
sha384-87y9y1xgycUkKd18av/nU/+HFKjbSYwl+bVSqKGBKm+DXXSkowVZMhI9MIHHLugR /es/languages/gcode.min.js
|
||||||
|
sha384-9rvCQCZPZRIaRFZdWf8FBsdCv6QLRO1k9HfTy5D14uuOKIoifVuB4Uwu2vEpg6HT /es/languages/gherkin.js
|
||||||
|
sha384-3/4yfMv3zLjkiAH+ll0aNmDon3BL3/WHXQfsdVCZ0ypKndcTIvkIqnGBYDBO1Dzp /es/languages/gherkin.min.js
|
||||||
|
sha384-HSr+TD3IkBbR0oASHT5rysX8q2MUc+g5O7+hCWJn5YqXZo0FxtlZ8tVzS10o5zjW /es/languages/glsl.js
|
||||||
|
sha384-BAQNawDeoCUPCZWWabbjBwXCREsauI9uBgfmsygn0IxSgWsk3mnYN0rssUPupU4s /es/languages/glsl.min.js
|
||||||
|
sha384-gnX06Cz27QybrQCVpwLTDWci/efwhESO5BHE14yR2u1FI6wzwpCqLxzWk4JHlLbM /es/languages/gml.js
|
||||||
|
sha384-NLCQJcSNjba6pkZamXE5jwoHla3w/yqEOqVPG65LahN0IIVT77xBm6336aXLACrb /es/languages/gml.min.js
|
||||||
|
sha384-y5tpDG/EgM93k2unGm4XFn8l9V12Ru1tnk2TxhduZWqrEqAK86BQlDLuVAILe3OB /es/languages/go.js
|
||||||
|
sha384-/UGh0AcfdC41Di2LsNVYCPOJ24RfaUWWXniaZoGuM52DaQR7fwStKAHJumI+u5yY /es/languages/go.min.js
|
||||||
|
sha384-DoTnhTVm+m4Mt3aNXQ0vSf8W/KZIQgveRyu/P40FAuUTOcqf1oKCYmc1pNLDoLUj /es/languages/golo.js
|
||||||
|
sha384-lkFxRED+79+AKxnsztHuXVJjpvwjJALdq5nkp6ZX3bUgdATN9y6J+p+b+fSYSmkP /es/languages/golo.min.js
|
||||||
|
sha384-4KHgeVApl7jyaii3nRNIPEXOue+bFJle0RIjcm9E3kTztsYswLXnqwWffaY3efyN /es/languages/gradle.js
|
||||||
|
sha384-oyVD4OXJqCzAuLvR01l8RW90iC0xtJ5/qMUM8wVgDWv5Tz9AAimez46a93CdRXcE /es/languages/gradle.min.js
|
||||||
|
sha384-opjEyp4yq3g7Bxr5w5ZcG0+fTUsnOc798DWlLPzWPFIV+qGmKGkzzZIAr3822+oQ /es/languages/graphql.js
|
||||||
|
sha384-ycqZEp/d+8Lmf+CQrUvmfgcQkd5TJPU36i1WFGNiK18rlap/VJSTcPfSj/ft5Faf /es/languages/graphql.min.js
|
||||||
|
sha384-P681y6lFdceG8opaOgHzcrY89tFgopRRFkZPTMv9ZEJN2+Udf3kvJdExEDWN2qSB /es/languages/groovy.js
|
||||||
|
sha384-eZ//tCVwtbperfgzjozR7tIfO8yR+hUoOZANaZnbxvLmMwpN/HzbQxAx3c8BuHks /es/languages/groovy.min.js
|
||||||
|
sha384-B3mXKfxCQMNXEhYhYWJby23X4b11NZR1D9vAsB5l1QZkSn8GCwTuIXGud5E74tpt /es/languages/haml.js
|
||||||
|
sha384-Xzi2eJDDOEBR7RxJQzJEnSDCYC2BexeUTC3ym8Vcvkv9Yie5Ci6lohBxIPRU8GJm /es/languages/haml.min.js
|
||||||
|
sha384-lS8MhjpHUEvvJJlp7/yqS1D8YriG6je8y2ueR0p7aFbdKIjrS/zzUWa8myxfiSB3 /es/languages/handlebars.js
|
||||||
|
sha384-Y3QRR1LoAMi3J7E26nRUoSLKhp1J85o9+C5V2bbNZzIxjxkpQSeaH9dIUfCfqWsJ /es/languages/handlebars.min.js
|
||||||
|
sha384-7Px6aOI1M+XCQlR1KDWuNrrFgRbLVtWchPI1dev+c5vNpqRV6TD1N++pG4FVsEGH /es/languages/haskell.js
|
||||||
|
sha384-sBE/3VGVCFFj0nSxyEPZmpYOSPN/4g8vLcp/k2RJ6qhYwNvywnQM3P926c2LpKGz /es/languages/haskell.min.js
|
||||||
|
sha384-BFIdgHCjGW6hsbkDxwiWENSh3w4FbOCL1GQ+mot2VNyx6FhElz4VBkB3Mzh2cRdi /es/languages/haxe.js
|
||||||
|
sha384-GqfisVO1wjcEY5u2cu84aSOfDjBDkxJ+eUrNLLOlOv5/DE5BUMtoucazkLKc33Kp /es/languages/haxe.min.js
|
||||||
|
sha384-8wJeVJKLaVRZ+xhnSAL7I65LjmL47yo9WqVSv4XJyF9nUyCJQ9JvJ8rFJ0TRn7/9 /es/languages/hsp.js
|
||||||
|
sha384-xx1j8j6bchgaZE8CGBXi1RY4Ac5DHGissk8WNx5dFWvHaiR+JDT3So3Ec0O7FXcO /es/languages/hsp.min.js
|
||||||
|
sha384-uC39e4pRTIrenlpo9NQf2taOPhdRJNaZLFASSg+Q8BLjYqLXvxL8brjzQmJEQ0qn /es/languages/http.js
|
||||||
|
sha384-36ZwsK42N/jk3DquJeJr/r/oziBOtUxBcg0ZdTaaEDX+Zo/UMgBP4S2Sf4NEyq1y /es/languages/http.min.js
|
||||||
|
sha384-XaHFYRjk2LLUbJeuHV3EHO4ZWJ/S0AvigFZ9prUQWdt9zSq1MgCQDDVBE+Oi+/y5 /es/languages/hy.js
|
||||||
|
sha384-TOHxEWol49daRSqqVHC8wf1eHmSlRydKTVrPUDO7NvFTojs079H+wYoueSvlMQqS /es/languages/hy.min.js
|
||||||
|
sha384-L+NkjqD6zXtusIq8/mAXAGaK4SR/eYP7Msi/PeFV2qyocElnawIhMsxPjlQJXACj /es/languages/inform7.js
|
||||||
|
sha384-s7eptwG5YHTKDlhdwkEs8yADrpfilzo070AobA0MOprICKVooqeF8eBRbhLuIr4I /es/languages/inform7.min.js
|
||||||
|
sha384-vZWLk+C+23/W/GAmv4PXkZSZo82LXul6DdSgWcMzutPxGltitIk38HyLrxRVsFvm /es/languages/ini.js
|
||||||
|
sha384-CVynu7LzwkkAUiajSi0jprssYhgg9Vi1WSd8iR84Vmi6JdRGq3DT4vvEfjzoxxOK /es/languages/ini.min.js
|
||||||
|
sha384-DEIxhG64sR+6Z42uI/D1qyChanRNN2BmPdY4FX//WboLT+lywWKAY/Rdfhnjboj5 /es/languages/irpf90.js
|
||||||
|
sha384-NMbxy0oxetMo/s0Hp2ueL1eMnwuhIDIVbPlNIaQ3Xu88Wnqgy17MCaHPF4cWz5BF /es/languages/irpf90.min.js
|
||||||
|
sha384-TtAOemqFXmK107Sh7s6TuBUDbDg3KDcDJCf7R8gXVUZ+424tDyygRk7MIlykjDWf /es/languages/isbl.js
|
||||||
|
sha384-Fa4dEuFJMVMiJLe34/RRfeWNlYAyUg003BDlRCiV4ghe9wtJt/gbqgLIylm5C3xI /es/languages/isbl.min.js
|
||||||
|
sha384-lk+aAr+DNq8Rz3hXPSZ7ga38GS+tQfXDvexuUnyDCSju1t1SAsLipVIFGlRtcUjE /es/languages/java.js
|
||||||
|
sha384-5GpB6kfA2w03pZhAUmmNSYvR5pLvne/Rzqc22BmHv+t9ES7ifMX/ZE7x5TBeqW4d /es/languages/java.min.js
|
||||||
|
sha384-g7t9fKR5Tvod4iWv7BQXN+/JMn5GT9sD6FG3h7Fgl+KCv5k4NnnCzEqUe7BMJ9Mv /es/languages/javascript.js
|
||||||
|
sha384-f7huPivS1dV2T5V+g0aJpgsY7WBHWCsioIq30tpNoXGizD65fWJYGuXXVPNI52VB /es/languages/javascript.min.js
|
||||||
|
sha384-8CPWZxOnAso0ouSbSFnyhY7ibn8ApaI8a18uroiswlewY/QHKsx8n+yFwooe1cJA /es/languages/jboss-cli.js
|
||||||
|
sha384-AhwX6wPgJvIesTeqTwda/SmEe928MxabuP2v2HzBaZIlsu6usQWYUrlgyc30Arck /es/languages/jboss-cli.min.js
|
||||||
|
sha384-8CRS96Xb/ZkZlQU+5ffA03XTN6/xY40QAnsXKB0Y+ow1vza1LAkRNPSrZqGSNo53 /es/languages/json.js
|
||||||
|
sha384-UHzaYxI/rAo84TEK3WlG15gVfPk49XKax76Ccn9qPWYbUxePCEHxjGkV+xp9HcS/ /es/languages/json.min.js
|
||||||
|
sha384-WkwhJRR0pnvqvYK+74NZohsS2O335fjufWVMJKMXDdkvTmXVuyX9CLOjNhgEpVpp /es/languages/julia.js
|
||||||
|
sha384-0J89NWtdtzjPKQxZ2inCaOGusyGoKh2PjP/THsEDiWT9m+4jEJh9RRN1ajClNDy1 /es/languages/julia.min.js
|
||||||
|
sha384-aLXCPH6Vs3XZhnLRKsZebe3HshIwe4ikZ9c+D1j29UtcE2VIQicEJbAbEFYE3oe/ /es/languages/julia-repl.js
|
||||||
|
sha384-SYUm03vAGaCM27+4zps/g05YWHfdZdLurbeSG9cX8rvA91YG+46oCmvHq0sUdqZ1 /es/languages/julia-repl.min.js
|
||||||
|
sha384-74O59Gvm0duu3aXH7S8RHhqn8YvAF1JlgCdNDq5MaClY/f/0bMs4zryv55Whwp2c /es/languages/kotlin.js
|
||||||
|
sha384-+aJFpyNBGTRiXRDN6BLrctauQBKExwSosxOiHLUYReXKTsckW/RgMavqX6W+zTBL /es/languages/kotlin.min.js
|
||||||
|
sha384-RoczYftMAj6dXp/kiTyyVx4xIFG5bYUT/Yb5GLJID9jjOzm99WZzYKGVvNWCSRAR /es/languages/lasso.js
|
||||||
|
sha384-4s2aahhd5CfrdDtAjQdSQk9y+ANaqNB1wJKGI3vrv5lV/UzPDq5d6RyRl11X6co8 /es/languages/lasso.min.js
|
||||||
|
sha384-Ap4gnRYGNAeKXru7neutEvzrhsYnnP1suT5zxW2zdmv6rCl43QzqqLEJ1F3kZWWm /es/languages/latex.js
|
||||||
|
sha384-bx4oC5pPCnrSzdPzDg3L9UsoJWiptFFwoGWKup6bRk82EzPFrquQa7T7I9iDwnXa /es/languages/latex.min.js
|
||||||
|
sha384-mjou3A96thIeMjOhs9ipgPi/DXdyoKXQAb7DV1ppU9Azry6a3BdZRMN8m2uXX44r /es/languages/ldif.js
|
||||||
|
sha384-4TkjXWP4NhAgslZmqHc2Md4mEWtfJdqhZX6plhejzXyA5TfsbcPwqF9jhlPPzKWv /es/languages/ldif.min.js
|
||||||
|
sha384-qMvkVU9g/1kBDYh90XhvHCo7FLMTPOVr/8DS2vJ1NQSkJSeL0BCx1opXlq3Dxb69 /es/languages/leaf.js
|
||||||
|
sha384-uHEfPpK2dquHTCzJ6+8r4dVRRYtgoPCuOpSSrNeHml8EZKzMo9jMZgqAJe/zh3Be /es/languages/leaf.min.js
|
||||||
|
sha384-LRBDaxnf3ea3MTosn2yHFNe+ECfow/i4s71k6UdzkNOS1QvgHkcqRBTkDZC5aEoP /es/languages/less.js
|
||||||
|
sha384-EJ7n9HlCUKgtcBomJlrocJe2M2WegUc2r/TqymQdykuxcLeA25bQ5665qN58BWki /es/languages/less.min.js
|
||||||
|
sha384-GSGd4G9IDg7LPIIpfZuqfVsqOxYND9rvc1BKkv4xJMPe7RWeLauvfOga8hJ2Cw00 /es/languages/lisp.js
|
||||||
|
sha384-kB1QfFMBwbQxnyNzZiWt6/rlLEODkTklgd4NfbEHc/8TYL6oV83o+Yydz8ZIx3Ie /es/languages/lisp.min.js
|
||||||
|
sha384-csl2i0b0AwYlb7RtGstHkX8B0kNVY6P6CJiMGXI638t7ETtmtpd68TjgZlpCv3WI /es/languages/livecodeserver.js
|
||||||
|
sha384-hHqqmua3IKhF6fr0H/xdaEufzkmqdtcmKuJXyV/xFUVBluA2gHk2A6+mM0RaOgRO /es/languages/livecodeserver.min.js
|
||||||
|
sha384-GK+nEo6txnrWEAHRF13fU3TkHoZezIuZftOTxajGn+o31RVlJZcOP//XgNfACcnP /es/languages/livescript.js
|
||||||
|
sha384-vdVWblWyllqkopZzYcac6J7ynMUPiRdBDRGRezI2Ez7SE3xQUxjhPGs4lL2k4isR /es/languages/livescript.min.js
|
||||||
|
sha384-G8Zl3te56ft3aGpe25uWefXidaWzErZNty1FuVVPzapgLdI9KGeqi440JMcGSrpK /es/languages/llvm.js
|
||||||
|
sha384-5/rMDjrvVizUEgvQXzdMw4bEnPi4rc4g55j6uygbCX563PiwUWOt1DOFg8nWOW4k /es/languages/llvm.min.js
|
||||||
|
sha384-+sZ29BJAEdQdA+Yz/09/lo6JevscA7kAWlmgGxcz0aUxYFApmea8trADEdVZx6EY /es/languages/lsl.js
|
||||||
|
sha384-1xa9vv3zbhKwAl+NlUd9gxmVMfg/tqSSkKLXgNrYpceYw6D3qboeyUbdR5FRiDh/ /es/languages/lsl.min.js
|
||||||
|
sha384-5TnIBSbRIGDilxscXgaTNLZ8PZ9u7TEBPzF8b9z+wrbTN3e89MbD9zSSuDVdbDFj /es/languages/lua.js
|
||||||
|
sha384-HCBq0pjgKyOc3FNX31to33MxfNYza3HCbHLfWwdsnkH5r/VmmXTlRrvWSHTJyYvA /es/languages/lua.min.js
|
||||||
|
sha384-gXOyhc1mLm8alPswShRUsxnBadQf2AOcdpmFVqkKSZBNS07kTOHb3DDepD3Rf9eH /es/languages/makefile.js
|
||||||
|
sha384-iagI2W32nmVJq2EVd59zlgz2bFjR/MC0JRsbcFaeZL2gmvHzzOeyRTpTKGBSKd7q /es/languages/makefile.min.js
|
||||||
|
sha384-+KkqXkoHKtuOmUzhZ0BjyV0qjljnS+z6i4fELMEg5brFPtmDIog4zZMhylaBTsVi /es/languages/markdown.js
|
||||||
|
sha384-E7UvgBH6skA1FIOcn3B2c68GtJzrmZlOOC5p/fsxwihTZG/bBedJZu5PC1+kGX7q /es/languages/markdown.min.js
|
||||||
|
sha384-FEDx4j8b0w8PZYSgOHx7ri0VswVyBFJKmnbMEUOVYY37i0PNrOuWE1A7t0CJZnzk /es/languages/mathematica.js
|
||||||
|
sha384-s9OhOZLci2dao+WT5xmnxIgAID9YQRqb/zWb9UoLnO6p41wXb2/0HlhB3pgXFk+A /es/languages/mathematica.min.js
|
||||||
|
sha384-2P4mzPjIYmPuF0LdW1jpx1VKc6cx2l3smcGqNNHRj2jIvGGsiAUGklcbWkDt10Hh /es/languages/matlab.js
|
||||||
|
sha384-1V+EHXAHVnBm9cEy3kpZDOO8LI9tOkHylYgT6gQdG5QRJVA8lIlLt/eQqfhiEPnr /es/languages/matlab.min.js
|
||||||
|
sha384-92ve6SOIFmKXUO28PPdS8lbKnQzig4PkIpSZNXlSJCJN63fjl3biS/sGKHWQ+Ar3 /es/languages/maxima.js
|
||||||
|
sha384-sS5Jp8d7Oj/yN+7MLDle3A1s1EMTAj5xEZY4JPEQEJHfeVJuYUbU6Cw36Bvtzbt2 /es/languages/maxima.min.js
|
||||||
|
sha384-uvuPNKVciZqhMVdk77Oh03pG6ZNVts8VcagenjstpUYHmpcSRZf6Zd1eTIMiYeOM /es/languages/mel.js
|
||||||
|
sha384-8HxIo9fQM7BlSbzN3UCuag0q/jYrHWniTSmrjQoSxRScXQE9irV0zqOijN0PSlQs /es/languages/mel.min.js
|
||||||
|
sha384-D3DS/CP9qyDAFvw3JStWK0oyyt9k1j3od3TMpFdU7a4NDwYeznBoqFECJUVeW4sj /es/languages/mercury.js
|
||||||
|
sha384-F/Rc/u9CQvWQQDzZGuk5gcrErmpRpx8M/LEPQR5vWjlwwpvHAYcFz2o26jikU46u /es/languages/mercury.min.js
|
||||||
|
sha384-y2Db3nK1pqkBuLVsLlozVsu9r7X0O+m0WMXIj5SIsuz9E5KgJpuaybwueJksi/62 /es/languages/mipsasm.js
|
||||||
|
sha384-KMMe6+QkGQP4DfvJsD56GpZJP/8yXSPru/9XyyyjWUcsMpLDC/244yr6u7v+xkRP /es/languages/mipsasm.min.js
|
||||||
|
sha384-ZLjAqH9f9kctUa8ER9W333BTKS5ToUcg/hLxQ42eoO957xU4UByZSCovS/6W+Wcd /es/languages/mizar.js
|
||||||
|
sha384-9AY/AWfeKuHfvubXxe0Ot+R/MUm6y4dIxtA9Y2VK4I62psmPT3SP7vbPjxELdgtg /es/languages/mizar.min.js
|
||||||
|
sha384-XHiNf+1CpauDBi7ShWIYwWZ8AwIRtGTavArxewwzD5ZQdpIsy1ZRFsDIAJ7eugUv /es/languages/mojolicious.js
|
||||||
|
sha384-SiTWKuB6c62R7pZmf1gcAZx7UmTcvAiPYKz27E9fApJ1IVJsEiCWbcTPrsvX44pJ /es/languages/mojolicious.min.js
|
||||||
|
sha384-qRxecM2tgz/QnILc+QeiIbItfamN2qFdCBmZ0bwbzpJSBLgek8e7aWB0tjY1MIPZ /es/languages/monkey.js
|
||||||
|
sha384-5U/riLzJaveAAWNalVhH16Qlt1uKWO9OTfnszGIMB/r+3fNv738ALG9Bjt1b0g6v /es/languages/monkey.min.js
|
||||||
|
sha384-geapAb2UQH0bUQa1+vICVLpAl0lczx/KUc/5uwg4CDXf29B4RWVYHqGczQ5mCBDX /es/languages/moonscript.js
|
||||||
|
sha384-Xlyoa/4VWa+WAEFkJuwHtq28Xuq7bHs2f/Mnqa27PCLo23/gBCUbpUCmlSg4BxZo /es/languages/moonscript.min.js
|
||||||
|
sha384-1B2F0Bn4x6X9G/cK9xLefa90WYd/5XpjCqWhceH611HKssRnWOSMi9QEeOCfdnvU /es/languages/n1ql.js
|
||||||
|
sha384-5iOnbrV6Vi7t9z/zZ3TOREhBYMR8voH0P4M3kBhRvaeJ1IS4GUkf6WJ1NHcaFy1N /es/languages/n1ql.min.js
|
||||||
|
sha384-nX6U7dsHAva392x5DapMi9+cN+HkIXwDF/cO5tDOXi3sYd7lBTlwr6t6SISSh0P5 /es/languages/nestedtext.js
|
||||||
|
sha384-UHOC4FnNC/8bTChrsBexWVswrBnwU7nJluAaWhDvmaXphc+DKVcVjS6cQdOai4Tg /es/languages/nestedtext.min.js
|
||||||
|
sha384-V1naTapX08eXbOlk/ff334/j1cqIcSKIL8iFF7fabEzwo0662EJWXaMPDMMdyXZ/ /es/languages/nginx.js
|
||||||
|
sha384-7QaPTK4CkHm5HP+HbJ7BwALXSAvCln1ofcgr0Myla2I3O6cU/pupqPnajKmyy03P /es/languages/nginx.min.js
|
||||||
|
sha384-yT0oSi8e4Mbw69TJZylrQRMF5jd10eNr/aUE+FvHlKQcR3DH5LhECTGNvDA+4kUT /es/languages/nim.js
|
||||||
|
sha384-+wur+fHnc0LByCvO+YsWdEdTk+XsCzUK5xGmRsE9yKdr+tIVNP5FMCAjR3EVK94a /es/languages/nim.min.js
|
||||||
|
sha384-e52eFo97cDL5ofCao3fbJj8GQs7stgPZECbKjCc8ndBQjiYNK5PnfwZjWkiXWyzH /es/languages/nix.js
|
||||||
|
sha384-sHiwn92elWF7g0yS0TFr/A4SdK4j+sI7xZMoPlVn2DCR/6nBNyt+zCNVVcZvW4yB /es/languages/nix.min.js
|
||||||
|
sha384-Ii+r/YSnAG0bohSXpsJIc9ucVduSohgb2S2uX7fia6XLYSr539B6pyP8UjZdg6F6 /es/languages/node-repl.js
|
||||||
|
sha384-DsfLkjXZZJdYYLjhxkRPvZcXjK9FKPE3Z8Rg9mX7sdt+H3lr8xQn/yp3ESn+3JD6 /es/languages/node-repl.min.js
|
||||||
|
sha384-1rJPuU4en/Nd8ejYA1XVxo7RGu6xFTvkbaeeyfQyzMAll2gewJgaR4TgeNWwoCs+ /es/languages/nsis.js
|
||||||
|
sha384-xtCTpi4/d+FMxicqc3TLWv7AHZnIrRlzx1V/J9HGyTo+cOiu+DiV1xVbf+nPNNX0 /es/languages/nsis.min.js
|
||||||
|
sha384-JoTXwNHosdzUqxg9EepqeL0yHV98o2Fy7EwTtN9awR+5d8T1EQRXmpdHjpRjxkUM /es/languages/objectivec.js
|
||||||
|
sha384-IA3s+KMOVf9zn8hH1+u4PCkGcunD2O3mNj4y10RDG/Wq7Gs7QWgiH6o01bjXeU1b /es/languages/objectivec.min.js
|
||||||
|
sha384-gPjhD9B3eKMKoi+i3tYG1UcMUivCp9B5pM+altrGmMCGtc/1044OoB91n3AHDce4 /es/languages/ocaml.js
|
||||||
|
sha384-K1wF0NzhmShaNd0mazLwrxnm0VT2wtNGclvFeDfuYRMM1g92YApMTm+Zknp7Jt+C /es/languages/ocaml.min.js
|
||||||
|
sha384-dat6qNu20cZlxvYZOQFFU49orG6zh+gKdxHpEiJpQHtUpliVyCYjmBQ7los4rhrP /es/languages/openscad.js
|
||||||
|
sha384-i0I/GeD7Vmnr3ZHTheUZzjgT4G6zCKe29laq2JR3wMpAdg+OJEa/MPvToBYgesI/ /es/languages/openscad.min.js
|
||||||
|
sha384-NB59fhznV5cU7EWeS5zqCBdKAgMpuUVmH8AAL1wYwTCN7s/k/Pe2tfzvRoIkCZQu /es/languages/oxygene.js
|
||||||
|
sha384-RSz4nhHzUvfa7VZMlKCLhhmRHnCOI94hpLU22wroAbDo6ej8lyXvpoMaVy9Bu/BD /es/languages/oxygene.min.js
|
||||||
|
sha384-f1t6msymz5C+wsBetxDN+1+pW346D2kN4PX6e8cDLv5P2XoG25NNBqUTa4z8Fb+g /es/languages/parser3.js
|
||||||
|
sha384-gEELuSKto/9yXfeeDtjld9wLeOXsB6dIqpR+3iWxs46sa1mrBTRYRtaFEYuJGoRo /es/languages/parser3.min.js
|
||||||
|
sha384-uat5CiOqKMoJM3KrhuhZShpWQriLSdeaJ4oT6XQFBg3YWhVDiofp4wa0SnBcV8LQ /es/languages/perl.js
|
||||||
|
sha384-doJqxKOhDf9Q9JYEBQXrTguSjzwPrbLiXJP2kdBkF+BYRNP55btwz9iH4b95mUTH /es/languages/perl.min.js
|
||||||
|
sha384-lS9gdvq5WaQa7fKf3iRMq39z5la526SJvBIYzz1wme3jyTs6FWnO9C6YI7wMZxFm /es/languages/pf.js
|
||||||
|
sha384-bdNrhp/ANH5uQIZkLVgL+9WTzgGuL+KCTP0C1J9fjTyV/SHVt3MJWtHj8yT6yOT3 /es/languages/pf.min.js
|
||||||
|
sha384-h5xac5UEvgYjdWtd9ajSAtkfHjGTrsb+AfrzOpoAbNLkYaPqOdY1YAb459pAkdhB /es/languages/pgsql.js
|
||||||
|
sha384-e9t/475eGSjNyO/O9vfEZHxdm21L6W2ZNlupK8+ejvTDnKDq96GjpdXw0z8/P++J /es/languages/pgsql.min.js
|
||||||
|
sha384-4OPZSHQbxzPqFMOXnndxQ6TZTI/B+J4W9aqTCHxAx/dsPS6GG25kT7wdsf66jJ1M /es/languages/php.js
|
||||||
|
sha384-VxmvZ2mUpp1EzFijS40RFvIc7vbv/d5PhMxVFG/3HMpVKD4sVvhdV9LThrJDiw9e /es/languages/php.min.js
|
||||||
|
sha384-Qin+c4lNK1aBTVV9uViy9uCeqaw3milnNPTq/TTWClWsc7ZBMi3kDc4d702bPhbf /es/languages/php-template.js
|
||||||
|
sha384-/Btu11Y1N5hp8EDB6nZJCif5GWMrSC/bYMh0Re/SH64ZoH2qZRHUtqv1SFRPbNdM /es/languages/php-template.min.js
|
||||||
|
sha384-i6sPjmXfHWLljAXTYYk0vBOwgsUnUKnKXKH41qzc9OMhaf5AFZqXH7azX4SYdUiR /es/languages/plaintext.js
|
||||||
|
sha384-OOrQLW97d+/1orj9gjftwbbQyV8LNAcgagqVKBhUYA08Hdi5w0p6VoB3yt2k7gnG /es/languages/plaintext.min.js
|
||||||
|
sha384-sJj9d62BeOn3cgjNUDFnesCYNyBzSSIYVQb4iA2GcpsJbhGPCrKIEN5Zc7G33L93 /es/languages/pony.js
|
||||||
|
sha384-7CvpdzhT3uZ5e8CYIfKANJE9bteQcSnZs6GFKag0gu2ff6PB5zzFvBLOucbevfH8 /es/languages/pony.min.js
|
||||||
|
sha384-R7N9ng1N/Cb7RLskF1tB8AWD6kKnUs3LXqrJTj0aTGGXswS2sWq/XFUWPpEKSxqu /es/languages/powershell.js
|
||||||
|
sha384-GZl3J+HUi40wO5QngTvTpHXB0M2gGDnn9E/MyHRRS4VEWDNCS96bODclYTX3/JId /es/languages/powershell.min.js
|
||||||
|
sha384-NPp00hHMartEVrNgEGNC43choUCZM/bJKemhn+6ez+cRwigBm3SN8cpbiDjnf10Z /es/languages/processing.js
|
||||||
|
sha384-FqTgfPEhiViMyKFbGpQqWEXPwIdKavGdohBylA1Wadm7R55wj+CK3ywF/i99S12F /es/languages/processing.min.js
|
||||||
|
sha384-g1jITk5T0tUpXauaaQHvQGddBbVHkrWeeW8YYYTSy4QO65dflXTyB3ca6L7iF0nm /es/languages/profile.js
|
||||||
|
sha384-S1A1vOtq6uyFE7CdDMCgOh+QJUJNANVAE57nc0h83JuLf/KKnXV6DG5xYN9YeSGo /es/languages/profile.min.js
|
||||||
|
sha384-438VvREiNgglTDpNRSy9a7XNruw6H3AnLjjX+9uSmeU0fV4ctLxA185FIHO3dmKA /es/languages/prolog.js
|
||||||
|
sha384-+4Gum6EgKQF+lIr6Kwgooj3H1iGUPni2Dt1Nw82217y7ukdLBABEKkRebOfh58iO /es/languages/prolog.min.js
|
||||||
|
sha384-6ziOLhWWyCEJ+Ho7frmiIJ+W0ZbVi6s9RxHsd1eF5DuGk117NZLm1mrWubXPjwhn /es/languages/properties.js
|
||||||
|
sha384-/jY3EnpQIhHPBJqje2gBbmlolzDCUfluYNls4EgMz6K8V1eGkYfd1EJBM0tepwl0 /es/languages/properties.min.js
|
||||||
|
sha384-xQzMqANefDEXaHryNxgpG6EGwOHlOmpMcu2XchrFwFI7Vx1XybxebV9PkksMbkJE /es/languages/protobuf.js
|
||||||
|
sha384-TLEjnB/5SQ3m7Vyn2l8PAHrw3XEapQeXk3i2z9nmdjsjoEj7TZ80bdAbhVRXS9Oa /es/languages/protobuf.min.js
|
||||||
|
sha384-u+MTmTVAaTh80p8KqK/40adBzVQggUwUCLOqLFPd2pqUQDPRpY1h7MvqyTnuZIyq /es/languages/puppet.js
|
||||||
|
sha384-cnQI2r99QCtySILFW0UrIc7GsjgLgMqTA4DDvNXT8MIFv6R0FnIXgtvXZ4B9djD3 /es/languages/puppet.min.js
|
||||||
|
sha384-JwqONJpp5Yd13rWopZDuCICZgb8U9Qsw35MbMvHG+KeEtG+UqIS/w8Qmr9vQKZLh /es/languages/purebasic.js
|
||||||
|
sha384-JzVm9L5sHG1OkQUlukf6fAWc7lqxdgQxgrkHQAC3usU06D17VYQMbmG5pXeFHk39 /es/languages/purebasic.min.js
|
||||||
|
sha384-Cmq5lORXzyHraasLNqmfchH07JRXyEmjDF+j6tSggoXjYHwtgX/ySW6kkRytM5uu /es/languages/python.js
|
||||||
|
sha384-ZV5sgX70bBgLkDR5Mtox5UsbJedBc39hRKPdvTw6miK4lSkE/wv94cLY2iyZb/sB /es/languages/python.min.js
|
||||||
|
sha384-9jy7CI5TLYs91VYlZ4S0czQFpDsMzc9jakiJ5RqCFZugGpdPglP94JPAyEhMBwJp /es/languages/python-repl.js
|
||||||
|
sha384-CO+NiDedness48VlHW0FCIw9rQt8szFZ0IOXYiQo3LEAHLytXxM5NlKnmNYBUACQ /es/languages/python-repl.min.js
|
||||||
|
sha384-KwepEoS/e2BEfaLX+Y/DOtLbN4ipky086Cw0iTtD1jMyoLhAvHb+SIbpzbMIOyq1 /es/languages/q.js
|
||||||
|
sha384-3kYjpRu+I9WPa7JgdctnKgdzWP5dVkdMzFCUajkUvT8Tj/J5jzCgYywJKfxQixGP /es/languages/q.min.js
|
||||||
|
sha384-8WZ9dkzLsKFP2HUwlueaQIrid+LpnV6+26p7IJpJwlleymRqtHHuW98EN19NPkIC /es/languages/qml.js
|
||||||
|
sha384-q0gz/nlgzwxZWCJt0FETjTpy7edasOniV5Fpb199BRYO3fbF6lZwUrHp2QimGpJ7 /es/languages/qml.min.js
|
||||||
|
sha384-vAVurAb8AMWBKPHNWPze2lJa7m/as9wrF1wzH1FQKrJNNqiemBLJi3y6aGdyu5Zt /es/languages/r.js
|
||||||
|
sha384-WkipJgUBRzr12T7CtL8kF6QTuPHAl8f7Sx1YnmOm3KiVA/k3eDXfifuSvUW9M5nu /es/languages/r.min.js
|
||||||
|
sha384-QMwWMMCaQm79t6AlJ6hEOP+iV/N/pNVoTwQzHq94NWJB3O0qNb6g6BaQy9PQymmh /es/languages/reasonml.js
|
||||||
|
sha384-92LvADvD75pTTpftBNqDS5RSENaC8Vc2YkMwAZxQv7SIXBnBfyE5fGSe76jBOwDj /es/languages/reasonml.min.js
|
||||||
|
sha384-fZGVMhJiT2NyymNTvYwT8N06wW9gm85H/MOmGofC6plC7K7SL639JYZbxaD+XTjD /es/languages/rib.js
|
||||||
|
sha384-prjfJnxuqO34FF2Jbin9xg7fcUQ16dv1ZZsZtYjIPpRBCMR+NOYIZyBJ0TTkj6up /es/languages/rib.min.js
|
||||||
|
sha384-RsqbH8kCNQ1uYcUyQ9IIDm3QsavfWO8gi3koEwn8pvpViTsb+ctgMUm3iBVIlXx1 /es/languages/roboconf.js
|
||||||
|
sha384-UisNo6B6CbdbM8eSkJZ/sOhC3INCQRd2Aa9PYPbJS9orEbLoXrz5/L2ZVdkBYjBY /es/languages/roboconf.min.js
|
||||||
|
sha384-zgQaRxuPTFzaI8Ep/7twO50BfqcvtZshZ5DHOk5Gx/NugTUwzUrhF6qzmPvyL6+p /es/languages/routeros.js
|
||||||
|
sha384-lx4EyGnbY2/p5mdOwyYtZq1P3kDK+uYYXwIoOu/8CB4dXGAXRo0ey1d7lsK5CYd+ /es/languages/routeros.min.js
|
||||||
|
sha384-cSSd6hRXiySI5jIcGVslF/UtrCSHy7Na7Sbj7OzSoyTbDCN4Z79C89VxGdqBAhqd /es/languages/rsl.js
|
||||||
|
sha384-LAhUTqmuZcIsUL/alfYk56B/EDJ6hxPJ4qw40aI2VtDi6y9h6FoOkjO0hkiKXwR7 /es/languages/rsl.min.js
|
||||||
|
sha384-JOe8PF7ynaYxu7HI5O0NuVfXMMXYSJlCJqP4TYVNNq0eDKgm/N2dqcmqvp9QfIDu /es/languages/ruby.js
|
||||||
|
sha384-DpXpbYSP6sX4tcP61ZRjSMsnmF8V3c/hQILWjrGWI2g3lresYaqbxVxs+tioFMJn /es/languages/ruby.min.js
|
||||||
|
sha384-RIgggJCTaU+9uPbY13SmQLNxyu7CF/ZfIY8pU7VXlIeuRl0V074EwA/viaAZtFON /es/languages/ruleslanguage.js
|
||||||
|
sha384-B9GZ4yX1vKeK+p3cECY4LysW1JwkSl+v9tcTuWrN6uFTl57TxNZAxtNIDz2ZaB+r /es/languages/ruleslanguage.min.js
|
||||||
|
sha384-JFRCn12yvr0NDhxPY8oZDk/G2Tjm7bGmqXy28Y0bq4J7D8mKha6jQJOXMB5wtTVr /es/languages/rust.js
|
||||||
|
sha384-JbkB8w/DGGyx29PIwSq8c/ZeiJB9T/X4mVAZFEyBiNlEAas98Q2NxpBPUlNIlE71 /es/languages/rust.min.js
|
||||||
|
sha384-WvSYExpTBj+SndhQhJaikfSwWqkwJIHrgboUyLDNPLyNXRTaAzH2DOexIkEnL4XH /es/languages/sas.js
|
||||||
|
sha384-o1wXT68gljvlYb32XXeGTKoSMxzLH6idNrn14QDM6cCSLE+cSZ2rsHxWohlp94RV /es/languages/sas.min.js
|
||||||
|
sha384-OsS7w0xFmzWr42ljOilHoP3eOfKy+LMRGX0E9d4yO0bWnqjK9wJwoUnB/I9KhSqN /es/languages/scala.js
|
||||||
|
sha384-1RdooMJZXQ2dDH5g5l2Hng32v4pYdGIseVv35/avPgsDAK1vHoXOS4usBVRfGx7M /es/languages/scala.min.js
|
||||||
|
sha384-6Ldsd8A0BMRpsn4zCdNflgH6rQfBBohqRKii/9vJ97B8L8QO2DaAx2/mIkJ9ZoHX /es/languages/scheme.js
|
||||||
|
sha384-85l+nuYTwqCrz6ayLVJoKFDgWMnoLU5d9CkZueTjSVKsF4NVN/rTCMUX2eja75DE /es/languages/scheme.min.js
|
||||||
|
sha384-+kKxsJ3+HM2WYutdzMmctxgQt/PIQ81uY4hAOe5uHJJAnTHnlAliWc9Ar3V4DjjU /es/languages/scilab.js
|
||||||
|
sha384-ucErcciHIbGrvsgkJbgQnWsVw4ECUkEL2iVMQVEvDSAWN03wdzSfKY+BZDmaV03E /es/languages/scilab.min.js
|
||||||
|
sha384-R67rULqIohpEyV6aFbjxRv7xhK8v/KteX4cvOFmPcnZ2MTf65Zua+2DzB9MqqXuO /es/languages/scss.js
|
||||||
|
sha384-WMy5VYgOMFAnHhPJXVDCQ/Y/QPlUrBqNVPtFH6/gGg2F4uaAowyQ0y/9zWEeGpJe /es/languages/scss.min.js
|
||||||
|
sha384-1mmBZmAs44b6FtD9wpMiLJa8bLZgZv9xoAhngN6B5Q22y9CtcsU2lat0zlRtyVgy /es/languages/shell.js
|
||||||
|
sha384-u9PV7oWG/lZlm+GnftX7kn0w4b8rRfFxSv5SmJJPHWKGI03rz6VLqgZdQ1B5ez6b /es/languages/shell.min.js
|
||||||
|
sha384-PNujUMly7HbeO9305dfzt3Yey7Bs4cx8IxXK4YiBp3k7XF1fi10TzTOfiAkYJiKm /es/languages/smali.js
|
||||||
|
sha384-O0Inb820+EuZH82ASj7FVKYAmXRz+AzJ5zradHpgFEewAMxQ5xU85u2LjzhtQDho /es/languages/smali.min.js
|
||||||
|
sha384-mfAIY6zO0XSe6pTt+w5BSFr3/3YwmNbq9IAD1V0X+8CXjnzNKgniYeBFoOaRGeqg /es/languages/smalltalk.js
|
||||||
|
sha384-Z1UY7YWCZvtnfRfAmAfTHj9grARZMNCHeUsNQXEremgWKTp/xPLNWd9LjicW7N5Q /es/languages/smalltalk.min.js
|
||||||
|
sha384-K3bC1MFUO93+4xjAEu5dWM3K0ssmrPcYv/8uFT3j69WHS5Ff9q9vtHg238Bqm0NF /es/languages/sml.js
|
||||||
|
sha384-Swn4jjB/01DY9NpEJrtQxUzD+kUfzNnvZRHXcpgAiSpH4olKApMA+By4Z6Vj4AQS /es/languages/sml.min.js
|
||||||
|
sha384-jV8YKRcm+vHMfXh7Q/mTln8uZmihi/9zHYTPT2UxDl/4sK+fIaJGl9BInVS5zORF /es/languages/sqf.js
|
||||||
|
sha384-NxE+qqq3Ct3INUXh6gybGlkZxLzcnO4+v7jcNSLToh+jZwpOUTBF7MCvjq3RHtb0 /es/languages/sqf.min.js
|
||||||
|
sha384-s1ZfN6xtlNKAZux8QYAG7upUsit3RwK5XDoCAN3g6Kj33RrIqbmkuGjdNF9RvzPM /es/languages/sql.js
|
||||||
|
sha384-y25cn06synxhYnlKVprZdpakuFWVrm2jvn8pqiF4L85a05CI/6bNeT2+qXbUYIyW /es/languages/sql.min.js
|
||||||
|
sha384-0s1tzP9ecSOYJunECl7cSjG0oOMYAH8mWzpW3YMKSkmX3OQf0P0hgdJHTZeKzWx0 /es/languages/stan.js
|
||||||
|
sha384-c+PByV78Gx6rzMeQUAiFLkFI3yiikAvDXskx9wzUKzxtBj+wMMrXwF31PBpe5itr /es/languages/stan.min.js
|
||||||
|
sha384-EWAlECAhMwGoGhCkW/+HRLgvQzqse5YBF8RKQ7efxFFzkRZzZZ6GoK9T5QxKAyXl /es/languages/stata.js
|
||||||
|
sha384-SveD0lu+sQ19Pj1EvRLK8JWhE1sOkBl1BpxuxdicTBhleJ/q3iuIIBDXeXlpUnGP /es/languages/stata.min.js
|
||||||
|
sha384-Ev8GYJb4y5KwvaF5oOPuL+280um72EW+F50lL5h/7ktFCIlQjFF0c49ze1ptXsSR /es/languages/step21.js
|
||||||
|
sha384-lujkAJIAmNFOmFbG6hXIpB8XOTRSEHP4r6EWuC5BASjcBOTGTlfY/hli/X5ED0sH /es/languages/step21.min.js
|
||||||
|
sha384-BF4O9Uizh3Luijbjb9Spw3dAs3mwCL1iLB4BHaulwoadM/pSW77ifYZK5wbyGGQn /es/languages/stylus.js
|
||||||
|
sha384-uh4kSeG7zfeOKlocPsgg1BwvcZRX1O8AcBEmzJhxOSmKeHLdWFPbSmvU7hqGnPvP /es/languages/stylus.min.js
|
||||||
|
sha384-QTUTsjYoAu0tKTaGUrVwCz+RZEO6O5Z+i2r2RuPlrvPmbgYkZ30U7UO/5FuTier8 /es/languages/subunit.js
|
||||||
|
sha384-cfbjywWjE/0O5rl9IJHuYMuTqsDXall2g2UaSpbCTJ72sHn3ECsmryYQIsv4Co4D /es/languages/subunit.min.js
|
||||||
|
sha384-sfRYvVvcwsysqkDUscQ/SqsFOSvNGkGX5vm/yKMHdTwTd7A++Pqx1QpJK0bGebPD /es/languages/swift.js
|
||||||
|
sha384-9NAaCxdhTO7TX6fYeUHyt+NC3ledirZOADyWdinDCTN1taeqj8sLLYqjE8YMf4Na /es/languages/swift.min.js
|
||||||
|
sha384-tS3k5O7Y6iC+sLds/im6y43i+fHgFrRiDqymUb7sAeuah2I6eHWIYz66NDZEWbX5 /es/languages/taggerscript.js
|
||||||
|
sha384-PqRy+7XBjDhelv+uK54dDkObcPZe2AcQaIqmmB55CNHD6wzvxDvBJquzWCyTrBLq /es/languages/taggerscript.min.js
|
||||||
|
sha384-BEATwZsJdiMlp2ktBOPsunra0E1yTs4TWpuXFZca593MHwc8/5JhBRDMBckJN/uC /es/languages/tap.js
|
||||||
|
sha384-SPJMC5mp8MbNrBDcxGFtPEST2CrBmQsKK4R0+9VFJTXsU3JmGGhWIaK/mN76SwKe /es/languages/tap.min.js
|
||||||
|
sha384-/pne+hkVUfUgYrem6PhfNKDCPVcBaUe+2r137Rc1B+gRqcYC16JfMPtl5IEtxuBE /es/languages/tcl.js
|
||||||
|
sha384-aI1neNyUcnd5KlqN8ryRQujCHdltCLh51YOKmgU4q/r6n3zLDy7lECkrCS2ZoXs9 /es/languages/tcl.min.js
|
||||||
|
sha384-wgvn9qR/f3IoOWCcrj+DXg8HjEhObfylIhfu5rgIz3uJdvBjnfVo1Y2kUyORIz4u /es/languages/thrift.js
|
||||||
|
sha384-KrmABoGvDiD8CG93v/CkivllaA6WpR8Em2uBz1ljIo5+/kYYpA01zrgucp3sk+Hz /es/languages/thrift.min.js
|
||||||
|
sha384-cTGVOHefgdd9jE9fNqmirVOjtHwobbSUjIZMVWBfoNlJ6zvkcxxHPeNaf7Fz8FkY /es/languages/tp.js
|
||||||
|
sha384-o/dElfOn171tHMMjnmogls5B4+u5D/YAYBABOLu+4xvwY+z7AwTzmZou1zy7rECm /es/languages/tp.min.js
|
||||||
|
sha384-bi3BqA3VYElINJkx75FVmJsFngvcscHin3x406SrIaNHJo3oS0evVU94gAgiz8y8 /es/languages/twig.js
|
||||||
|
sha384-xx69PXqN0VBmdg5u/nxD+yHl24nb3B+/kAbMwwo5CF7mWQCHvlJ57zUYRRosjRSS /es/languages/twig.min.js
|
||||||
|
sha384-Z61gsCS2W7Q+3fT1fdya/Sz4wlmsotT9iEGzgIlNqP0soaKH1NzysutxWp08Hh3E /es/languages/typescript.js
|
||||||
|
sha384-Tv4mr9B7b+x2IynRXW/xcAxUj1+AoN9zyp0n9BWE1Nle3Zfm/zUeEztNLhIRjgE7 /es/languages/typescript.min.js
|
||||||
|
sha384-kSThHXIGsuTwuXE64czf2UR1eqvnzlZi1lD/rh68GxoMCP6TOyJjOX0qFcV0NTui /es/languages/vala.js
|
||||||
|
sha384-OIeJ9bZoeT3bq6Fr0UsjyDwbFT/ur4Ng3gAvTRBPP+WlWroaR5y1DkRVvy0DrDp0 /es/languages/vala.min.js
|
||||||
|
sha384-ZXhYu2xIPf1aci2kiX/n0hceCz4WwbJJs3QRE6ZwDXGzHRFWrsaYiQhBQSZ3Sx9K /es/languages/vbnet.js
|
||||||
|
sha384-ztGjA/YtvuFeKJwRqtrvV+3no91MVzQIzG5kQhHiIndfxmQOAum+vaaaDfA8Mg8U /es/languages/vbnet.min.js
|
||||||
|
sha384-+oLsTqE/6U4SDuDg22FKIZztwj5DRzZgNJrI8A0xW2ejSVKNNytoKNiYAhlbgVaT /es/languages/vbscript.js
|
||||||
|
sha384-ZVOU05lYlww5C9caC+fbHEJd7urtWFvlMpItqceJD/yo3G0n5SKD8nYNGT9sGHYR /es/languages/vbscript.min.js
|
||||||
|
sha384-eetOTTVgL4VoQ+ikOXYCoLMhMpQhW1u2PfAOJ8YOKjgw3U8YBn5PcDxstn4VgqNh /es/languages/vbscript-html.js
|
||||||
|
sha384-delh3ooaionw8Ky+Tix4I5BLmMYfezQEh7v4fVbmPCN6QbT8XUmkq3N0Wjg6hav2 /es/languages/vbscript-html.min.js
|
||||||
|
sha384-7mrsWzcP/pK8D/4Du41lcJiVf12WzNV1gZhuRhHi1Qvm+53pTlDr9VnpMBFPjik8 /es/languages/verilog.js
|
||||||
|
sha384-GOec9CUPkagNxXeKKSs6bjAA6LyYrTj2fSfXFZTqp4rDvdhnr2Q8k9s+4P+y4W0I /es/languages/verilog.min.js
|
||||||
|
sha384-X8oDOUf4neir6WePCKqS30sckWzdFxVE69IEhKM+VdID0/VTCXPZAoO9v/sgNRaF /es/languages/vhdl.js
|
||||||
|
sha384-brlrwbzJdrEDjIV9RTpTVBQfseypNb5xoAIsc9Y8uCXx9vomFKWiuPF/6pktK7H7 /es/languages/vhdl.min.js
|
||||||
|
sha384-BUf3LQCyA1W0AggXd23Sd5S8mf9Bfy87Lfo0l8DYF92VoNcJXk8ShM8BjJ4X3AeM /es/languages/vim.js
|
||||||
|
sha384-RoYI/9AQK5AF2G++68SRqb7LiSal0kL5sm7eTfGI+cvx1PaJDbLr846Xz+Y1IZ4N /es/languages/vim.min.js
|
||||||
|
sha384-82eHXc3kQTsEJ65AcO2c8eVqB9ynJzosSiMwdPYwt5oNRVsMKuxWoWkO5KFekVYB /es/languages/wasm.js
|
||||||
|
sha384-YBbT3eXpwj5Ddx0MS774iycYICw4gZ1Rs1ExYGIdcYC4EJhaWsfd9uNlaJZBuDaa /es/languages/wasm.min.js
|
||||||
|
sha384-hg0gILub9uKyVTkTL9nJloLIUot+YN3slXh2Gbbmn4hGT2eOKEXtk2clMiztt3g6 /es/languages/wren.js
|
||||||
|
sha384-hM+bHIycWGStQJOeaWw4p4eza4RV/cA1SnM+RAHDfmgQb6omDjunt3JAX+UkSt0y /es/languages/wren.min.js
|
||||||
|
sha384-SlI/W+G8uWNUJSAK5aQ6qG6L1vCJfzBIj4n7pmxtlQLBONfh4nqlvapD4XN3obTG /es/languages/x86asm.js
|
||||||
|
sha384-6jCvxwz6+4SETxn2V7LPLbyOa80MAobeFcGMoSk3ZR25GKcQQdZierMKqC5XdM+6 /es/languages/x86asm.min.js
|
||||||
|
sha384-Y7osAcoXQcK0qRrK6w2TSPZtIYar40WapY34bTgwNJ8Tpwcw+kLOUU6F31jm0XZ+ /es/languages/xl.js
|
||||||
|
sha384-46FNEC6s3e+Fb65sNaO1YzppTYYV5F1C9nkbl7RPU28RSeiCFzmUMII66uyUahqJ /es/languages/xl.min.js
|
||||||
|
sha384-9ECFzM+oWDye4s/MFx3QUXGo4mW43+SyLpWUDeQtWup6GZJ+KHFxVS89PmZt/fzl /es/languages/xml.js
|
||||||
|
sha384-PQrsaWeWrBiE1CFRw8K335CaJuQRTjDGm73vn8bXvlwaw6RyqWObdvMTBS8B75NN /es/languages/xml.min.js
|
||||||
|
sha384-yzQRNx7g7v1JuIntRlUOLBHuLH/uw1fbKq9LNa1aHXsyik5u+FRpv0lwI68gqTM+ /es/languages/xquery.js
|
||||||
|
sha384-flK/DTPAyevTVkoaDWdCnHV4CGBqxtFP08E3gT15S4oXlRXMpce91+b05AoK3Tbc /es/languages/xquery.min.js
|
||||||
|
sha384-7HTgKp/l2rzlyrh5vUfbfZVy+Wx1lKO4iGmfqvakienApv21u55lo+Vi+iVg4jY0 /es/languages/yaml.js
|
||||||
|
sha384-4smueUtgWTorlNLbaQIawnVCcIAuw82NetPOGWN5PbZT/pMr0rjvZXj0EUzJV1nr /es/languages/yaml.min.js
|
||||||
|
sha384-nkJp7jC5onxjdSTqbdVk6z9J2Kktxj6RoDjX91hRPl9BHGA0kQE7CTv2/TtQtF45 /es/languages/zephir.js
|
||||||
|
sha384-PO1dx0p1z7LkGuamWi2nA1sl6a5XfEnTnjNuBDz/hpTLJ362Gi/8cNkvail0DiU7 /es/languages/zephir.min.js
|
||||||
|
sha384-9B0mgbiuEMbrxnqVDAyEzy3O+C7vgNLxLUjNbLOWGoNlwypBhvpwdYtIDUsk9/57 /languages/1c.js
|
||||||
|
sha384-XZ2VUstQUrySJytA56pgjjlqxorW2iMtF12VxlQaF2EKQTZ5S4OFlzdb5ya8NCoz /languages/1c.min.js
|
||||||
|
sha384-XT+FJnkeVMyPJtEnRHV5fSSEZKUBU/cxtMubIfX3kp4Mi61Wqi6HOM8k+hENfAP4 /languages/abnf.js
|
||||||
|
sha384-jLwoy3boLGElFnKGf70oE0qXwrxIal1KEKum645ymEqUpJVFKAccrMhO0Mfn93LI /languages/abnf.min.js
|
||||||
|
sha384-clX8n3JXaeM32WCfxwSNtf4Gh5OBuZEuA+VyvJEtUxXqpi5ZAWjv3uEITAEtCIVC /languages/accesslog.js
|
||||||
|
sha384-NAVE+aGPjSXIrt5LxakpP2qnE9khMpJfJFR7b9TswZOT6fH+aWUuvau1dvad0eF/ /languages/accesslog.min.js
|
||||||
|
sha384-WuHslxcz0qGc8VFb9MHmSGBO1dl+crvoQ2AtwEOUYeTaLF68HVK/m0r12YOku1mV /languages/actionscript.js
|
||||||
|
sha384-cJxhHyra4xzu+Muq3teYAZ8evxMzI8YcL4NxN0xf74sLrEngjVMzroESjgHkfhoa /languages/actionscript.min.js
|
||||||
|
sha384-1OsjKqFLS0keqO7bVJjJkR5kLc0NLU/ijC+furhbqyh1w/ALNV0QbLfdmCAjL8du /languages/ada.js
|
||||||
|
sha384-GBGN3YSK+JJ90mRQ0Zk4jR91MS+uGMUfICgUFxUAnEH1L8YcW7LuTwCV5Cbl1AB/ /languages/ada.min.js
|
||||||
|
sha384-YRmj2k4rfkurA9pazyyiOK0A+YjQhyF3K4JIXdvvNg4LqzDzByikgxXB50gePgql /languages/angelscript.js
|
||||||
|
sha384-JgzxBlecrKq/11S/coPo3z0Jrci8ZJUe0mTeOYscEqlnTCAlKzsntomzNn259fMS /languages/angelscript.min.js
|
||||||
|
sha384-DAVULDCw5LIrVSnI+OuRkZNCyIr7N0iG7trKt1zmxg7jjJCdIusFEacquZs1aDg3 /languages/apache.js
|
||||||
|
sha384-ioKFBz7IK1srBqD2/ZtEKYTUj0yv0rnUVBdJ8CdlCnwzifYahEJCYGz5572vamDd /languages/apache.min.js
|
||||||
|
sha384-NvOst7F2V67VaP1SFWtvoi2y4/Y3JFqu4fkrdNz02KwyROLPBdN7FWg/Jnus+959 /languages/applescript.js
|
||||||
|
sha384-t+KZ4ysrf13P4W8ZKi2mJA23U88IHcBag5QO86vSoeSx1+jgFdiTytii2yZakq66 /languages/applescript.min.js
|
||||||
|
sha384-UwUNFc/z7woYu0w7v9+ULWaWA8M/+0N6uGICbUfU7wZlWFFJjqJcnhJ2YmEIx4+i /languages/arcade.js
|
||||||
|
sha384-NsG10PVz8g3YFLj9ryIHJrqiEjGR4nnGH/XQulTzQ1HyhmBTTjiNSjCdAt4L43LL /languages/arcade.min.js
|
||||||
|
sha384-suZoQknnQ0DBASFb5XFnOEH5yo/3puJ8QB7Si5imwbDpwqTHUE97sax+2gSz1y5Y /languages/arduino.js
|
||||||
|
sha384-Fh/jSSfDM8TBxrEe/yPhSI9FpoMT/3TL5ib1pmehS1cHspQ9SWRYbUSW5QCCbI56 /languages/arduino.min.js
|
||||||
|
sha384-vny78QQbxaaD/525+QaaNXnMJ1ScCyVPdaNKVxN3kDwFJdvmriaAnjyWPCJDBziC /languages/armasm.js
|
||||||
|
sha384-t67w5HJDUbNsGJgMXu0fyABJE4s+YQn0hpn78kGPC1NfenqQ/JIw4g9jy0QMJZn4 /languages/armasm.min.js
|
||||||
|
sha384-lctfFl4oyA21jVOo6OW6n3ng/Yk/tPuM5/h7bMk1gv2nC5tKL4AdpRBugFnTU3j5 /languages/asciidoc.js
|
||||||
|
sha384-CMXVrh9g9wY0bYvbr18r26rwp495RtmyLa4uqYrnVBmJGG4IlJcfAzmVQunjabDM /languages/asciidoc.min.js
|
||||||
|
sha384-OqfVlakBoSpcGgu6WiaFdIc0zGhWB5cFI9lmmCK6PqKtlvRflAMbZyp4/HMH5IEC /languages/aspectj.js
|
||||||
|
sha384-RnYUsno1l7zHZCyh6yqHhZFOGiOp+r0Z8pEKkH3uhNylRRkF4fzSle64G5u+hNNe /languages/aspectj.min.js
|
||||||
|
sha384-Ky6194KGx4W7WqDV3t88kRxS6urkIlGpVo5yrxcoOKKe7SQqEPHyBRTesjnZYdeB /languages/autohotkey.js
|
||||||
|
sha384-uKoJCgVgVJP6fShoFeJyzhGcIcuK0GR1MhUeOkp8ku0LWJVxmaqf1LKmGC3VrAO5 /languages/autohotkey.min.js
|
||||||
|
sha384-XTEmyAJ2su8JOINliW1XJDmEoul/95bD6sSRw5XwFUZ8P9ma26ngYjS1wv/uZqiZ /languages/autoit.js
|
||||||
|
sha384-zSP3zAOzNB2Vc2QlVOZyxuOXegbwyCPxt2F+ElqJ8ZBnemgGzQ2S8s13Yo82OIdd /languages/autoit.min.js
|
||||||
|
sha384-H1ktm9MvMAGcDYHzo8eoSNxe70VwyuyFmmiVvWvJlGNWDcFOok7t29KhHnrrU1dB /languages/avrasm.js
|
||||||
|
sha384-ged+H4JNXmGkHMYWfYfax1sk57U7EASWstnVP4n/jFJDScjuqV562RgxriO7o3Un /languages/avrasm.min.js
|
||||||
|
sha384-DVgpC7gq7q7xG60rHELREbS+6yY4WhS1l7rj8CI6vyssN09sF/sdVWirTMIEExiy /languages/awk.js
|
||||||
|
sha384-Btfrp4G+gSmAkx2oUvKfCWME0NWD3FQvtn+XCF14ANrDIH8IMswR2fHsSw71+04g /languages/awk.min.js
|
||||||
|
sha384-khHitaCthCG+uT6eAjvBv18BcAfff+dnXECAZBRL2pLoA5gXp3Vs5plj359v8nsN /languages/axapta.js
|
||||||
|
sha384-7K5EqwYt3lX54EzwiiQ9p+5dhxeGZzf1S4WtkJYwOagxxxQ2icIwwwsQOt7TqqTe /languages/axapta.min.js
|
||||||
|
sha384-Jrkpn2hK0TY04skYBXB9fj7mMpKYy7g726cPwXGXf6mdBXnFlTDXFduxikMCRXT7 /languages/bash.js
|
||||||
|
sha384-BbT8tZtvkh8HPXIvL5RtzuljBwI3gR5KIdYxZyYSyI5C/+KNAGdzAiexvmxuroag /languages/bash.min.js
|
||||||
|
sha384-bnpCuTpfS8ukuVLhfvZeux01GjkQSo1jSHbvMeO+AHZOiiFEi0UKrwxAUMYDA0KQ /languages/basic.js
|
||||||
|
sha384-eiOqb/ds7X3JkCFzpDHXdBBL35GrdT1oz3+qs3L2GqIH8P0/BRhJ4AqYHFTlGhcx /languages/basic.min.js
|
||||||
|
sha384-KsRYJ1vDhHJs5Jaf5t7cKJ6MEFtZ0pAwWlQp8GsaxHK2wZryLGV/AUCHcxVwXWKZ /languages/bnf.js
|
||||||
|
sha384-/ZwoIxhhRAm/U5bNbOz9XQDSWX9gGoo9xZ/sHuQCn2I1JATvXaWmdTJ+dGyKKs28 /languages/bnf.min.js
|
||||||
|
sha384-ZSgjvAZIrOodLXWvfWqMWlXYozMabtqq7RU+EYxkC6dY88UIL57M238H6/iSMQ3l /languages/brainfuck.js
|
||||||
|
sha384-94UkgHDSwJ0buTSCitB5A+1J78lWjZ8m21kNLahv+OtoGcRXzq3elTs7Jj3vybNt /languages/brainfuck.min.js
|
||||||
|
sha384-lAz0Eyld5DmFJB7cxaZonrkUJzGefh+K3niV5d7+vzzS7/P7FEeCJeLNXzMjeo+N /languages/c.js
|
||||||
|
sha384-tMmX0hBMZeMrZhX6dUNxA94/DNJLl70ao6qu2N9+b/6Ep9Y2e1pBzVjxtLygIB+d /languages/c.min.js
|
||||||
|
sha384-WF4JRT1gxRxlGeyR0b7hATbZxz9OcIRpT831RdhsttW4A9Yx5m1t4NOegJ9b/T1z /languages/cal.js
|
||||||
|
sha384-Ytzh/yy03vBWF6kQnbJh0cK1M/4QlNDbCeOG4TM9HW/Zouh+TEUfl1AGA+Cfx1jD /languages/cal.min.js
|
||||||
|
sha384-BY6CK/eIhuQvKKoVu8MhF+HXN21QlQmbq3XmDs9o34oTKhla/ftaIHeO80yZGvLH /languages/capnproto.js
|
||||||
|
sha384-aOG/Ys8xqIR+ZSq0zKt0MIQGMoAd/ArFaTk1jQQFzV5zFTS11VOtoRVg+6+RdnVq /languages/capnproto.min.js
|
||||||
|
sha384-2HldJets3heu1+B/KpUZuPW+hLolHxtOZ8DZfKJbgVtaNV8YBhBYXuMVZwpvdcLS /languages/ceylon.js
|
||||||
|
sha384-Y7lK00Ww4yHzRK965LfVd7rIbSKZOwyj/QpoAwDYvUZRqMPJ5d4dEwn8y/31nGwn /languages/ceylon.min.js
|
||||||
|
sha384-qGtEm39BdxdnZQcLbna+rQ9ibMKqHOprD4mIk+xgbvH4W1YL6Nj0Mvbby9foa/OL /languages/clean.js
|
||||||
|
sha384-23wpjZzgf0LAvrV02G/L6voTPSR7L8tbLMjA+JRsUwDzYued9iXYKmIiCZBzhfbo /languages/clean.min.js
|
||||||
|
sha384-75u2Ue4336RKQbluVg05QJ19zzOwHNyYo9Yk/eNQtvZ+8oUSbvuPu9Nh6pbgMwNt /languages/clojure.js
|
||||||
|
sha384-OlTMbXKfvutaqAFG+Ok+n1N9bAIitJdnvLVaT6yAlSXZZWW7/5ejCKFqqVydeBf+ /languages/clojure.min.js
|
||||||
|
sha384-3DXkxCzDLUyZ2SAdf9p6tFHY1zBed9yPkMbQPlrOZu9bLw8CBkiRqHzztW5vWLP6 /languages/clojure-repl.js
|
||||||
|
sha384-/NmZuRKMLmGdYdg6Mv3nuVCEh6wV4sqKILHurG9LCLbP8oxmcckzVHwHovKAqisd /languages/clojure-repl.min.js
|
||||||
|
sha384-tz8sDBcGyDfVGZQ9FUAKB4eJnNPu9yXGT0lMmnjqQR8IK9WLxlGFllFwPSZUAoH/ /languages/cmake.js
|
||||||
|
sha384-PInWnmju5g7EmUG5eiPVUat7Psw4dFOQZCNdSV5R/HgXYI+6efBY9fTv+Ye9+kwq /languages/cmake.min.js
|
||||||
|
sha384-dWfiFTvzH+SqzGuAI9Oxiw9p/1pVkci+YQRnOGzTRUq9o8qYfG/UiLfPsFdwl/Kk /languages/coffeescript.js
|
||||||
|
sha384-WSCnMFB4pJP36Z4X6+v4yxBQBZmulTaHCPnFMCAnv89csu2oia55pCmdEtziYAR5 /languages/coffeescript.min.js
|
||||||
|
sha384-urZ80QNJwUIh8oRSx8Ge8A9/QSvYw13pO/G5lBlBuJAd8XxIsTmS/h5qYdz99QBP /languages/coq.js
|
||||||
|
sha384-e4CGoHQVPTtOEPw4tgt/eVQYVYAlQ+Z5Q/CYtYPFwaNm7sfXG0QYvAlsStTIR52o /languages/coq.min.js
|
||||||
|
sha384-ehNngbSTxrwvIKvQ/vifQ5WWj3hCgqnj/ux5b/0HO/f7Ogob5icj6+zzUVOPWDPt /languages/cos.js
|
||||||
|
sha384-o69l95Xnl1QN1rzjvtdZz5nFzLKQFkKdtcBx39fQKqnbLnspj/dG9pi/c56d+F7b /languages/cos.min.js
|
||||||
|
sha384-Z5Ja/rxBluJ4iPYwJYn2numfw2XFmlp3qLL1aJ1SZqyTjKWwMh9yWfpNCOqf3vAm /languages/cpp.js
|
||||||
|
sha384-B711MHXDqRvH/pKkxJk84RyRt9g0qyAJFsu2XukZKoCdnEiBmA6Aq9fO23ZCS7qk /languages/cpp.min.js
|
||||||
|
sha384-xPk4s+e9zT3ob2w5rp0L9NoBJW73QRrsZ8AEv4pG0Djm6FXkW1ggIT72vEf61i+D /languages/crmsh.js
|
||||||
|
sha384-8+xmzcwU/4KR7UGCSWSlp93D7KBBCLH0M+vKkk+INtjSKVzLAj6BNizH0QJZD10Y /languages/crmsh.min.js
|
||||||
|
sha384-HqpJa53GJIs1K8/o7WNQxq7HalBZ1JKMOyZJjRb/8awu7pZdJ+lbByjjYU4u66Lt /languages/crystal.js
|
||||||
|
sha384-6tcHV8CgHkKMa5S21y+g9KLl9NcNtLLZWQh5dEXJLE0XTvyjWqNr/AHwcWYgb2b3 /languages/crystal.min.js
|
||||||
|
sha384-NTF0oluJbKDCxwGTujk+IsRQRbf+waUyDilA5GhOA+VSoxhyApQpmDWMjxfFO3dt /languages/csharp.js
|
||||||
|
sha384-Z+o7SU/ldIEIdOIqpMV+9s2n8EE1rZTFSRv5Sd7rlaSoPTpyflmmZ/oRb6ycw/2s /languages/csharp.min.js
|
||||||
|
sha384-F4t6zPjtcrZOBnCSfxK9f+6K0NEchPbK8iEVzcT+yS1ptbo1UScKSA8vgbkzpEwP /languages/csp.js
|
||||||
|
sha384-JO8fEvV87kSAjUzHsFz7JmXfX/6GSH9kMwAxCml5Hp3eNvXfo3Ze/0FJ5Xgyd9n8 /languages/csp.min.js
|
||||||
|
sha384-bsb3QmLtUiyaiHwtrL4YoAVI9yLsjyqxgoAsk4Zd+ass9rSK1WWRiCDSu/hm8QRp /languages/css.js
|
||||||
|
sha384-0XGvxIU7Oq1DQMMBr1ORiozzBq3KpZPE/74mJysWRBAop1dZ9Ioq/qRWe8u30Ded /languages/css.min.js
|
||||||
|
sha384-AfEyDOI7xys2cv5EKgjsPSU5ZDxsul0fwnrUVBJkHNAsK+90BlIBYwS5RPDIsYFW /languages/d.js
|
||||||
|
sha384-SYiBosECz9pils/io9oL5fJPPfdyeu9u370WHaOhVFSweUU5GedTHsp9a4tVg5p2 /languages/d.min.js
|
||||||
|
sha384-gL+91pen0LdlyLSZpCsx2UH6IZPdS8DsS0wktYFRYZLThn22p5RQTzmGDuYUjxJG /languages/dart.js
|
||||||
|
sha384-7uTDEXhVKbXA/HcXr3PjZh6Ig9OOAu/ZpWDXkdK3k9Ke+KOdipYda3eR+vfRQgq+ /languages/dart.min.js
|
||||||
|
sha384-UN6TZMe9xUjpFI02Z0HJLOYJww8VNvKggycNUz8EkJBA0jqNYFvbmJkg+9sDm+Xp /languages/delphi.js
|
||||||
|
sha384-k96k3i1YXsDJVihIVjW3r7MAHcD3tDMKjwwUsaBQSaSYA6uYO8RX0blGGZ4HVTm+ /languages/delphi.min.js
|
||||||
|
sha384-UZBiDq19/Pu+BEZTOdnKdnew0sCWKFa2EmtRr9O+ZndYF1NgJOlya5bua3Wf++BW /languages/diff.js
|
||||||
|
sha384-04MxX6iQ0WrwX6Df4GJWGCXwfr5hVS5CQ0r9CS7aunho7Fkj/AAWbEPU8a6G+4LA /languages/diff.min.js
|
||||||
|
sha384-JAYZMDzuElX+Ic47jwB+qzCzyKkmmEffC3mBnYYrJp2BlRjSorjliOzKSAG8KKTt /languages/django.js
|
||||||
|
sha384-krxOUFgiyevtYl4SsL416jqrUPU3K9W6fDe/TRvWeXwLYKWKq/f+XHL2AHwGYswO /languages/django.min.js
|
||||||
|
sha384-j21u9doXcdcPgoSNMm6NCFA9AA7aGXmG5x2IPVDxNaiYaMUQeTHgNmloGqSx6hET /languages/dns.js
|
||||||
|
sha384-RI0iO3hAdUA6nZqyVrS82GoMXR0HcbzOTDO+9FNwVZz3NLJOFcbW3bPnRhrbNgGI /languages/dns.min.js
|
||||||
|
sha384-PF6NlDjoIfHgP6/hbKDRAswvI+dXitquVNX3GAJapyiu+AcQcdicRXJjIp8bj6pM /languages/dockerfile.js
|
||||||
|
sha384-hly+Rz036+A3/domxShxHoja13X3lfx8nyG3V8aMeOe7Efwu6gUaSrDxq9BKwYk4 /languages/dockerfile.min.js
|
||||||
|
sha384-yD9ZkKOazo9eQGQfNtC0Jl+jhwoXY0nMIQrumVTCyCmaEkB8qNehgSM4+P7mVaW5 /languages/dos.js
|
||||||
|
sha384-s10f61nScVyophx7eDq30HRz4VUaiwMkHFL+yAjwFUh22Dw6ArIevPx07+r0Dgoj /languages/dos.min.js
|
||||||
|
sha384-baqD9xmGvRQ8Bu+0zTlV7q4o6lTNl90J1YiOh8vcbTQ23ipY0J3TNGVS4zb09cNc /languages/dsconfig.js
|
||||||
|
sha384-dxkj2dPKN260opX1T033+gUCKz2AsHi07XvsW9Uzf1i8PU5SoivwJ5N4HKcZNZSe /languages/dsconfig.min.js
|
||||||
|
sha384-xS0zsCJp3Rgq4EvH3MuGiyB8/SlFrFaSIrAgxwOpS9uBYDxWHu3k1jVvGnSOmKTi /languages/dts.js
|
||||||
|
sha384-/jmxjIpzwhFsVwlnLFrxaoygMa+xnsd2V3qpcJnNrBHtat6bCuMB3Dsg/EyNp9I4 /languages/dts.min.js
|
||||||
|
sha384-sOZdj3xXAO8Wl/Gu7u0Rmn8v147R2Au7+vDs0rGMqKPyC5Ku3iRV3U14WsnetCGh /languages/dust.js
|
||||||
|
sha384-VlMxnZXYI9pxkOSQo4JxmDew+kDGDvKByohNyVUJkTn+c7MZ9bOpWC9AMLoD8ClE /languages/dust.min.js
|
||||||
|
sha384-nCQHycH/dxKl1rj/TOgVamoFxnEUD6CIFs0EyvFDXIwKlhUnW68pbHAEkH1R5AYD /languages/ebnf.js
|
||||||
|
sha384-h+bHwQb+0wBE5seu/NF0fQC12p4bXHOqEgC++5HuL49ZpDj4Rs+sfAVnQwjrcrsP /languages/ebnf.min.js
|
||||||
|
sha384-minnw5Drs6Fw1ZQbEg8IJIt80Ta52KVtd0Pk/MAWsrnp+/5xL82AFDyR2FyqU/+Y /languages/elixir.js
|
||||||
|
sha384-MQHNkCaYRX2k6cd21j3k/t+rRxhTX1gZsd1ZqCVnfN9XePT+6gN6C5m01hPN0+0n /languages/elixir.min.js
|
||||||
|
sha384-r58b4K0AXRR13PwM/kXolHanVOcxMH56ID1VUuhyG73ZjmmM+JHyzKi0CktWWIPT /languages/elm.js
|
||||||
|
sha384-RjYkl2jsX2gc5mfnlUASkLzJ9r8BBWIIKLHIM1ye6kbWbZOZOrnv7eXu7ncuCqIG /languages/elm.min.js
|
||||||
|
sha384-wvASfLS+/+66YCU8OdcrViu3LN0xk3nqiAsxScq1TlVS2cehIz/VdeR0XntTwp3g /languages/erb.js
|
||||||
|
sha384-S22aGcA35DQpIM4Qxca+hj4rLFEeqis7uaQCfQXyfsBGy6qNct2Moy73CGgfVyG6 /languages/erb.min.js
|
||||||
|
sha384-XzoXXeE/xJGHQGNx9oAzQHp5qPfjhnwC0vnZ2PGII+K+DJK5vxXecoWgPABeLZNJ /languages/erlang.js
|
||||||
|
sha384-/RiBzQ7U6WaPqVGsPRMOZJJtA+uYrw8sV1x8BC9o6SzEXaq10F8ktmo/2RO3j87M /languages/erlang.min.js
|
||||||
|
sha384-hVrxvwjYVFigeXOSjVyM1gr64HLlmVZhxsBicYO8uEBLBB5GsApSUa7+LfEAu+NU /languages/erlang-repl.js
|
||||||
|
sha384-ePHZZw3pHRpCfVsGrMrlvhSvBYgE5hkpm7H77FGD0J5EJZYM600ezxR4SEOyrYhN /languages/erlang-repl.min.js
|
||||||
|
sha384-Iz3ynEVDCIben5FVjY3qwTWdjyNW/i8DRjCc2KfuaoA9PN9+6bly+Ipu/zYbPruL /languages/excel.js
|
||||||
|
sha384-IiEC8fiTaLaSXXaeFq/XxoUse88fj4V+FmikhgzuXbiTLzfrfrWym3Pde4s2tv/P /languages/excel.min.js
|
||||||
|
sha384-3WtTzekabSgF8wyzzoe7U/8KVWeFGDG8ujEMqJwKJjDqV5B4hLPMIPxEnz0dur1c /languages/fix.js
|
||||||
|
sha384-durukQKqWm/OLUWwhGWoCboff5Ad4zinmT2cxAlafR2dzQADI1hROL113HVZQwWV /languages/fix.min.js
|
||||||
|
sha384-nuYhbdoyUBsjFHoEfnEqGmwbPY0+KbmvYdG/jcSxQDbvOiCBYkLoLJhDvKkZtEhy /languages/flix.js
|
||||||
|
sha384-958lb77iWrvN6IRcHnaM/qHwHaye1Ns4YMKq0ufR7N27UGhSQ1BkXxDxBQTu0PpV /languages/flix.min.js
|
||||||
|
sha384-SOuDxJBMFmbQBxU18ksxNru61DqhZzqKhFe262U4+vnCSGdXGrEZw7miT+/DqeTo /languages/fortran.js
|
||||||
|
sha384-js87axhH2Q+jkxUjpaX7DgtCMTO45eaDvzB5d4JvbuVwLp0w3b9We/TfVy2qJaK4 /languages/fortran.min.js
|
||||||
|
sha384-AS7CjGOfjvW8e28OO0l4b7YDQUmXDphFMC2Fl4Zbhy/4ar/YvcRQlTgrB1qE00Dx /languages/fsharp.js
|
||||||
|
sha384-KJxuHuiSsSbNteoBD1crG6mq4q1sF6HO7eOKEpp1aZ9LBc9W27jh4QxyS1gwj5rs /languages/fsharp.min.js
|
||||||
|
sha384-OFOX9wNPMKv8KjUi0PsLGErqLF1TaaxBL9Bm7YgaJgJuRlPA5pJ7jaCJRGMFqDZn /languages/gams.js
|
||||||
|
sha384-htm9RGDfsS48hoyuALwxfHF9tE0+kcsYq54ft4i/11yP/YEByAFQMsqrz8uQDMp1 /languages/gams.min.js
|
||||||
|
sha384-Jv89so5i+EnujyE1eDwGftuWHaTg1ybTTRAnLJfTHf4ri45CIBhm1LA/eD9DJS/9 /languages/gauss.js
|
||||||
|
sha384-aY6qGj9ATJg5NQP+PKzvlPo0R9EpuMwMG+/nnfKvRooFjGIHirlf4+MNkQ27cSYo /languages/gauss.min.js
|
||||||
|
sha384-yO0DlKCcmPQ1shFu7h5pbSlMCl/YdsVCgb/MtkddTpwK096/efvGeVXWuoRG/HAE /languages/gcode.js
|
||||||
|
sha384-My7cG/oMwBIO196/j7VyG5E0S5Zc6i8e1PEnrw+cerlHsu2XIveyhg1NcBSV62gZ /languages/gcode.min.js
|
||||||
|
sha384-fqBAK9lwDo+L6s6kGm3TKQMG2xwBDD2l0c1YprTNphI5u9pkVxEhm9qcF9gqMXdx /languages/gherkin.js
|
||||||
|
sha384-zwprBsudDpk7ZM/Cj6Ei+edk9dGBrPk08hMPFJP2fod8+BFM7fY2KLpNCVgolqKW /languages/gherkin.min.js
|
||||||
|
sha384-LGEW2yNxgENy35/TFa2DmM11QU/stRuw69epbr0GP5zvUbi7ddUFMeW6UB45yF0P /languages/glsl.js
|
||||||
|
sha384-55RCrjtjoduGgxOrAm5xxwlpSaef1T4sAUbyj0QiAl246lH+ZlanDaelryeGI/yO /languages/glsl.min.js
|
||||||
|
sha384-pn6EbSDkzZ2oQnf+vo4T/+X+lTJLqDoBubpm2T6mHvb6BfBLpzhiAa+4F9FKcMD4 /languages/gml.js
|
||||||
|
sha384-Wf7ONv70fvKjNB9G4vW90NGSBuI0RyC6/QrA/xRV8KQZWlhDkDarh4RL5sJlO153 /languages/gml.min.js
|
||||||
|
sha384-uh0SMHiaDpf+y9t0NE6+t9c3aMlzs8mHPxmkEU3fY12P481V2wNrKoxPMlKVG61k /languages/go.js
|
||||||
|
sha384-HdearVH8cyfzwBIQOjL/6dSEmZxQ5rJRezN7spps8E7iu+R6utS8c2ab0AgBNFfH /languages/go.min.js
|
||||||
|
sha384-Zoe5BwG91IWuLXXtNu+zuNEb/0Yaw7u/QWaCKTTN9X9HSbZDHYLux8I7WKCGzc7B /languages/golo.js
|
||||||
|
sha384-kIR9nX4pHHuKEk9toPCN64qNaR9xDo3j4eeGtLp8n4cgLGReXFHi2eRSrooelgmo /languages/golo.min.js
|
||||||
|
sha384-KozjmluVaBhceePeS2ewK9XRn41K/O5qJ2QF7Co0vZkgzKFNRqhvxLsHuA0eeUd3 /languages/gradle.js
|
||||||
|
sha384-U8+Z32JqO6yTfhn2BL/TN4GeoO3cFoOYjMig0J5mRgC9ZCQTIGOux3X80SPjqlQV /languages/gradle.min.js
|
||||||
|
sha384-IOWs5jCSdfqtJw3g+55axGoOxl+91x7BjVqyS+nhmIO3riBINecgkX3IyhdIjNQB /languages/graphql.js
|
||||||
|
sha384-M04f/a+xFV20/v8ZQLe5lPeqUKrH0A0h6HUSWFRvq4RE4xlU1yaJIE5XqNSuR2Ke /languages/graphql.min.js
|
||||||
|
sha384-kM1I48KisjtnqMZYEGvwES0fxRXBeFcuFU1FMomHZgXWaFULNqYrt0JBUCQcfAvc /languages/groovy.js
|
||||||
|
sha384-Tm1Og6d1FV5GOFgkfZWi7DcSeMEA05xEeZfifgFC5IH6xxfoXwg5PaNNxrX4yinC /languages/groovy.min.js
|
||||||
|
sha384-Zf6B3Mfu0dJbE3P85SBtafV66SSR7vA8N/om+DK8LKWPykwWEGB/UbgbVaoL8jCZ /languages/haml.js
|
||||||
|
sha384-yUMeM5KYbEcXVx/tTJykaXJCy1O0yB4Z8b+94jqNP8XTsjA/1fD8IZrSiDWdzCIz /languages/haml.min.js
|
||||||
|
sha384-holGv3Jxh0feei7zuLguIJKjzypduHsmDDdCBhga7QMeNaKp13q04M8fl/01idOa /languages/handlebars.js
|
||||||
|
sha384-iYbf8lXlprMiMUixdrRVRTObM8b+idJ8RuOJQkOddWFt9Ntk9xzMFSswSGaDHMNu /languages/handlebars.min.js
|
||||||
|
sha384-rhn33/u/Bx9ACz9kwMH5G73O/ZVdpbb67Tl4IdfxFMxQVLxhMnd1rjiYHtmFPUdo /languages/haskell.js
|
||||||
|
sha384-Z7NJwTxw7Rkjd5VqLt3KR5VyFUlCThJa7/4khFskUKDYPBiuk/UcS10ApTNW2Xxf /languages/haskell.min.js
|
||||||
|
sha384-IPzFBLB4dNDbODnCADGE4Sy14Jrc0gpo0O9bRUrjbXYqxzDK1pjRsIIYSdIVW6d1 /languages/haxe.js
|
||||||
|
sha384-y3QsspMBQ/tdNmj/WFWCMi03HPpxi/3zqEjBd4nvYNlmK6D5plkclAX02QobcoXC /languages/haxe.min.js
|
||||||
|
sha384-zWQLq7NHD1BdUGJEXECqgtQ4boLAF6SjB7TwxJ0ixzhrNk46bkHXJmOs9e808HSP /languages/hsp.js
|
||||||
|
sha384-xFcLkiDoLSMaPlMFSqWzTvG4CgeC7lb1Rn9NoaVMFdKVqhZqlHTlyOcg808xt2hs /languages/hsp.min.js
|
||||||
|
sha384-hV7ok3wrc7DrjvcAtn3jI6KlZtpbm+hC4HXrOyRjrl65HjGtTJ5ixGiMSpJRDiDq /languages/http.js
|
||||||
|
sha384-X50fiL5mByDvJRwn0hkUXIEttF5t8hlEFSPUMq42KoryxgI4niflBsviuhahhWJf /languages/http.min.js
|
||||||
|
sha384-l/q/xE4I9hJpDvzsWV6Ao3cEwe16NUmSZSlD2RfQR7Q/uyZt28U/0W+wTxuMql2n /languages/hy.js
|
||||||
|
sha384-lcTN4smcWkRAthjFCTBe/8gtM255uleMAezQLwzjHTWYk0mOt8mkhbqHb1CT++R6 /languages/hy.min.js
|
||||||
|
sha384-i7F0kfw4817lKCBeM5yarDOkFy8Ciu/nVDIXVr5h4e/G2xhrZ7hevTVbPHzNYK28 /languages/inform7.js
|
||||||
|
sha384-EhWKP2qG8dOnazobma+S+QoovF2lHsXdgJZzU+DCzLq3QXubzH6mZgGEVhxSTLcx /languages/inform7.min.js
|
||||||
|
sha384-izwcylRNWmKKRcyCyrYZyNQekUCyR7Fh1x8nYWNCRJoRDU5JXv6TcqlP4C+4MfIf /languages/ini.js
|
||||||
|
sha384-NrmnsdarwteQHPGjt70kaQTi1KE0XfOJNX9/VJSg6wWwU6U2nPzjl3iWkgU1cvyx /languages/ini.min.js
|
||||||
|
sha384-Pq2/UFwsBFWpHuqQHJMa7xte0GmPyPWHmTwOQr8d8G/OSOwvNzrCr27KYwzwAda6 /languages/irpf90.js
|
||||||
|
sha384-GmUqE3cyqLomj2R2YzFvx+nMHnHwaR2+CX9A0JjdxCxUma52cdJHMNa8KjL0dUfL /languages/irpf90.min.js
|
||||||
|
sha384-ZkY83/yn4DjJUslt00eMXQaMAV7QDD1fRAlP7bNf/o1JASdLQ6LrdwWNjwmWxyah /languages/isbl.js
|
||||||
|
sha384-IeWqKIkQi9YXMXP7u5Ty9njlj3ld2Yfhowbskgjb1D531UVvonFcNJAexMUjRt0c /languages/isbl.min.js
|
||||||
|
sha384-Dprg6CdFFkimxaHg7qM7njVaWLMlOLqughixPERBDbm0cHdX6rKujTnJReof8O6m /languages/java.js
|
||||||
|
sha384-e+59xEZvRMXSRGD31B3HOBGAGqhhs+bbkxCqPuJDkSX5QGneIGTIfwdYJckTN3AO /languages/java.min.js
|
||||||
|
sha384-yxv7Fv9ToggiLsR67t98hV5ZRup6XX6xL1Rkbi/cGV5J8y7fosCi9POqlBkiBWFg /languages/javascript.js
|
||||||
|
sha384-tPOrIubtDHoQU7Rqw0o88ilthGO0/4xEZGB47XrQKWhrc1/SchwsDx+AP74u4nk0 /languages/javascript.min.js
|
||||||
|
sha384-lQgHrtx7x8SxGk1nYx289Tdwkf5+vn6r0+lL70G3gCVw1E0SHBI3ZVv8CckjcZ4e /languages/jboss-cli.js
|
||||||
|
sha384-9TY5qMANpFAepJtXQhSDxLfCBvsomeAr+sp0iYKmvF2J9rIEjJquOM07ktbHEt4t /languages/jboss-cli.min.js
|
||||||
|
sha384-pUlqdjoNePvHvdi7GVKJJnh/P2T3EvXXodl5j0JtTkbNC4DRH7gwGbcHFa84bFOP /languages/json.js
|
||||||
|
sha384-3C+cPClJZgjKFYAb0bh35D7im2jasLzgk9eRix3t1c5pk1+x6b+bHghWcdrKwIo3 /languages/json.min.js
|
||||||
|
sha384-IdkulUahm26FJ65aOm+80g1JgT1MTKWu63IB/Mm6O6HSnKf+JOeNpAr5tsgK8z8r /languages/julia.js
|
||||||
|
sha384-cURSDNSYOEpA3JyB+Soin0iDfPlxgcO9kjA4sn9L3p9xMvFNFy414G6cx8MtkQ6K /languages/julia.min.js
|
||||||
|
sha384-L6CrJabuGibr2ZNRKYMlponS66EleOl5VCfKBEbeoYk3Ot164j3x+IOnN3Wau66T /languages/julia-repl.js
|
||||||
|
sha384-ahto23Rd35WcBQBqxp4l2zN3chmWVWXgz3C3q7NLclDLXuZ4UIQzF8m8wamO/U8k /languages/julia-repl.min.js
|
||||||
|
sha384-vIyPs+G4S+ut5NV5tBIN5/E17wBiWbTTkFPPFbBC+r/FZOD95/fbcSzzeo00bE3x /languages/kotlin.js
|
||||||
|
sha384-7abn027YsNDPFilpW9aLlNUanPrq7Ht81zKQL9MKQq6/nkKrLczChRK5OA8GSKep /languages/kotlin.min.js
|
||||||
|
sha384-RTwx5JnrKLmlCzp6Fndc5NrlWDLr2G3Ffl9s7apaS3kqyzbEDKU1RnG+5bS2MDNR /languages/lasso.js
|
||||||
|
sha384-xV5D+zLI1pZHwNZp99FxT+F/++F/2EOzF7nvoUK0oRxCQa/aoZVZaWSi4Qs7MkYA /languages/lasso.min.js
|
||||||
|
sha384-gC1LLqQxzTtslF1/nhSmFhIyScy7u0VnfVPDE45XlK+Ed/wgeOK0zae/DRDGNTDs /languages/latex.js
|
||||||
|
sha384-A8E38+eenPg19mMk5Ikv1fetaPL/yA2OsGR3hFs9TeeBX+zQ8u5bZNsPKmlFHwN4 /languages/latex.min.js
|
||||||
|
sha384-RtoHXnk6u2vkF/tzG28iVkbj596E7Lj8AUTNZixz0bdk3+9pQFo3lKa/yQvrnrZt /languages/ldif.js
|
||||||
|
sha384-/M2jjMTP/heMVduWFNDFah+SGfY+JtfWi94Cd7yZF0KmBBlX3VMni4S2HZmy/bvu /languages/ldif.min.js
|
||||||
|
sha384-Cum/7VonmXYbp4upfGRCU/Cuk7rwU3lqUApFNH0rl7wlkfuSNO05ludq4/eBATuB /languages/leaf.js
|
||||||
|
sha384-8p3ylSU2l5lZhLCbVGbilhcrRrfNkkbPco4FHBplQT73qURGJFOJ5mdbuKQYvihp /languages/leaf.min.js
|
||||||
|
sha384-KSqRjSg7Nn1FuuRUtjB7br82XVgWtqos5H9BlvRY1j5YQr2lftIUSg5deukqK89p /languages/less.js
|
||||||
|
sha384-M7Wfa4KRyfGnn1i52Nqpr5zWcrmVaO0luxCB+2Txz1eI2FRQfpDcNimn1f86K2Cp /languages/less.min.js
|
||||||
|
sha384-HZV/dhDa0Ue0fPBAGMmwuiv9vQZaT2jcez0/IXCbLe1MCSp9TwA6tvoaUhlw+kuW /languages/lisp.js
|
||||||
|
sha384-XHf/F3AFtpwh/qvji8cbUFV7wLfrPKcyItaFlzg2/tS8EEBRgjCzWagzMOF4A6TP /languages/lisp.min.js
|
||||||
|
sha384-xrY0ozwHEvh64cuQNEap8BIeKvDGUxoRuFAwtNYjPbFRJMqcP6XPzpaNhU+kBhXQ /languages/livecodeserver.js
|
||||||
|
sha384-pY7nGT/bw5m3naX5e0wpghG20yHUEvSYY4r2+Azyu5e9hVhyv8UC2ZudZ6F1xKU7 /languages/livecodeserver.min.js
|
||||||
|
sha384-PNEUpEsTTJP1Q6X4PoPOQcieB/3LpDgwdEt/lZEHjFu7TDHeTAq+NQYbUj8tTb+2 /languages/livescript.js
|
||||||
|
sha384-FJYXOzB9VRvClv0YnEy5AjVld4/Y2GM8Xq91Sqn/bwQyliXk03gMZCP/M1C0rJGo /languages/livescript.min.js
|
||||||
|
sha384-d0udVFqKcGL9t4V4uWX4gZjFdP1Pm0e8KKzoUrLUmuCUsolZkWSvoCT0UNN1Gcx3 /languages/llvm.js
|
||||||
|
sha384-H3eqxK8Ve23Rhvh2PBwboAibXmhLmgY2eTAg/ECOtrg8Z3vgwwHzLkhrc8m+jQtn /languages/llvm.min.js
|
||||||
|
sha384-5vevk+bys3mGQ9oeRz93JIqfoOuaWYayt9m3P8mTx0nkMMB24DscwNrpsvWq9CEh /languages/lsl.js
|
||||||
|
sha384-IBR8syIivHAjWClvhCPJK/yYrjguspdPnkhz1c9WYOqbRpIqyU+uSqgBSdcL6e2U /languages/lsl.min.js
|
||||||
|
sha384-IQZHDTDQQ0zpXf1FfEYOFIfjZrBbLbNXYCn4zukU6u9mLf6JI36vvIRaV6/d175T /languages/lua.js
|
||||||
|
sha384-dbTI+BVfiAlIfjWMYrH83f/x/GYSKbujaX4g4F7q5YxbGtlS7qTLcwBQQvDdsGf6 /languages/lua.min.js
|
||||||
|
sha384-NpIMNHXY0x67yhJSnXiHh9V28uT0Bfz2cKxc30p9vURMu5IAcDhJT1TpaqUE1x0B /languages/makefile.js
|
||||||
|
sha384-DjL90zP08vzabGXs0CglFocqoxPXnzAcKhobGV+CQDA5FHGW7xCnxjylOhna+HB+ /languages/makefile.min.js
|
||||||
|
sha384-Sk9XW/OOutdl6KS1M9Wson0imuqr0LkpoTRDHi5QFH4MWe0aViI5d86BOVkh8Ds0 /languages/markdown.js
|
||||||
|
sha384-Rv26WbhHH4MDPzeExq4ECmZUYF942tlfVhqA91Drw1P+Ey55KjihLF9RJENxjWr1 /languages/markdown.min.js
|
||||||
|
sha384-fX11ESuAxHunHWn4oHvM1CUUeacOuMeK0bbZHeKRWM8ix6OH11eH6mdZE4FA2UuW /languages/mathematica.js
|
||||||
|
sha384-y1+UZ2Tj8YGxk8pltI2Xo0e17nA9sBMyynUZGHY1ZUDaVMBQCB91/ci3nYxZbJ4u /languages/mathematica.min.js
|
||||||
|
sha384-+IiDNSrq9hiDOlzPG1CxaS5ojDqswYZmy3eN4ChCbwEk2UpQwQLk+xkaVjs99yzx /languages/matlab.js
|
||||||
|
sha384-lq1I9kuTT+eCtMpqcUeHyTatwv3ccB90NXm1b3I7ju0ueJKdD4rdRNMSGvhJpKBg /languages/matlab.min.js
|
||||||
|
sha384-WCARjpGMg5t8cmUExP5qptqMrv2bLOivRoGoWd4Szp1hbsTgY5bjfNa93b/3nzLp /languages/maxima.js
|
||||||
|
sha384-byJiBCS80ekFxsA8hSMUz/85cSGpR8iJLXtgA4ne1HoUhi9OhpAxiyUkvofK+EPk /languages/maxima.min.js
|
||||||
|
sha384-ht7BcAc0CIKXDnZpkBC+CIATa+nmlVJq8T7lYcTT4wL3cVUorJmlNP60R1HmtciB /languages/mel.js
|
||||||
|
sha384-aIunkp4Jt6FYn5B5JXJYmzv1JWzyH2EKndSk7FQTP2qTXTdkJ5Z9fn1sbmsZcxix /languages/mel.min.js
|
||||||
|
sha384-EHYbgt3v2BIQL5jLlcuw/wPpWi4/k4THTrM8abUiua2txZKdQZROI2v19EV59kE9 /languages/mercury.js
|
||||||
|
sha384-30GpQz/MBTw8r3EMwZw9ZcO4mGil8Tpp42wILoZwk2p7nuue3MPUJqSZUFRN+clh /languages/mercury.min.js
|
||||||
|
sha384-Fx0+eFAFHv2pT/+wp3iRcz0XyzyFhON0v43hzm/0Hg8kZaL1wyTiXXRmer5JXtuh /languages/mipsasm.js
|
||||||
|
sha384-VeVYtm/0co5ibFqSd/kX+kGQTsiOZmyuQryNrHfS6CXUV5ZIc7xPvRH5j6S/L0+s /languages/mipsasm.min.js
|
||||||
|
sha384-vNDQcY9j82VieNHSm6VvywFEqE1IpazKT+wc6nNAlgyRth0Q5IDAJsU2I2bViLjg /languages/mizar.js
|
||||||
|
sha384-8SC7Ruwdvd1+SPlb2pRPLDB0z4yZ7f2NFCaxstWjVOe0juUxyfPcB8IW16y1asNM /languages/mizar.min.js
|
||||||
|
sha384-jiIZXx3xJz2bMfvPXRNrLQa3aMQc2uochaxqpTHKhyp/n1NlhajevYBZ+Fo/vvSO /languages/mojolicious.js
|
||||||
|
sha384-Jp8o3RVLQbeL+zwk6HJj5u9ZtJqpOAYpEJoTWf9jTNAY7VbdWzpkn5Wqg/MT23j6 /languages/mojolicious.min.js
|
||||||
|
sha384-qPyUlyGLIGZTXY+9nSLlFKePSVjNPDq1ASazcWJY6GT00bjOdUa9VWljEMf0QLkv /languages/monkey.js
|
||||||
|
sha384-9HA3U8M7HCd1WR5uvsHJj6bIL6KKRhs+/VXESj+fx19NzOWwOsreLPrfqcu0HEcq /languages/monkey.min.js
|
||||||
|
sha384-/PMgko3hADGk4P7I7syAVV64UdXuxX74UIKHTuvNI68kb+XjWTJ9+xf7isKPt4GS /languages/moonscript.js
|
||||||
|
sha384-o6wOqi/YrJTP1RwvLJToEivNExOLPJvFaJg9w75wM+oddFsOnXCZYBRd9SSrPpk1 /languages/moonscript.min.js
|
||||||
|
sha384-0+gbKIZTythVzsIHEfdYFh7Vok0gyu61hrdrz1D7gPR8e48Vd8Yw3NL2BHEdEz/m /languages/n1ql.js
|
||||||
|
sha384-MCymMQ0g245o8QQ0VtG8yqMky6BpRHO9440uy1W89uSYZ7tw9QtU0Ldkdsut2xpN /languages/n1ql.min.js
|
||||||
|
sha384-0zwYIRp+RFHa2eWj2EMe6AJDCX2KfKE7AlKBVq8AamkpHAqejDU9BSr7tDAgqsT8 /languages/nestedtext.js
|
||||||
|
sha384-mPlAhcndTZiSf/096MZYt0sKFL4wHbU7ZbS8Ef4ftXdZMW/imxwA1mUFFWsoupPO /languages/nestedtext.min.js
|
||||||
|
sha384-6yimxEGm9AwY562ggpE8Y+JOP2k/CzmRiB1LCQYpXYotigZw0zrOZy16v63xHMv6 /languages/nginx.js
|
||||||
|
sha384-CppArOy5YFkx1rJ0ZUWNnkF+CAV5OO9pHj3Fk7Kox4p/9H581UDmEck1buzehnjF /languages/nginx.min.js
|
||||||
|
sha384-C/DqB/rQmHTp40wK0tlsJGtrAQ3Ty7Cl4MaPOJZ8OsvJRJ1gSxIwfw+m0jIgBylr /languages/nim.js
|
||||||
|
sha384-iPuHpT7TWALf59gGZeBuWFAHeSHgsQYvRSH+J5IZIQYFbUC/6t1L6Vco/++o4V5V /languages/nim.min.js
|
||||||
|
sha384-wwBKsXOEs1p7uKCdsKpaTaKuY93/AZKwArQlQbajfNO/TacO+xqQPtWAPlkD7yXo /languages/nix.js
|
||||||
|
sha384-vTCx2kYVScZBBnkBfni8njIypRHzdROvkOGvNYuSMM9jRoKf4EjCgwEUSfbEyBuc /languages/nix.min.js
|
||||||
|
sha384-KGmfVJS4fIftvV8NgTYPyc+Fk8q70L7VptEK1SE96a1moPgFkTmjAjnXaBwOdM9k /languages/node-repl.js
|
||||||
|
sha384-bMeqX6rAheuWPwXKwIXApYaGX1pFpfFPXNi/LWdqIe5IkfyOY8xmtx0/QbwwyqO6 /languages/node-repl.min.js
|
||||||
|
sha384-7+sWbpk0hDxCtP89+remHXjrHVDpkxMmLytwsxuBfRUbA4CIr5Z1axPTIK8/CCdl /languages/nsis.js
|
||||||
|
sha384-y8fkIUXy48IaLjKcQF4+JHp/PLBAVmzN22hNtYyKvBI9H1V+a/Ddu55qNYdxeApL /languages/nsis.min.js
|
||||||
|
sha384-hpU4KjKsUFgTYugJheYLkhFIEvecxLYra9Fg0ptjxqCxlUyMCJirJD/2IQDjZihD /languages/objectivec.js
|
||||||
|
sha384-azcLq84HapvEpXsDDJ2m1n7KovejGjCdGV4Ilw9xlcb6Yg2EyGNVr5dHZyoLdVDw /languages/objectivec.min.js
|
||||||
|
sha384-FMuGqFdDMUSuNDMdrHPQJ5mnHDcvRdz8JaSHcx9gKYEgRLWLJjrXG7VCqkP2Z9N9 /languages/ocaml.js
|
||||||
|
sha384-Ox9CQ7lFdK85QgO6+LBGHukeEXutfvnC8BSMg78nFV2OqScEbL4inhxDrfcAFdmO /languages/ocaml.min.js
|
||||||
|
sha384-Z/4xnTehESOE4GbVDtw6DLPHY1FZkXQsWY8ASl0O/KUKFlnP57x5yUbpcNdPZXfo /languages/openscad.js
|
||||||
|
sha384-MCsZ5TWBR3TqVriMMD2GjKxQbPLpaD4p5AqGkEXJ3ilBX2C4dg5gs52S6DZGlPyb /languages/openscad.min.js
|
||||||
|
sha384-8Ri1QfV00nlSvUMLD+a3+vNNC7SxQBBQLRqPV1FeR16w5CZ/ten/Od9x+0bTrp+c /languages/oxygene.js
|
||||||
|
sha384-uqzU/iZeZoBoO6lDL7csgDSfEo31LUjkuviLyLncwKMbmHABu+hLWTmfDFMv0Bps /languages/oxygene.min.js
|
||||||
|
sha384-Pv2BVHD+wans1hj1fIp4JsEh1V539s1JKhi0cZ9cnkZORX39AC/gmvwlixu+qaWk /languages/parser3.js
|
||||||
|
sha384-1yS8ug1eUO+Z0OnJW7aQxVFgQdQ9a5P7z+Kg5QBG5mtm5LXykIWbR3iYpa7b5/7+ /languages/parser3.min.js
|
||||||
|
sha384-qLoCYnNDldQrhnuTfd5BAc54A/ulhuQYKYDYiU+iJRa87k5owWYLvnL0ttLWmFKQ /languages/perl.js
|
||||||
|
sha384-PK5CVcMiWQ08dZFregTL56n1urRNEsSuWT6oiH1sFm/2ac/epI35hC5lx+YzjH5U /languages/perl.min.js
|
||||||
|
sha384-g5r7lzfJVsfOLu0JLLO/FAbx5ubLp2LHNjoYbfjXQWX05JUwtt2t2ZsJhuG7euXI /languages/pf.js
|
||||||
|
sha384-KhwtWK055t7soEc/+7Xl/5OI6lzVGUsrQP4vRHzEMWXhHHpSLlgm4gGBMoMhkv11 /languages/pf.min.js
|
||||||
|
sha384-EsaYwDVBonFGod8SpVtelwhaj6/8fG+8zAjciAJPe1DF1eqINj15Ulw8uQtazbcj /languages/pgsql.js
|
||||||
|
sha384-MBJTfvMpjn9gjGPo9ywtyx6TJL2DqDdoAzzg1z2kWnf9UAsiE6AI2MBDBCL3zQ+X /languages/pgsql.min.js
|
||||||
|
sha384-0XBmTxpMLuDjB2zdfbi3Lv4Yokm2e1YFGZ9mCmI5887Kpi23jMF5N7rPrf0GdoU/ /languages/php.js
|
||||||
|
sha384-Bv/Sxv6HlOzYOdV1iQpJTG3xiqGWIIMq9xsFfEX8ss7oNWMgKqOa/J2WSFG2m7Jd /languages/php.min.js
|
||||||
|
sha384-DQroZ14Erpo7ay5JoNeZEUe41UI7w0Jra2nABCsZVG/EJVO5Zfb2sS1fEt/YGGPe /languages/php-template.js
|
||||||
|
sha384-LIzUVMUAZRreWHTENKQ/wXuNK17VO4xPf+kR1a0aBKvM3S7vsedCcFJZC7N7vdDt /languages/php-template.min.js
|
||||||
|
sha384-MZKv9uidO1+VnHz8xWxPv6ACuLO5t823eanvTcKYnmi/ocdVYD8zKZNTxmF0nKEM /languages/plaintext.js
|
||||||
|
sha384-Z9EdtPaC8UiXHEq1WuQTdvqT+FwjLwaVTIwTCZW/dGfiU9nbF8Shvltrhqtw83Qb /languages/plaintext.min.js
|
||||||
|
sha384-siPPF8Kh47LDtAMCVqiYChab/NDWXi/qQNAewsQgTXX1QfsV30YCNKTzkd9PlRw9 /languages/pony.js
|
||||||
|
sha384-nBtPX/n+fZ4jiG7L334ZU7ctoqi/SlZgZSRqwr6LCAnkpEdViLfBlsX9RS/wmpUX /languages/pony.min.js
|
||||||
|
sha384-IovgHYXogGBldWibmA9aDifITNGdjEeaRUjvsJ3l4Rf4LVusXXcOZUCSxBEhXWqY /languages/powershell.js
|
||||||
|
sha384-q/8iVbv95DiFN+l7qeoBwJ0Wju7gozJemMfG3DdxiOR8CfA/2dKvKA3W5t4l/n9t /languages/powershell.min.js
|
||||||
|
sha384-BopnxjbSe9n9uSME7Fvirw5tNrLyBt4iJdfQ2OAJBy2yHlT5j6OriSDEoo/PIsmo /languages/processing.js
|
||||||
|
sha384-ODs5nLFYMjEkQw7tgNvYnGzUMfIEPHXpjYTbgdTE9SKYcqZayx7HFxx1xog022Md /languages/processing.min.js
|
||||||
|
sha384-Z+3QYyIZWZk6epGmBxHavO/NWhlm4b9jBqVy8SvwclxQnOtSh8HchGBcklguSupw /languages/profile.js
|
||||||
|
sha384-PQTau0Tc43UlFKdcn1SMiWtnxDoEXsHx6KokysZ40OTg5yuKaCSGz4PYj4vZ1rlz /languages/profile.min.js
|
||||||
|
sha384-fAof6DkVk+a3QlPV7mC9+D//Z4NSM3AIUqTIieUEsnrfsrF6GDD8GKtbvkLXUohG /languages/prolog.js
|
||||||
|
sha384-7efWBk7QdAk1TUr3ZC0YEw8aFov67m9G06Ojp0Yga1c2P+s05P7sxKkKIua7QyEO /languages/prolog.min.js
|
||||||
|
sha384-IBSZGeRgNEOG3+t3RE0uLeiV5QFOYfL/ONCRpBLMGvnBClAUhNUUmYdY8bLXnFUw /languages/properties.js
|
||||||
|
sha384-Hw+JDJl3BaJE0DQ2qZUhbHrTi4UQ/je7PqMHPNfThOlI71MLMj8jRMr+wB0Fa9LS /languages/properties.min.js
|
||||||
|
sha384-E/f3XoO0xXgO3ViuyBrcnU1vPIm7mj6sxhiHxjINCMOJRApEZMvz5w7mqwcklOwU /languages/protobuf.js
|
||||||
|
sha384-hzilYICGbCQxAqe/4prYVmbugDPsbivG09sWqiOZ2ryCU2a+lkd4F+kJKSS5vRbT /languages/protobuf.min.js
|
||||||
|
sha384-54aohV6hPIN4CU1dj2qvgXqpFFArFlzGRei+DT/MzbOoxgU2vx7cITGH6ORdualC /languages/puppet.js
|
||||||
|
sha384-66hg9EELNQEPzzK7tT42aA8jpsZEMQ7ZJAQS64lnGl+LcjCwlSyY8wKgLQWXcLjl /languages/puppet.min.js
|
||||||
|
sha384-FqryhhJ8lL4Eu69qBzexEWlcsrLU88l7Tr/q/HrTq1KxmkMrPCahvY0tQOGv7xLr /languages/purebasic.js
|
||||||
|
sha384-V9o4yDiTFuPL7DXmNGL/lWkau9FFJnPdVMWCD/An5TJ98wh8vJ8PpsM6AkFrY1cA /languages/purebasic.min.js
|
||||||
|
sha384-ueSSFZFqg7cVD0dpEqIk9EefJiJUYan0PH6I8u/p+bNLLx7dMs4J2keMaFXqCN8P /languages/python.js
|
||||||
|
sha384-eXRt+aAa2ig1yFVDQCLis8k9s/1dikTcigj+/R07yNdIxc8BAG/b1uHDyEW3of17 /languages/python.min.js
|
||||||
|
sha384-Zr5t2YaLU0giGFY/MuBA8UrK47JGpd9DuryiosYFRSQ6EJfTIF9mt8IJp/4/hpOU /languages/python-repl.js
|
||||||
|
sha384-n3iFvvEGhuJlnYpLj6JaCg7WiOhd8kQfKTZBDnpJwFZ0puRMhoq9JWtKDRw5Snyq /languages/python-repl.min.js
|
||||||
|
sha384-jbDhSY+xSToZjiv4ZRhsJr8c54y+rdgKcQm95DCs5kHjePehVFjmwexwM/nN023j /languages/q.js
|
||||||
|
sha384-HFXIcZ0LvZiSHVafazbK0tk3UqXJ52h+TDM7PXE9nwXdlGoQdEaO6jB8C0AwHVKT /languages/q.min.js
|
||||||
|
sha384-HCVHW7pMvjGea/PPGKyW7qFQY5jYk7I+/PNLyYBghnJa/OckmoFJUTdFB5KLpHzI /languages/qml.js
|
||||||
|
sha384-KoaFZ+SurMDejYc+mOUksnuJhOvgUNwYVNu2g1/sfDxKPftLaYfUnryv6UPMxUOm /languages/qml.min.js
|
||||||
|
sha384-Wnn+wk2C8+hIgCNyvLC1dFTsN01c/yrpVqpKDNYF1M0Rg5kYCCmO8o8lS/yY3w2D /languages/r.js
|
||||||
|
sha384-poz1JEq/ihCmK+1p8IXPoluMlou+rnb+4Q3DenGB+mkNBB/JZkT0c/TERX8D+RUX /languages/r.min.js
|
||||||
|
sha384-LgPEXtbB1p49xNJwVk4jFUeKCsBO4KYzJXohNB0yXUoqAaZw40EOv+ATmvPz05ON /languages/reasonml.js
|
||||||
|
sha384-mHLK6S3KIR9o7V8VntnoT9SkqmPabl5olgxhGGKD42w8c7rkzwmMyfQ5nf2Lev+2 /languages/reasonml.min.js
|
||||||
|
sha384-5qF0l0OhOZyV08mv2XbDiO8jWNG8nfRWTSzL8zbzyf6fVXBXmb53AzILlO81Da6D /languages/rib.js
|
||||||
|
sha384-eLuKzru+2Y+h1soOz+wYwCZsrYosaTYclgIsHLtDwFszmM/8WYtOSsz8OSAWhlyw /languages/rib.min.js
|
||||||
|
sha384-+Iw5Qx1PvDinvYj+XXbXlPRKeuIdXGESH1a483f3L9e/P8kj2VeHrHgcPfU+Tk9a /languages/roboconf.js
|
||||||
|
sha384-OLBjjst8j4l4BDrRVw4FPf6wGjnSsRWPQRT6TSbxtoxAwntVckZ19PFvq5Q9Fohj /languages/roboconf.min.js
|
||||||
|
sha384-t3zFnTYPPE2Mkc9ljJNBU/jn0dWls5baw+1011A3wcLbdaxL28IGt2VGR5xw94F2 /languages/routeros.js
|
||||||
|
sha384-uDKJQOz02YyuyWWObvXPPoDWSD23uUFZvoSGyGnxx0YSnOO6VkFBnQb2SKXl4GeJ /languages/routeros.min.js
|
||||||
|
sha384-8J+NM/G+jVrdJ4ME3cD5AOnjDSDlZIJNsBfci0Ik7SE8ja0HK9kibu3zLv16ntS+ /languages/rsl.js
|
||||||
|
sha384-l6Q6shA/PEP+ADFcUjhWcz36dJKPRbmt/mEQQ+wNV/8y5re620dXFnHM3IRukJWf /languages/rsl.min.js
|
||||||
|
sha384-6rhZe8x0LGCtYYrvHFTyO9QfZq2jHdoFsruI9B+lvUD0+Gc2Bn4JW0+cEC94ly3c /languages/ruby.js
|
||||||
|
sha384-Rlnlnjp0sedK9HVa29DtCyVFVEDRZyeTMQ6+aOKUaXptJmpVGTEmCk6ziXfmku6l /languages/ruby.min.js
|
||||||
|
sha384-v3j0rdHt+ZHzFpjt1ZtPkRFCe9yNNaGP5x0DJqwY8no/9oYZRyO+JDTNQ487GD4O /languages/ruleslanguage.js
|
||||||
|
sha384-VZSbuLxWr3z9w+GVtpP2wE5kCfBDljCytWiFK6oxOsMG37y8fMM1nV2gkBiCFCkd /languages/ruleslanguage.min.js
|
||||||
|
sha384-4hMItQrXDnquJWRbDiZ+cP4udu1pcJlCVFg3Ytv9OgWNbpIwzizsWbIwzA1BAJrI /languages/rust.js
|
||||||
|
sha384-kENps59cKQW5DV3vOEzpSp6tfGzWGpPYKz748i4gGziVSjieRtupNNu/WEwG3s8n /languages/rust.min.js
|
||||||
|
sha384-33xf+MQ6ZGuxdzLYco6audBlrEbjavYLbelF3x9Pi0Sl09pjWK8rcybXR12ur1Pu /languages/sas.js
|
||||||
|
sha384-iOnKe2LMBqjs68mlL/D1dkE5L+VIDjq12UUO1TyKepWMsj25PDJokYjsmaDrzqfy /languages/sas.min.js
|
||||||
|
sha384-nJDBfD6RjnrD2v78FPQOZRKaPnYTUg+3x0CdQOfq4GWVK2JJyQAL8bKbdp5aKb2o /languages/scala.js
|
||||||
|
sha384-1Gp1R5+JiIFAOpeRpk+ajfna9Bc8QyVBYdqwaso9mxfnseksw0wV6P+PKhU2TbGM /languages/scala.min.js
|
||||||
|
sha384-Obju7b+c0T4ZcBkQDQo/UBH79/qKpf6urE/Vh0ta9ieXxG83APtlPgPe88+mA8ip /languages/scheme.js
|
||||||
|
sha384-0wToQFz7iiWqirMz2oDLVp5zvMALcpCadc6YRGYOvT/eEum6RqzYfYFupG0wQQPV /languages/scheme.min.js
|
||||||
|
sha384-fGaAX5Zzb12xKDTXFbb3SlqBTY4pOdg9WM1uB+aVIVUNeo+x6/jjS19bh+cDAiS3 /languages/scilab.js
|
||||||
|
sha384-5Ns/QgX27yZCK/QUcSUokhq05527gV3usf0YL6ePB2UeB8JsodWYX8GZe4GhxWfb /languages/scilab.min.js
|
||||||
|
sha384-e5MJZgawCv4c+BexmFUMVQU6dLcIOXdieG/a1FPCIgnlGfBIEUUcFMMo+UrKMOtN /languages/scss.js
|
||||||
|
sha384-BYdYy4D3IX6eNNlKqsviUjxC6EqavvNwCVDMzmie3QXyArWdCQf+VvvFo4ciaNaW /languages/scss.min.js
|
||||||
|
sha384-BanM6jNzM3hgNw0Vu3gSe58a3MK3PSlMUzh5s8QaaDzIvTWgB0jNetV3rNxteKHy /languages/shell.js
|
||||||
|
sha384-mSZF08WaP0Llc4GMwE0KA2V9yfZQimO5PvfcXf2AATDdqri3Q7IdV7pfbhVPJCHV /languages/shell.min.js
|
||||||
|
sha384-HFLfyJiO+lBUM21kqb1b65qouJvQhlZYo2pi75ReJvNJud2SY6PhEUf3Kt72KPHS /languages/smali.js
|
||||||
|
sha384-2GrZ6a8N5i11PDfuj2MDvHVQppLDRwjSg1ns22QcwXe/xCliQwFwKItwovpu4w/M /languages/smali.min.js
|
||||||
|
sha384-uh0a4YIJJgOfmy9mc7dFG/6cZNy2w2IBDF2R7v/oDtU69u6V32XtesVddhOAxHys /languages/smalltalk.js
|
||||||
|
sha384-NX/WNuEVuD9lB5my4cHr1Y8mwOCGBNUOKoN5RirczkQHwStO59dPYpinzRw5awx5 /languages/smalltalk.min.js
|
||||||
|
sha384-YN19SSGMbNjKDX7L0nXq9EMHoRrmG+nOMVHOpmFCdKFmTkx6730rDLyjVpXdG28E /languages/sml.js
|
||||||
|
sha384-vTQfvc76nSatCi4u7So/dhhT+Yx+s4wEpy0iQeHWuBuCydVUrYhRw9ir10ep51p7 /languages/sml.min.js
|
||||||
|
sha384-G+15BqKtE4F+0zQjo2n2W94qD92OuSO8PXJqVu83Vdy7IORGyFgJ4bY1S076YdzS /languages/sqf.js
|
||||||
|
sha384-SHu8SsC+YDpzoAvLpey19YIUxPMOMXFR7ch5wrFLF3Ql0r1uXFUgRahft92sDxDb /languages/sqf.min.js
|
||||||
|
sha384-2sXmcW3eKeNDWiLtuq9NgFJC4NsLBN/fDTzZevmcgBrSERv6iO/k+c7r9T09Fb8J /languages/sql.js
|
||||||
|
sha384-jrnLoVn13sB+/dTfoAYVPhg0tYGQzzuzSGP3WTk8OvKAY0hDejpUXFYYI3bohAyW /languages/sql.min.js
|
||||||
|
sha384-1WgpgYBKXcVfPZEWIl0ySMYQQ1FCn3+ow+GpBDKdmpAl3/fbBfROvHMYodM9QNov /languages/stan.js
|
||||||
|
sha384-+ErHpKxaFQvybqwEN9lNuFFYkOLFP4Vy3FZUM089R/HXXPO1Ngt2AI/YwrhwlNpI /languages/stan.min.js
|
||||||
|
sha384-wEjtyOXoPaw6acxSlOBj3SqRP5KHKtNWnL9bKF/fbpltcTvUQg2wUdkSwRCLc7tx /languages/stata.js
|
||||||
|
sha384-aQKvTJSToV1aVHRtNEgpUcStt//3KHpzOaebJPh9WWSoIlLfXfH1mEWkmXG5tTrJ /languages/stata.min.js
|
||||||
|
sha384-h21RR8JxOEb+ixXXr0CdZa8DLT+uvHWRTouwa46CpJmggKui+OjBRlp3Xgdfgg0S /languages/step21.js
|
||||||
|
sha384-tGDA4o8Yz4itjdxfe9ZaPXLkHDmN24BeN6WYloLWCUcq/3ISFxz0srkA0pOkkS7z /languages/step21.min.js
|
||||||
|
sha384-NsS9D+JnpOpakrjCfwAAdBhkT8dNn3JSplu56xwT8+HZYDAS313g5x+pFzKhbpVu /languages/stylus.js
|
||||||
|
sha384-+LCddHx4GBdzLLANkRhAIIxSWKewLIbk2nVReuACLcFRhYXxi/fhoaRWMYr1kOfo /languages/stylus.min.js
|
||||||
|
sha384-T+zOrA18CmuIBXU4jbHaLbtHzmKC5lUR92I4GgZu6bAgq1XXi02i3FV3Jlx/vToT /languages/subunit.js
|
||||||
|
sha384-OXNa8wIt42aEgLXtReI/9YuiochL8Bde2XwTFECU3D28wAhZIy65FssjxPyqv+e0 /languages/subunit.min.js
|
||||||
|
sha384-+juhAXbxlgltos7eNuzta0Y7hfKqGQftMcEEStYqBJftSEdIiLd/FaviI8hs4d86 /languages/swift.js
|
||||||
|
sha384-CCauhmYx0fwWViYO6uiTII5shLTfiY/OzxKmLRTeCp8Ok81I2nXZS2Gb9lJVOSPC /languages/swift.min.js
|
||||||
|
sha384-aiBxE9pThWCLT4OeOVyie3fdXMiS19tjn1UL5fGBCkScQsn0Ql8Y+S7Wj6cqWuhD /languages/taggerscript.js
|
||||||
|
sha384-vvx4zgAYR25GypQyUKtqPPV9fFWSaddYg/4Ugg2xTMM3aj2C5GD6IrgDV2yD9RS2 /languages/taggerscript.min.js
|
||||||
|
sha384-zSR6E4lLWYfojIjciO/1lP0q1lb7QfNFhLphl/WZOj8dDAkhKHIIuJQAjM400eR5 /languages/tap.js
|
||||||
|
sha384-kboSn8zv4wAmWiuqYn/ezuIM3JlBZXrhwj6z9eAFjDRgIeOn7jI5jFD9//dmet5D /languages/tap.min.js
|
||||||
|
sha384-4mUkP7xbwFfOfSY2iCe6POEl4C1Sk7Dhv5XfHRnEq7CsXtMI5nMBmJgl7BQKTJ7M /languages/tcl.js
|
||||||
|
sha384-ovH4H9AIdxlsR5A3ukEQZz8kLzWTzrR0kQiigLOheyc7ayp9B2RWfGQ1H7EahfEd /languages/tcl.min.js
|
||||||
|
sha384-QFXhtmnTCKuFDJv/wMe6xQ2ni3gWkIV2E35TQqMVhkUn16fFBHJ7QTqKihKrSv4J /languages/thrift.js
|
||||||
|
sha384-ASWlS+c35ZtDxfVp5FRLBLcP2K08bXUBNze9hBdaxSdK/TZNTuEVbNrm0JaXQjCZ /languages/thrift.min.js
|
||||||
|
sha384-2tKIrwdmZXfQRP1JPbd5sUH8f2XpfbQt4uPVRCo2kNX8zZaFtz04rNwrVNO9VgeP /languages/tp.js
|
||||||
|
sha384-8x+WDkhIoa3jAPNEru6qCg2TIlnSnI1I0dflbbQkB0DrsgCguuCiH0c1E2bpsX/+ /languages/tp.min.js
|
||||||
|
sha384-tHBHJBc/9ycdpknrTdDSX+ZslgE1PfOgYaS0Xq4bpN6SvoRRNQcHVc1eObZOOfCH /languages/twig.js
|
||||||
|
sha384-30no7nkUE3FF//bmsLgfaXy4ly5YfGERgKHQtWhJpS+Ppfm//mOKF3YiWcYcpf8d /languages/twig.min.js
|
||||||
|
sha384-8v3YMaXFO9cmTNxsHWqwn9wJsV1jVO7rwx4huxqlEQpT/P2tuDbtm+Hs0EdYqu0a /languages/typescript.js
|
||||||
|
sha384-df1w1nJ43GNwmgbSCrT8YFIYyqFAm+lzj+b6ofuziX8Cfdg9QHFwbORDgAaj//wi /languages/typescript.min.js
|
||||||
|
sha384-uRDe6nvMbMejGKUv6ZuscDpAUEs68HxmudfcWK+1CS2xg17v2Kx4g6x6L8RqiV7A /languages/vala.js
|
||||||
|
sha384-k9lKwR136qS4QirtT8X0VU9MsU3/fnrticZ2xGFiUzbMifXfQJp58b4CMzBRIMEv /languages/vala.min.js
|
||||||
|
sha384-PWtej+1fbEACjPO/+i55ybZvKUn+nUtSRAkFKLQx6O4zrFbiIUlmnErVVh6oZAxa /languages/vbnet.js
|
||||||
|
sha384-9jaz2rSOFx5kYjZB+Loaf0a4ipf9Yvk08+8QskyozD+yaHdA14SgQKv0C52/UooX /languages/vbnet.min.js
|
||||||
|
sha384-QIqz8dDN+0gnTxcE4dXj3UlCXI3KCcqv5JGdOuW/qLByffT/5tgCDmlx91UaWxld /languages/vbscript.js
|
||||||
|
sha384-q4F1AGrMreQRFm4P6HrR+dLtRCcshPWWJ/0HW6ewizjoCBpBIsFxDVosvIHjLAY0 /languages/vbscript.min.js
|
||||||
|
sha384-oePEfeRdMD1Am3VdBZ6a5X4DTDbyrM0mz/Pgeqwx4mzhBPtazb3YWfsSRVlgKy1K /languages/vbscript-html.js
|
||||||
|
sha384-KFXIJ5qnoA95v2AANfmcsH5/wZRQWCc/08luJdFz69KdpQWCCSO0Cqe8EqM1NCpn /languages/vbscript-html.min.js
|
||||||
|
sha384-srkWqUZ2nQOiV6s+hv/qMtFlTsczgBxclXCIecoqWGC8O9zWxrPeO9IiZNR3z4Al /languages/verilog.js
|
||||||
|
sha384-B6CpSqhvLdv8UUjRUUpu2xQ3FiWoV+c38uT2wWcj4IWj9wMyAK+AzQ0mKbfrVjwU /languages/verilog.min.js
|
||||||
|
sha384-JPRkCXQaQtJWvVkf8cSnxdMD6HWiNo2Z5NTnxJBq57zQJqpjKuxFWGrTI8jCnVrD /languages/vhdl.js
|
||||||
|
sha384-UCgk+J6u0e/0TFYrhvHhyyoMAYuyJ6ATr+6CYWsxB0613LdtWr4dxNctmLDOmZyr /languages/vhdl.min.js
|
||||||
|
sha384-mq0tB6BMUaygd1/gw1OWkOWuTdZHYi1F3+JIKBvfmigeIWRCyE1K6SlPoeQkfrXe /languages/vim.js
|
||||||
|
sha384-VlQzka731dwu27YSdIJ3tZrqCAmRLQx0FdETJM+V77rW7mxiFH+uR26/E0njLbkd /languages/vim.min.js
|
||||||
|
sha384-TCN/hvup/XKpDtGmR/RyK6NSG247wkNROUpO2sAoJuwpMvcr4KP9HA+K5L2rvOKg /languages/wasm.js
|
||||||
|
sha384-J3pUKFGnHJH0czAle+lKF96F/08caYKJfTEzlt5dGbGTR9M4BwOeOqAgvSzsjOsP /languages/wasm.min.js
|
||||||
|
sha384-MmA81Z8x+bJA4AtSzyGKfvJc5zWqdDdkeHYpdutX16eItBb5FpQnHo16a1xHgNgI /languages/wren.js
|
||||||
|
sha384-kdC2tR9F+WuT3kdoIv5E/Xk5UbYbMN2PKaV6YCL73jTaEUu9XXQTE0OPzgFtD0GH /languages/wren.min.js
|
||||||
|
sha384-84n3ZSWWJWOuj+nQr6fRxTWhQzXtn0OxWyGL/59PeLhK/0Ii3XgZD9oMInf7+bCW /languages/x86asm.js
|
||||||
|
sha384-d1w6as9peRTJh7Tgj50482oZIrj0+1guPVjy1QRfEafPvwMu6JZ/J9CiS5cT8XE9 /languages/x86asm.min.js
|
||||||
|
sha384-3AfdVkg1rIYV2SjJAaUMdAqT8wopr4dlaqHWasJbJX8bL8CqypiXjz0pl2l/qTHq /languages/xl.js
|
||||||
|
sha384-Uiow6mnAgYX3te2byMLHtLeYI1Grz0vTcWl4ruu18ytHkJYJ4oNTxXBJooTtGt6M /languages/xl.min.js
|
||||||
|
sha384-Pgzg6a405W6U1xFjjSs5i8d7V81Tmt/TYn8HFOa+u1psDc8cbs8nC7BuyNXbWWRK /languages/xml.js
|
||||||
|
sha384-FQjSArDMJE4WMAJGcCNAV+IXIOljcIxM3UFAD2vxjedWmBnnDaAyqRG7AQHf/uM/ /languages/xml.min.js
|
||||||
|
sha384-3xffGVpx0lqfg4RGddf0r5YTKPEYJ7FA98ATDd15h0IUxjye3W+vxwPttOqE6a1T /languages/xquery.js
|
||||||
|
sha384-wAt95BmWcuvBaWjMs87dY5wVTi/0N8M5dbK7Hho6MJroy2Pf7IklbS9PIgJwoJH9 /languages/xquery.min.js
|
||||||
|
sha384-6GXi9L5BnOWPU6bzwYL78Zscp23qyDdMLZpZvp4mLzvF2qt0eY/DfsPHiFVXq4hv /languages/yaml.js
|
||||||
|
sha384-A/iMReLA0Bo3tLydBIoOQXQzYnrwL90jkHYUubrtERUGCbIuU7U0EHge0Xd2s5sr /languages/yaml.min.js
|
||||||
|
sha384-eOWOlMHlsmtwEYGUGrjQMzkzcNtmirjtXbk09FZfmKzRL3D9qVNDQsLjED9IPtLj /languages/zephir.js
|
||||||
|
sha384-ap/DivPODkFgKCmv8VYYP5DoGWCuK0Rgw81vlQWffne5IStSzZJtRpn2SbceuxpB /languages/zephir.min.js
|
||||||
|
sha384-VgE2hPaVGsCfTwIzyBSKdvPw8jxO3NxEhifKvSYzD9ZrcuvxMKb35aJ/6zzc+Mjv /highlight.js
|
||||||
|
sha384-dukG6aS9An83eGjW3FyljsaNUAn2XBICcqnV9RvddXccmlmoOvVixb+QdjV3v1XU /highlight.min.js
|
||||||
|
```
|
||||||
|
|
||||||
29
static/highlight/LICENSE
Normal file
29
static/highlight/LICENSE
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
BSD 3-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2006, Ivan Sagalaev.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
45
static/highlight/README.md
Normal file
45
static/highlight/README.md
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
# Highlight.js CDN Assets
|
||||||
|
|
||||||
|
[](https://packagephobia.now.sh/result?p=highlight.js)
|
||||||
|
|
||||||
|
**This package contains only the CDN build assets of highlight.js.**
|
||||||
|
|
||||||
|
This may be what you want if you'd like to install the pre-built distributable highlight.js client-side assets via NPM. If you're wanting to use highlight.js mainly on the server-side you likely want the [highlight.js][1] package instead.
|
||||||
|
|
||||||
|
To access these files via CDN:<br>
|
||||||
|
https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/
|
||||||
|
|
||||||
|
**If you just want a single .js file with the common languages built-in:
|
||||||
|
<https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js>**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Highlight.js
|
||||||
|
|
||||||
|
Highlight.js is a syntax highlighter written in JavaScript. It works in
|
||||||
|
the browser as well as on the server. It works with pretty much any
|
||||||
|
markup, doesn’t depend on any framework, and has automatic language
|
||||||
|
detection.
|
||||||
|
|
||||||
|
If you'd like to read the full README:<br>
|
||||||
|
<https://github.com/highlightjs/highlight.js/blob/main/README.md>
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Highlight.js is released under the BSD License. See [LICENSE][7] file
|
||||||
|
for details.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
The official site for the library is at <https://highlightjs.org/>.
|
||||||
|
|
||||||
|
The Github project may be found at: <https://github.com/highlightjs/highlight.js>
|
||||||
|
|
||||||
|
Further in-depth documentation for the API and other topics is at
|
||||||
|
<http://highlightjs.readthedocs.io/>.
|
||||||
|
|
||||||
|
A list of the Core Team and contributors can be found in the [CONTRIBUTORS.md][8] file.
|
||||||
|
|
||||||
|
[1]: https://www.npmjs.com/package/highlight.js
|
||||||
|
[7]: https://github.com/highlightjs/highlight.js/blob/main/LICENSE
|
||||||
|
[8]: https://github.com/highlightjs/highlight.js/blob/main/CONTRIBUTORS.md
|
||||||
2600
static/highlight/es/core.js
Normal file
2600
static/highlight/es/core.js
Normal file
File diff suppressed because it is too large
Load diff
306
static/highlight/es/core.min.js
vendored
Normal file
306
static/highlight/es/core.min.js
vendored
Normal file
|
|
@ -0,0 +1,306 @@
|
||||||
|
/*!
|
||||||
|
Highlight.js v11.11.1 (git: 08cb242e7d)
|
||||||
|
(c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
|
||||||
|
License: BSD-3-Clause
|
||||||
|
*/
|
||||||
|
function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{
|
||||||
|
throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
|
||||||
|
throw Error("set is read-only")
|
||||||
|
}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{
|
||||||
|
const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
|
||||||
|
})),t}class t{constructor(e){
|
||||||
|
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
||||||
|
ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
|
||||||
|
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
||||||
|
}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||||
|
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
|
||||||
|
;class r{constructor(e,t){
|
||||||
|
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
|
||||||
|
this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
|
||||||
|
if(e.startsWith("language:"))return e.replace("language:","language-")
|
||||||
|
;if(e.includes(".")){const n=e.split(".")
|
||||||
|
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
|
||||||
|
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
|
||||||
|
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
|
||||||
|
this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const t={children:[]}
|
||||||
|
;return Object.assign(t,e),t};class a{constructor(){
|
||||||
|
this.rootNode=o(),this.stack=[this.rootNode]}get top(){
|
||||||
|
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
|
||||||
|
this.top.children.push(e)}openNode(e){const t=o({scope:e})
|
||||||
|
;this.add(t),this.stack.push(t)}closeNode(){
|
||||||
|
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
|
||||||
|
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
|
||||||
|
walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
|
||||||
|
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
||||||
|
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
|
||||||
|
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
|
||||||
|
a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
|
||||||
|
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
|
||||||
|
this.closeNode()}__addSublanguage(e,t){const n=e.root
|
||||||
|
;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
|
||||||
|
return new r(this,this.options).value()}finalize(){
|
||||||
|
return this.closeAllNodes(),!0}}function l(e){
|
||||||
|
return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
|
||||||
|
function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
|
||||||
|
function h(...e){return e.map((e=>l(e))).join("")}function f(...e){const t=(e=>{
|
||||||
|
const t=e[e.length-1]
|
||||||
|
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
||||||
|
})(e);return"("+(t.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
|
||||||
|
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||||
|
const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||||
|
;function m(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||||
|
;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
|
||||||
|
s+=i.substring(0,e.index),
|
||||||
|
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
|
||||||
|
"("===e[0]&&n++)}return s})).map((e=>`(${e})`)).join(t)}
|
||||||
|
const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",O={
|
||||||
|
begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",
|
||||||
|
illegal:"\\n",contains:[O]},v={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||||
|
contains:[O]},N=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
|
||||||
|
contains:[]},n);s.contains.push({scope:"doctag",
|
||||||
|
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
||||||
|
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
||||||
|
;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||||
|
;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
|
||||||
|
},S=N("//","$"),M=N("/\\*","\\*/"),R=N("#","$");var A=Object.freeze({
|
||||||
|
__proto__:null,APOS_STRING_MODE:k,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:{
|
||||||
|
scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:N,
|
||||||
|
C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:{scope:"number",
|
||||||
|
begin:y,relevance:0},C_NUMBER_RE:y,END_SAME_AS_BEGIN:e=>Object.assign(e,{
|
||||||
|
"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
|
||||||
|
t.data._beginMatch!==e[1]&&t.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
|
||||||
|
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+x,relevance:0},
|
||||||
|
NUMBER_MODE:{scope:"number",begin:_,relevance:0},NUMBER_RE:_,
|
||||||
|
PHRASAL_WORDS_MODE:{
|
||||||
|
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
||||||
|
},QUOTE_STRING_MODE:v,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
|
||||||
|
end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},
|
||||||
|
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
||||||
|
SHEBANG:(e={})=>{const t=/^#![ ]*\//
|
||||||
|
;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
|
||||||
|
end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
|
||||||
|
TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:x,
|
||||||
|
UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0}});function j(e,t){
|
||||||
|
"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
|
||||||
|
void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
|
||||||
|
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
||||||
|
e.__beforeBegin=j,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||||
|
void 0===e.relevance&&(e.relevance=0))}function L(e,t){
|
||||||
|
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
|
||||||
|
if(e.match){
|
||||||
|
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
||||||
|
;e.begin=e.match,delete e.match}}function P(e,t){
|
||||||
|
void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
|
||||||
|
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
||||||
|
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
|
||||||
|
})),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
|
||||||
|
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
||||||
|
},e.relevance=0,delete n.beforeMatch
|
||||||
|
},H=["of","and","for","in","not","or","if","then","parent","list","value"]
|
||||||
|
;function C(e,t,n="keyword"){const i=Object.create(null)
|
||||||
|
;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
|
||||||
|
Object.assign(i,C(e[n],t,n))})),i;function s(e,n){
|
||||||
|
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
|
||||||
|
;i[n[0]]=[e,$(n[0],n[1])]}))}}function $(e,t){
|
||||||
|
return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const U={},z=e=>{
|
||||||
|
console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{
|
||||||
|
U[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),U[`${e}/${t}`]=!0)
|
||||||
|
},G=Error();function K(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
|
||||||
|
;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
|
||||||
|
;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function F(e){(e=>{
|
||||||
|
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
||||||
|
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
||||||
|
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
||||||
|
}),(e=>{if(Array.isArray(e.begin)){
|
||||||
|
if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||||
|
G
|
||||||
|
;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),
|
||||||
|
G;K(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
|
||||||
|
if(Array.isArray(e.end)){
|
||||||
|
if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||||
|
G
|
||||||
|
;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),
|
||||||
|
G;K(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function Z(e){
|
||||||
|
function t(t,n){
|
||||||
|
return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||||
|
}class n{constructor(){
|
||||||
|
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
||||||
|
addRule(e,t){
|
||||||
|
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
||||||
|
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||||
|
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(m(e,{joinWith:"|"
|
||||||
|
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
||||||
|
;const t=this.matcherRe.exec(e);if(!t)return null
|
||||||
|
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
|
||||||
|
;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
|
||||||
|
this.rules=[],this.multiRegexes=[],
|
||||||
|
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
||||||
|
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
|
||||||
|
;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
|
||||||
|
t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
|
||||||
|
return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
|
||||||
|
this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
|
||||||
|
const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
|
||||||
|
;let n=t.exec(e)
|
||||||
|
;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
|
||||||
|
const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
|
||||||
|
return n&&(this.regexIndex+=n.position+1,
|
||||||
|
this.regexIndex===this.count&&this.considerAll()),n}}
|
||||||
|
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
||||||
|
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
||||||
|
;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
|
||||||
|
;if(r.isCompiled)return a
|
||||||
|
;[I,B,F,D].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),
|
||||||
|
r.__beforeBegin=null,[T,L,P].forEach((e=>e(r,o))),r.isCompiled=!0;let c=null
|
||||||
|
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
|
||||||
|
c=r.keywords.$pattern,
|
||||||
|
delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=C(r.keywords,e.case_insensitive)),
|
||||||
|
a.keywordPatternRe=t(c,!0),
|
||||||
|
o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
|
||||||
|
r.end&&(a.endRe=t(a.end)),
|
||||||
|
a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
|
||||||
|
r.illegal&&(a.illegalRe=t(r.illegal)),
|
||||||
|
r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>i(e,{
|
||||||
|
variants:null},t)))),e.cachedVariants?e.cachedVariants:V(e)?i(e,{
|
||||||
|
starts:e.starts?i(e.starts):null
|
||||||
|
}):Object.isFrozen(e)?i(e):e))("self"===e?r:e)))),r.contains.forEach((e=>{n(e,a)
|
||||||
|
})),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
|
||||||
|
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
|
||||||
|
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
||||||
|
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function V(e){
|
||||||
|
return!!e&&(e.endsWithParent||V(e.starts))}class q extends Error{
|
||||||
|
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
|
||||||
|
const J=n,Y=i,Q=Symbol("nomatch"),ee=n=>{
|
||||||
|
const i=Object.create(null),s=Object.create(null),r=[];let o=!0
|
||||||
|
;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
|
||||||
|
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
|
||||||
|
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
||||||
|
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
||||||
|
cssSelector:"pre code",languages:null,__emitter:c};function b(e){
|
||||||
|
return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
|
||||||
|
;"object"==typeof t?(i=e,
|
||||||
|
n=t.ignoreIllegals,s=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||||
|
X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||||
|
s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};N("before:highlight",r)
|
||||||
|
;const o=r.result?r.result:E(r.language,r.code,n)
|
||||||
|
;return o.code=r.code,N("after:highlight",o),o}function E(e,n,s,r){
|
||||||
|
const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(R)
|
||||||
|
;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(R),n=""
|
||||||
|
;for(;t;){n+=R.substring(e,t.index)
|
||||||
|
;const s=w.case_insensitive?t[0].toLowerCase():t[0],r=(i=s,N.keywords[i]);if(r){
|
||||||
|
const[e,i]=r
|
||||||
|
;if(M.addText(n),n="",c[s]=(c[s]||0)+1,c[s]<=7&&(A+=i),e.startsWith("_"))n+=t[0];else{
|
||||||
|
const n=w.classNameAliases[e]||e;u(t[0],n)}}else n+=t[0]
|
||||||
|
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(R)}var i
|
||||||
|
;n+=R.substring(e),M.addText(n)}function g(){null!=N.subLanguage?(()=>{
|
||||||
|
if(""===R)return;let e=null;if("string"==typeof N.subLanguage){
|
||||||
|
if(!i[N.subLanguage])return void M.addText(R)
|
||||||
|
;e=E(N.subLanguage,R,!0,S[N.subLanguage]),S[N.subLanguage]=e._top
|
||||||
|
}else e=x(R,N.subLanguage.length?N.subLanguage:null)
|
||||||
|
;N.relevance>0&&(A+=e.relevance),M.__addSublanguage(e._emitter,e.language)
|
||||||
|
})():l(),R=""}function u(e,t){
|
||||||
|
""!==e&&(M.startScope(t),M.addText(e),M.endScope())}function d(e,t){let n=1
|
||||||
|
;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
|
||||||
|
const i=w.classNameAliases[e[n]]||e[n],s=t[n];i?u(s,i):(R=s,l(),R=""),n++}}
|
||||||
|
function h(e,t){
|
||||||
|
return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),
|
||||||
|
e.beginScope&&(e.beginScope._wrap?(u(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||||
|
R=""):e.beginScope._multi&&(d(e.beginScope,t),R="")),N=Object.create(e,{parent:{
|
||||||
|
value:N}}),N}function f(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
|
||||||
|
;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
|
||||||
|
;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
|
||||||
|
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
||||||
|
if(e.endsWithParent)return f(e.parent,n,i)}function b(e){
|
||||||
|
return 0===N.matcher.regexIndex?(R+=e[0],1):(T=!0,0)}function m(e){
|
||||||
|
const t=e[0],i=n.substring(e.index),s=f(N,e,i);if(!s)return Q;const r=N
|
||||||
|
;N.endScope&&N.endScope._wrap?(g(),
|
||||||
|
u(t,N.endScope._wrap)):N.endScope&&N.endScope._multi?(g(),
|
||||||
|
d(N.endScope,e)):r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),
|
||||||
|
g(),r.excludeEnd&&(R=t));do{
|
||||||
|
N.scope&&M.closeNode(),N.skip||N.subLanguage||(A+=N.relevance),N=N.parent
|
||||||
|
}while(N!==s.parent);return s.starts&&h(s.starts,e),r.returnEnd?0:t.length}
|
||||||
|
let _={};function y(i,r){const a=r&&r[0];if(R+=i,null==a)return g(),0
|
||||||
|
;if("begin"===_.type&&"end"===r.type&&_.index===r.index&&""===a){
|
||||||
|
if(R+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||||
|
;throw t.languageName=e,t.badRule=_.rule,t}return 1}
|
||||||
|
if(_=r,"begin"===r.type)return(e=>{
|
||||||
|
const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
|
||||||
|
;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return b(n)
|
||||||
|
;return i.skip?R+=n:(i.excludeBegin&&(R+=n),
|
||||||
|
g(),i.returnBegin||i.excludeBegin||(R=n)),h(i,e),i.returnBegin?0:n.length})(r)
|
||||||
|
;if("illegal"===r.type&&!s){
|
||||||
|
const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
||||||
|
;throw e.mode=N,e}if("end"===r.type){const e=m(r);if(e!==Q)return e}
|
||||||
|
if("illegal"===r.type&&""===a)return R+="\n",1
|
||||||
|
;if(I>1e5&&I>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||||
|
;return R+=a,a.length}const w=O(e)
|
||||||
|
;if(!w)throw z(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||||
|
;const k=Z(w);let v="",N=r||k;const S={},M=new p.__emitter(p);(()=>{const e=[]
|
||||||
|
;for(let t=N;t!==w;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||||
|
;e.forEach((e=>M.openNode(e)))})();let R="",A=0,j=0,I=0,T=!1;try{
|
||||||
|
if(w.__emitTokens)w.__emitTokens(n,M);else{for(N.matcher.considerAll();;){
|
||||||
|
I++,T?T=!1:N.matcher.considerAll(),N.matcher.lastIndex=j
|
||||||
|
;const e=N.matcher.exec(n);if(!e)break;const t=y(n.substring(j,e.index),e)
|
||||||
|
;j=e.index+t}y(n.substring(j))}return M.finalize(),v=M.toHTML(),{language:e,
|
||||||
|
value:v,relevance:A,illegal:!1,_emitter:M,_top:N}}catch(t){
|
||||||
|
if(t.message&&t.message.includes("Illegal"))return{language:e,value:J(n),
|
||||||
|
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:j,
|
||||||
|
context:n.slice(j-100,j+100),mode:t.mode,resultSoFar:v},_emitter:M};if(o)return{
|
||||||
|
language:e,value:J(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:N}
|
||||||
|
;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
|
||||||
|
const t={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
|
||||||
|
;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(v).map((t=>E(t,e,!1)))
|
||||||
|
;s.unshift(n);const r=s.sort(((e,t)=>{
|
||||||
|
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
||||||
|
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
||||||
|
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=r,c=o
|
||||||
|
;return c.secondBest=a,c}function _(e){let t=null;const n=(e=>{
|
||||||
|
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
||||||
|
;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||||
|
;return t||(W(a.replace("{}",n[1])),
|
||||||
|
W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||||
|
return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return
|
||||||
|
;if(N("before:highlightElement",{el:e,language:n
|
||||||
|
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
|
||||||
|
;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||||
|
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
||||||
|
console.warn("The element with unescaped HTML:"),
|
||||||
|
console.warn(e)),p.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||||
|
;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||||
|
;e.innerHTML=r.value,e.dataset.highlighted="yes",((e,t,n)=>{const i=t&&s[t]||n
|
||||||
|
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
||||||
|
})(e,n,r.language),e.result={language:r.language,re:r.relevance,
|
||||||
|
relevance:r.relevance},r.secondBest&&(e.secondBest={
|
||||||
|
language:r.secondBest.language,relevance:r.secondBest.relevance
|
||||||
|
}),N("after:highlightElement",{el:e,result:r,text:i})}let y=!1;function w(){
|
||||||
|
if("loading"===document.readyState)return y||window.addEventListener("DOMContentLoaded",(()=>{
|
||||||
|
w()}),!1),void(y=!0);document.querySelectorAll(p.cssSelector).forEach(_)}
|
||||||
|
function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
|
||||||
|
function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||||
|
s[e.toLowerCase()]=t}))}function v(e){const t=O(e)
|
||||||
|
;return t&&!t.disableAutodetect}function N(e,t){const n=e;r.forEach((e=>{
|
||||||
|
e[n]&&e[n](t)}))}Object.assign(n,{highlight:m,highlightAuto:x,highlightAll:w,
|
||||||
|
highlightElement:_,
|
||||||
|
highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||||
|
X("10.7.0","Please use highlightElement now."),_(e)),configure:e=>{p=Y(p,e)},
|
||||||
|
initHighlighting:()=>{
|
||||||
|
w(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||||
|
initHighlightingOnLoad:()=>{
|
||||||
|
w(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||||
|
},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
|
||||||
|
if(z("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||||
|
!o)throw t;z(t),s=l}
|
||||||
|
s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&k(s.aliases,{
|
||||||
|
languageName:e})},unregisterLanguage:e=>{delete i[e]
|
||||||
|
;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
|
||||||
|
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:k,
|
||||||
|
autoDetection:v,inherit:Y,addPlugin:e=>{(e=>{
|
||||||
|
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
|
||||||
|
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
||||||
|
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
|
||||||
|
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
|
||||||
|
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
|
||||||
|
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.11.1",n.regex={concat:h,
|
||||||
|
lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
|
||||||
|
;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n
|
||||||
|
},te=ee({});te.newInstance=()=>ee({});export{te as default};
|
||||||
2600
static/highlight/es/highlight.js
Normal file
2600
static/highlight/es/highlight.js
Normal file
File diff suppressed because it is too large
Load diff
306
static/highlight/es/highlight.min.js
vendored
Normal file
306
static/highlight/es/highlight.min.js
vendored
Normal file
|
|
@ -0,0 +1,306 @@
|
||||||
|
/*!
|
||||||
|
Highlight.js v11.11.1 (git: 08cb242e7d)
|
||||||
|
(c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
|
||||||
|
License: BSD-3-Clause
|
||||||
|
*/
|
||||||
|
function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{
|
||||||
|
throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
|
||||||
|
throw Error("set is read-only")
|
||||||
|
}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{
|
||||||
|
const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
|
||||||
|
})),t}class t{constructor(e){
|
||||||
|
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
||||||
|
ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
|
||||||
|
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
||||||
|
}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||||
|
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
|
||||||
|
;class r{constructor(e,t){
|
||||||
|
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
|
||||||
|
this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
|
||||||
|
if(e.startsWith("language:"))return e.replace("language:","language-")
|
||||||
|
;if(e.includes(".")){const n=e.split(".")
|
||||||
|
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
|
||||||
|
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
|
||||||
|
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
|
||||||
|
this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const t={children:[]}
|
||||||
|
;return Object.assign(t,e),t};class a{constructor(){
|
||||||
|
this.rootNode=o(),this.stack=[this.rootNode]}get top(){
|
||||||
|
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
|
||||||
|
this.top.children.push(e)}openNode(e){const t=o({scope:e})
|
||||||
|
;this.add(t),this.stack.push(t)}closeNode(){
|
||||||
|
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
|
||||||
|
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
|
||||||
|
walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
|
||||||
|
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
||||||
|
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
|
||||||
|
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
|
||||||
|
a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
|
||||||
|
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
|
||||||
|
this.closeNode()}__addSublanguage(e,t){const n=e.root
|
||||||
|
;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
|
||||||
|
return new r(this,this.options).value()}finalize(){
|
||||||
|
return this.closeAllNodes(),!0}}function l(e){
|
||||||
|
return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
|
||||||
|
function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
|
||||||
|
function h(...e){return e.map((e=>l(e))).join("")}function f(...e){const t=(e=>{
|
||||||
|
const t=e[e.length-1]
|
||||||
|
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
||||||
|
})(e);return"("+(t.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
|
||||||
|
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||||
|
const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||||
|
;function m(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||||
|
;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
|
||||||
|
s+=i.substring(0,e.index),
|
||||||
|
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
|
||||||
|
"("===e[0]&&n++)}return s})).map((e=>`(${e})`)).join(t)}
|
||||||
|
const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",O={
|
||||||
|
begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",
|
||||||
|
illegal:"\\n",contains:[O]},v={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||||
|
contains:[O]},N=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
|
||||||
|
contains:[]},n);s.contains.push({scope:"doctag",
|
||||||
|
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
||||||
|
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
||||||
|
;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||||
|
;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
|
||||||
|
},S=N("//","$"),M=N("/\\*","\\*/"),R=N("#","$");var A=Object.freeze({
|
||||||
|
__proto__:null,APOS_STRING_MODE:k,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:{
|
||||||
|
scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:N,
|
||||||
|
C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:{scope:"number",
|
||||||
|
begin:y,relevance:0},C_NUMBER_RE:y,END_SAME_AS_BEGIN:e=>Object.assign(e,{
|
||||||
|
"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
|
||||||
|
t.data._beginMatch!==e[1]&&t.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
|
||||||
|
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+x,relevance:0},
|
||||||
|
NUMBER_MODE:{scope:"number",begin:_,relevance:0},NUMBER_RE:_,
|
||||||
|
PHRASAL_WORDS_MODE:{
|
||||||
|
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
||||||
|
},QUOTE_STRING_MODE:v,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
|
||||||
|
end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},
|
||||||
|
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
||||||
|
SHEBANG:(e={})=>{const t=/^#![ ]*\//
|
||||||
|
;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
|
||||||
|
end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
|
||||||
|
TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:x,
|
||||||
|
UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0}});function j(e,t){
|
||||||
|
"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
|
||||||
|
void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
|
||||||
|
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
||||||
|
e.__beforeBegin=j,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||||
|
void 0===e.relevance&&(e.relevance=0))}function L(e,t){
|
||||||
|
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
|
||||||
|
if(e.match){
|
||||||
|
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
||||||
|
;e.begin=e.match,delete e.match}}function P(e,t){
|
||||||
|
void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
|
||||||
|
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
||||||
|
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
|
||||||
|
})),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
|
||||||
|
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
||||||
|
},e.relevance=0,delete n.beforeMatch
|
||||||
|
},H=["of","and","for","in","not","or","if","then","parent","list","value"]
|
||||||
|
;function C(e,t,n="keyword"){const i=Object.create(null)
|
||||||
|
;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
|
||||||
|
Object.assign(i,C(e[n],t,n))})),i;function s(e,n){
|
||||||
|
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
|
||||||
|
;i[n[0]]=[e,$(n[0],n[1])]}))}}function $(e,t){
|
||||||
|
return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const U={},z=e=>{
|
||||||
|
console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{
|
||||||
|
U[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),U[`${e}/${t}`]=!0)
|
||||||
|
},G=Error();function K(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
|
||||||
|
;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
|
||||||
|
;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function F(e){(e=>{
|
||||||
|
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
||||||
|
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
||||||
|
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
||||||
|
}),(e=>{if(Array.isArray(e.begin)){
|
||||||
|
if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||||
|
G
|
||||||
|
;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),
|
||||||
|
G;K(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
|
||||||
|
if(Array.isArray(e.end)){
|
||||||
|
if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||||
|
G
|
||||||
|
;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),
|
||||||
|
G;K(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function Z(e){
|
||||||
|
function t(t,n){
|
||||||
|
return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||||
|
}class n{constructor(){
|
||||||
|
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
||||||
|
addRule(e,t){
|
||||||
|
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
||||||
|
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||||
|
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(m(e,{joinWith:"|"
|
||||||
|
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
||||||
|
;const t=this.matcherRe.exec(e);if(!t)return null
|
||||||
|
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
|
||||||
|
;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
|
||||||
|
this.rules=[],this.multiRegexes=[],
|
||||||
|
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
||||||
|
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
|
||||||
|
;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
|
||||||
|
t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
|
||||||
|
return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
|
||||||
|
this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
|
||||||
|
const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
|
||||||
|
;let n=t.exec(e)
|
||||||
|
;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
|
||||||
|
const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
|
||||||
|
return n&&(this.regexIndex+=n.position+1,
|
||||||
|
this.regexIndex===this.count&&this.considerAll()),n}}
|
||||||
|
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
||||||
|
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
||||||
|
;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
|
||||||
|
;if(r.isCompiled)return a
|
||||||
|
;[I,B,F,D].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),
|
||||||
|
r.__beforeBegin=null,[T,L,P].forEach((e=>e(r,o))),r.isCompiled=!0;let c=null
|
||||||
|
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
|
||||||
|
c=r.keywords.$pattern,
|
||||||
|
delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=C(r.keywords,e.case_insensitive)),
|
||||||
|
a.keywordPatternRe=t(c,!0),
|
||||||
|
o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
|
||||||
|
r.end&&(a.endRe=t(a.end)),
|
||||||
|
a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
|
||||||
|
r.illegal&&(a.illegalRe=t(r.illegal)),
|
||||||
|
r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>i(e,{
|
||||||
|
variants:null},t)))),e.cachedVariants?e.cachedVariants:V(e)?i(e,{
|
||||||
|
starts:e.starts?i(e.starts):null
|
||||||
|
}):Object.isFrozen(e)?i(e):e))("self"===e?r:e)))),r.contains.forEach((e=>{n(e,a)
|
||||||
|
})),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
|
||||||
|
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
|
||||||
|
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
||||||
|
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function V(e){
|
||||||
|
return!!e&&(e.endsWithParent||V(e.starts))}class q extends Error{
|
||||||
|
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
|
||||||
|
const J=n,Y=i,Q=Symbol("nomatch"),ee=n=>{
|
||||||
|
const i=Object.create(null),s=Object.create(null),r=[];let o=!0
|
||||||
|
;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
|
||||||
|
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
|
||||||
|
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
||||||
|
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
||||||
|
cssSelector:"pre code",languages:null,__emitter:c};function b(e){
|
||||||
|
return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
|
||||||
|
;"object"==typeof t?(i=e,
|
||||||
|
n=t.ignoreIllegals,s=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||||
|
X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||||
|
s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};N("before:highlight",r)
|
||||||
|
;const o=r.result?r.result:E(r.language,r.code,n)
|
||||||
|
;return o.code=r.code,N("after:highlight",o),o}function E(e,n,s,r){
|
||||||
|
const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(R)
|
||||||
|
;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(R),n=""
|
||||||
|
;for(;t;){n+=R.substring(e,t.index)
|
||||||
|
;const s=w.case_insensitive?t[0].toLowerCase():t[0],r=(i=s,N.keywords[i]);if(r){
|
||||||
|
const[e,i]=r
|
||||||
|
;if(M.addText(n),n="",c[s]=(c[s]||0)+1,c[s]<=7&&(A+=i),e.startsWith("_"))n+=t[0];else{
|
||||||
|
const n=w.classNameAliases[e]||e;u(t[0],n)}}else n+=t[0]
|
||||||
|
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(R)}var i
|
||||||
|
;n+=R.substring(e),M.addText(n)}function g(){null!=N.subLanguage?(()=>{
|
||||||
|
if(""===R)return;let e=null;if("string"==typeof N.subLanguage){
|
||||||
|
if(!i[N.subLanguage])return void M.addText(R)
|
||||||
|
;e=E(N.subLanguage,R,!0,S[N.subLanguage]),S[N.subLanguage]=e._top
|
||||||
|
}else e=x(R,N.subLanguage.length?N.subLanguage:null)
|
||||||
|
;N.relevance>0&&(A+=e.relevance),M.__addSublanguage(e._emitter,e.language)
|
||||||
|
})():l(),R=""}function u(e,t){
|
||||||
|
""!==e&&(M.startScope(t),M.addText(e),M.endScope())}function d(e,t){let n=1
|
||||||
|
;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
|
||||||
|
const i=w.classNameAliases[e[n]]||e[n],s=t[n];i?u(s,i):(R=s,l(),R=""),n++}}
|
||||||
|
function h(e,t){
|
||||||
|
return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),
|
||||||
|
e.beginScope&&(e.beginScope._wrap?(u(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||||
|
R=""):e.beginScope._multi&&(d(e.beginScope,t),R="")),N=Object.create(e,{parent:{
|
||||||
|
value:N}}),N}function f(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
|
||||||
|
;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
|
||||||
|
;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
|
||||||
|
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
||||||
|
if(e.endsWithParent)return f(e.parent,n,i)}function b(e){
|
||||||
|
return 0===N.matcher.regexIndex?(R+=e[0],1):(T=!0,0)}function m(e){
|
||||||
|
const t=e[0],i=n.substring(e.index),s=f(N,e,i);if(!s)return Q;const r=N
|
||||||
|
;N.endScope&&N.endScope._wrap?(g(),
|
||||||
|
u(t,N.endScope._wrap)):N.endScope&&N.endScope._multi?(g(),
|
||||||
|
d(N.endScope,e)):r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),
|
||||||
|
g(),r.excludeEnd&&(R=t));do{
|
||||||
|
N.scope&&M.closeNode(),N.skip||N.subLanguage||(A+=N.relevance),N=N.parent
|
||||||
|
}while(N!==s.parent);return s.starts&&h(s.starts,e),r.returnEnd?0:t.length}
|
||||||
|
let _={};function y(i,r){const a=r&&r[0];if(R+=i,null==a)return g(),0
|
||||||
|
;if("begin"===_.type&&"end"===r.type&&_.index===r.index&&""===a){
|
||||||
|
if(R+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||||
|
;throw t.languageName=e,t.badRule=_.rule,t}return 1}
|
||||||
|
if(_=r,"begin"===r.type)return(e=>{
|
||||||
|
const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
|
||||||
|
;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return b(n)
|
||||||
|
;return i.skip?R+=n:(i.excludeBegin&&(R+=n),
|
||||||
|
g(),i.returnBegin||i.excludeBegin||(R=n)),h(i,e),i.returnBegin?0:n.length})(r)
|
||||||
|
;if("illegal"===r.type&&!s){
|
||||||
|
const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
||||||
|
;throw e.mode=N,e}if("end"===r.type){const e=m(r);if(e!==Q)return e}
|
||||||
|
if("illegal"===r.type&&""===a)return R+="\n",1
|
||||||
|
;if(I>1e5&&I>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||||
|
;return R+=a,a.length}const w=O(e)
|
||||||
|
;if(!w)throw z(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||||
|
;const k=Z(w);let v="",N=r||k;const S={},M=new p.__emitter(p);(()=>{const e=[]
|
||||||
|
;for(let t=N;t!==w;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||||
|
;e.forEach((e=>M.openNode(e)))})();let R="",A=0,j=0,I=0,T=!1;try{
|
||||||
|
if(w.__emitTokens)w.__emitTokens(n,M);else{for(N.matcher.considerAll();;){
|
||||||
|
I++,T?T=!1:N.matcher.considerAll(),N.matcher.lastIndex=j
|
||||||
|
;const e=N.matcher.exec(n);if(!e)break;const t=y(n.substring(j,e.index),e)
|
||||||
|
;j=e.index+t}y(n.substring(j))}return M.finalize(),v=M.toHTML(),{language:e,
|
||||||
|
value:v,relevance:A,illegal:!1,_emitter:M,_top:N}}catch(t){
|
||||||
|
if(t.message&&t.message.includes("Illegal"))return{language:e,value:J(n),
|
||||||
|
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:j,
|
||||||
|
context:n.slice(j-100,j+100),mode:t.mode,resultSoFar:v},_emitter:M};if(o)return{
|
||||||
|
language:e,value:J(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:N}
|
||||||
|
;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
|
||||||
|
const t={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
|
||||||
|
;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(v).map((t=>E(t,e,!1)))
|
||||||
|
;s.unshift(n);const r=s.sort(((e,t)=>{
|
||||||
|
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
||||||
|
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
||||||
|
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=r,c=o
|
||||||
|
;return c.secondBest=a,c}function _(e){let t=null;const n=(e=>{
|
||||||
|
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
||||||
|
;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||||
|
;return t||(W(a.replace("{}",n[1])),
|
||||||
|
W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||||
|
return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return
|
||||||
|
;if(N("before:highlightElement",{el:e,language:n
|
||||||
|
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
|
||||||
|
;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||||
|
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
||||||
|
console.warn("The element with unescaped HTML:"),
|
||||||
|
console.warn(e)),p.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||||
|
;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||||
|
;e.innerHTML=r.value,e.dataset.highlighted="yes",((e,t,n)=>{const i=t&&s[t]||n
|
||||||
|
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
||||||
|
})(e,n,r.language),e.result={language:r.language,re:r.relevance,
|
||||||
|
relevance:r.relevance},r.secondBest&&(e.secondBest={
|
||||||
|
language:r.secondBest.language,relevance:r.secondBest.relevance
|
||||||
|
}),N("after:highlightElement",{el:e,result:r,text:i})}let y=!1;function w(){
|
||||||
|
if("loading"===document.readyState)return y||window.addEventListener("DOMContentLoaded",(()=>{
|
||||||
|
w()}),!1),void(y=!0);document.querySelectorAll(p.cssSelector).forEach(_)}
|
||||||
|
function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
|
||||||
|
function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||||
|
s[e.toLowerCase()]=t}))}function v(e){const t=O(e)
|
||||||
|
;return t&&!t.disableAutodetect}function N(e,t){const n=e;r.forEach((e=>{
|
||||||
|
e[n]&&e[n](t)}))}Object.assign(n,{highlight:m,highlightAuto:x,highlightAll:w,
|
||||||
|
highlightElement:_,
|
||||||
|
highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||||
|
X("10.7.0","Please use highlightElement now."),_(e)),configure:e=>{p=Y(p,e)},
|
||||||
|
initHighlighting:()=>{
|
||||||
|
w(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||||
|
initHighlightingOnLoad:()=>{
|
||||||
|
w(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||||
|
},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
|
||||||
|
if(z("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||||
|
!o)throw t;z(t),s=l}
|
||||||
|
s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&k(s.aliases,{
|
||||||
|
languageName:e})},unregisterLanguage:e=>{delete i[e]
|
||||||
|
;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
|
||||||
|
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:k,
|
||||||
|
autoDetection:v,inherit:Y,addPlugin:e=>{(e=>{
|
||||||
|
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
|
||||||
|
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
||||||
|
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
|
||||||
|
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
|
||||||
|
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
|
||||||
|
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.11.1",n.regex={concat:h,
|
||||||
|
lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
|
||||||
|
;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n
|
||||||
|
},te=ee({});te.newInstance=()=>ee({});export{te as default};
|
||||||
552
static/highlight/es/languages/1c.js
Normal file
552
static/highlight/es/languages/1c.js
Normal file
|
|
@ -0,0 +1,552 @@
|
||||||
|
/*! `1c` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: 1C:Enterprise
|
||||||
|
Author: Stanislav Belov <stbelov@gmail.com>
|
||||||
|
Description: built-in language 1C:Enterprise (v7, v8)
|
||||||
|
Category: enterprise
|
||||||
|
*/
|
||||||
|
|
||||||
|
function _1c(hljs) {
|
||||||
|
// общий паттерн для определения идентификаторов
|
||||||
|
const UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+';
|
||||||
|
|
||||||
|
// v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword
|
||||||
|
const v7_keywords =
|
||||||
|
'далее ';
|
||||||
|
|
||||||
|
// v8 ключевые слова ==> keyword
|
||||||
|
const v8_keywords =
|
||||||
|
'возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли '
|
||||||
|
+ 'конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ';
|
||||||
|
|
||||||
|
// keyword : ключевые слова
|
||||||
|
const KEYWORD = v7_keywords + v8_keywords;
|
||||||
|
|
||||||
|
// v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword
|
||||||
|
const v7_meta_keywords =
|
||||||
|
'загрузитьизфайла ';
|
||||||
|
|
||||||
|
// v8 ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях ==> meta-keyword
|
||||||
|
const v8_meta_keywords =
|
||||||
|
'вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер '
|
||||||
|
+ 'наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед '
|
||||||
|
+ 'после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ';
|
||||||
|
|
||||||
|
// meta-keyword : ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях
|
||||||
|
const METAKEYWORD = v7_meta_keywords + v8_meta_keywords;
|
||||||
|
|
||||||
|
// v7 системные константы ==> built_in
|
||||||
|
const v7_system_constants =
|
||||||
|
'разделительстраниц разделительстрок символтабуляции ';
|
||||||
|
|
||||||
|
// v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in
|
||||||
|
const v7_global_context_methods =
|
||||||
|
'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов '
|
||||||
|
+ 'датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя '
|
||||||
|
+ 'кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца '
|
||||||
|
+ 'коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид '
|
||||||
|
+ 'назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца '
|
||||||
|
+ 'начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов '
|
||||||
|
+ 'основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута '
|
||||||
|
+ 'получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта '
|
||||||
|
+ 'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына '
|
||||||
|
+ 'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента '
|
||||||
|
+ 'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ';
|
||||||
|
|
||||||
|
// v8 методы глобального контекста ==> built_in
|
||||||
|
const v8_global_context_methods =
|
||||||
|
'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока '
|
||||||
|
+ 'xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение '
|
||||||
|
+ 'ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации '
|
||||||
|
+ 'выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода '
|
||||||
|
+ 'деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы '
|
||||||
|
+ 'загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации '
|
||||||
|
+ 'заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию '
|
||||||
|
+ 'значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла '
|
||||||
|
+ 'изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке '
|
||||||
|
+ 'каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку '
|
||||||
|
+ 'кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты '
|
||||||
|
+ 'конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы '
|
||||||
|
+ 'копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти '
|
||||||
|
+ 'найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы '
|
||||||
|
+ 'началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя '
|
||||||
|
+ 'начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты '
|
||||||
|
+ 'начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов '
|
||||||
|
+ 'начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя '
|
||||||
|
+ 'начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога '
|
||||||
|
+ 'начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией '
|
||||||
|
+ 'начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы '
|
||||||
|
+ 'номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения '
|
||||||
|
+ 'обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении '
|
||||||
|
+ 'отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения '
|
||||||
|
+ 'открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально '
|
||||||
|
+ 'отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа '
|
||||||
|
+ 'перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту '
|
||||||
|
+ 'подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения '
|
||||||
|
+ 'подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки '
|
||||||
|
+ 'показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение '
|
||||||
|
+ 'показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя '
|
||||||
|
+ 'получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса '
|
||||||
|
+ 'получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора '
|
||||||
|
+ 'получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса '
|
||||||
|
+ 'получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации '
|
||||||
|
+ 'получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла '
|
||||||
|
+ 'получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации '
|
||||||
|
+ 'получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления '
|
||||||
|
+ 'получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу '
|
||||||
|
+ 'получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы '
|
||||||
|
+ 'получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет '
|
||||||
|
+ 'получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима '
|
||||||
|
+ 'получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения '
|
||||||
|
+ 'получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути '
|
||||||
|
+ 'получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы '
|
||||||
|
+ 'получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю '
|
||||||
|
+ 'получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных '
|
||||||
|
+ 'получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию '
|
||||||
|
+ 'получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище '
|
||||||
|
+ 'поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода '
|
||||||
|
+ 'представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение '
|
||||||
|
+ 'прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока '
|
||||||
|
+ 'рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных '
|
||||||
|
+ 'раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени '
|
||||||
|
+ 'смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить '
|
||||||
|
+ 'состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс '
|
||||||
|
+ 'строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений '
|
||||||
|
+ 'стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах '
|
||||||
|
+ 'текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации '
|
||||||
|
+ 'текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы '
|
||||||
|
+ 'удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим '
|
||||||
|
+ 'установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту '
|
||||||
|
+ 'установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных '
|
||||||
|
+ 'установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации '
|
||||||
|
+ 'установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения '
|
||||||
|
+ 'установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования '
|
||||||
|
+ 'установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима '
|
||||||
|
+ 'установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим '
|
||||||
|
+ 'установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией '
|
||||||
|
+ 'установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы '
|
||||||
|
+ 'установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса '
|
||||||
|
+ 'формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ';
|
||||||
|
|
||||||
|
// v8 свойства глобального контекста ==> built_in
|
||||||
|
const v8_global_context_property =
|
||||||
|
'wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы '
|
||||||
|
+ 'внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль '
|
||||||
|
+ 'документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты '
|
||||||
|
+ 'историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений '
|
||||||
|
+ 'отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик '
|
||||||
|
+ 'планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок '
|
||||||
|
+ 'рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений '
|
||||||
|
+ 'регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа '
|
||||||
|
+ 'средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек '
|
||||||
|
+ 'хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков '
|
||||||
|
+ 'хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ';
|
||||||
|
|
||||||
|
// built_in : встроенные или библиотечные объекты (константы, классы, функции)
|
||||||
|
const BUILTIN =
|
||||||
|
v7_system_constants
|
||||||
|
+ v7_global_context_methods + v8_global_context_methods
|
||||||
|
+ v8_global_context_property;
|
||||||
|
|
||||||
|
// v8 системные наборы значений ==> class
|
||||||
|
const v8_system_sets_of_values =
|
||||||
|
'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - интерфейсные ==> class
|
||||||
|
const v8_system_enums_interface =
|
||||||
|
'автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий '
|
||||||
|
+ 'анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы '
|
||||||
|
+ 'вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы '
|
||||||
|
+ 'виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя '
|
||||||
|
+ 'видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение '
|
||||||
|
+ 'горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы '
|
||||||
|
+ 'группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания '
|
||||||
|
+ 'интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки '
|
||||||
|
+ 'используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы '
|
||||||
|
+ 'источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева '
|
||||||
|
+ 'начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы '
|
||||||
|
+ 'ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме '
|
||||||
|
+ 'отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы '
|
||||||
|
+ 'отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы '
|
||||||
|
+ 'отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы '
|
||||||
|
+ 'отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска '
|
||||||
|
+ 'отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования '
|
||||||
|
+ 'отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта '
|
||||||
|
+ 'отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы '
|
||||||
|
+ 'поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы '
|
||||||
|
+ 'поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы '
|
||||||
|
+ 'положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы '
|
||||||
|
+ 'положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы '
|
||||||
|
+ 'положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском '
|
||||||
|
+ 'положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы '
|
||||||
|
+ 'размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта '
|
||||||
|
+ 'режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты '
|
||||||
|
+ 'режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения '
|
||||||
|
+ 'режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра '
|
||||||
|
+ 'режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения '
|
||||||
|
+ 'режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы '
|
||||||
|
+ 'режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки '
|
||||||
|
+ 'режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание '
|
||||||
|
+ 'сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы '
|
||||||
|
+ 'способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление '
|
||||||
|
+ 'статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы '
|
||||||
|
+ 'типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы '
|
||||||
|
+ 'типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления '
|
||||||
|
+ 'типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы '
|
||||||
|
+ 'типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы '
|
||||||
|
+ 'типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений '
|
||||||
|
+ 'типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы '
|
||||||
|
+ 'типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы '
|
||||||
|
+ 'типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы '
|
||||||
|
+ 'факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени '
|
||||||
|
+ 'форматкартинки ширинаподчиненныхэлементовформы ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - свойства прикладных объектов ==> class
|
||||||
|
const v8_system_enums_objects_properties =
|
||||||
|
'виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса '
|
||||||
|
+ 'использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения '
|
||||||
|
+ 'использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - планы обмена ==> class
|
||||||
|
const v8_system_enums_exchange_plans =
|
||||||
|
'авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - табличный документ ==> class
|
||||||
|
const v8_system_enums_tabular_document =
|
||||||
|
'использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы '
|
||||||
|
+ 'положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента '
|
||||||
|
+ 'способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента '
|
||||||
|
+ 'типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента '
|
||||||
|
+ 'типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы '
|
||||||
|
+ 'типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента '
|
||||||
|
+ 'типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - планировщик ==> class
|
||||||
|
const v8_system_enums_sheduler =
|
||||||
|
'отображениевремениэлементовпланировщика ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - форматированный документ ==> class
|
||||||
|
const v8_system_enums_formatted_document =
|
||||||
|
'типфайлаформатированногодокумента ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - запрос ==> class
|
||||||
|
const v8_system_enums_query =
|
||||||
|
'обходрезультатазапроса типзаписизапроса ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - построитель отчета ==> class
|
||||||
|
const v8_system_enums_report_builder =
|
||||||
|
'видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - работа с файлами ==> class
|
||||||
|
const v8_system_enums_files =
|
||||||
|
'доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - построитель запроса ==> class
|
||||||
|
const v8_system_enums_query_builder =
|
||||||
|
'типизмеренияпостроителязапроса ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - анализ данных ==> class
|
||||||
|
const v8_system_enums_data_analysis =
|
||||||
|
'видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных '
|
||||||
|
+ 'типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений '
|
||||||
|
+ 'типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций '
|
||||||
|
+ 'типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных '
|
||||||
|
+ 'типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных '
|
||||||
|
+ 'типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - xml, json, xs, dom, xdto, web-сервисы ==> class
|
||||||
|
const v8_system_enums_xml_json_xs_dom_xdto_ws =
|
||||||
|
'wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto '
|
||||||
|
+ 'действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs '
|
||||||
|
+ 'исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs '
|
||||||
|
+ 'методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs '
|
||||||
|
+ 'ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson '
|
||||||
|
+ 'типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs '
|
||||||
|
+ 'форматдатыjson экранированиесимволовjson ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - система компоновки данных ==> class
|
||||||
|
const v8_system_enums_data_composition_system =
|
||||||
|
'видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных '
|
||||||
|
+ 'расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных '
|
||||||
|
+ 'расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных '
|
||||||
|
+ 'расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных '
|
||||||
|
+ 'типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных '
|
||||||
|
+ 'типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных '
|
||||||
|
+ 'типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных '
|
||||||
|
+ 'расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных '
|
||||||
|
+ 'режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных '
|
||||||
|
+ 'режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных '
|
||||||
|
+ 'вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных '
|
||||||
|
+ 'использованиеусловногооформлениякомпоновкиданных ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - почта ==> class
|
||||||
|
const v8_system_enums_email =
|
||||||
|
'важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения '
|
||||||
|
+ 'способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты '
|
||||||
|
+ 'статусразборапочтовогосообщения ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - журнал регистрации ==> class
|
||||||
|
const v8_system_enums_logbook =
|
||||||
|
'режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - криптография ==> class
|
||||||
|
const v8_system_enums_cryptography =
|
||||||
|
'расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии '
|
||||||
|
+ 'типхранилищасертификатовкриптографии ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - ZIP ==> class
|
||||||
|
const v8_system_enums_zip =
|
||||||
|
'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip '
|
||||||
|
+ 'режимсохраненияпутейzip уровеньсжатияzip ';
|
||||||
|
|
||||||
|
// v8 системные перечисления -
|
||||||
|
// Блокировка данных, Фоновые задания, Автоматизированное тестирование,
|
||||||
|
// Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class
|
||||||
|
const v8_system_enums_other =
|
||||||
|
'звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных '
|
||||||
|
+ 'сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - схема запроса ==> class
|
||||||
|
const v8_system_enums_request_schema =
|
||||||
|
'направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса '
|
||||||
|
+ 'типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - свойства объектов метаданных ==> class
|
||||||
|
const v8_system_enums_properties_of_metadata_objects =
|
||||||
|
'httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления '
|
||||||
|
+ 'видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование '
|
||||||
|
+ 'использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения '
|
||||||
|
+ 'использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита '
|
||||||
|
+ 'назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных '
|
||||||
|
+ 'оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи '
|
||||||
|
+ 'основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении '
|
||||||
|
+ 'периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений '
|
||||||
|
+ 'повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение '
|
||||||
|
+ 'разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита '
|
||||||
|
+ 'режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности '
|
||||||
|
+ 'режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов '
|
||||||
|
+ 'режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса '
|
||||||
|
+ 'режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов '
|
||||||
|
+ 'сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования '
|
||||||
|
+ 'типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса '
|
||||||
|
+ 'типномерадокумента типномеразадачи типформы удалениедвижений ';
|
||||||
|
|
||||||
|
// v8 системные перечисления - разные ==> class
|
||||||
|
const v8_system_enums_differents =
|
||||||
|
'важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения '
|
||||||
|
+ 'вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки '
|
||||||
|
+ 'видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак '
|
||||||
|
+ 'использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога '
|
||||||
|
+ 'кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных '
|
||||||
|
+ 'отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения '
|
||||||
|
+ 'режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных '
|
||||||
|
+ 'способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter '
|
||||||
|
+ 'типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты';
|
||||||
|
|
||||||
|
// class: встроенные наборы значений, системные перечисления (содержат дочерние значения, обращения к которым через разыменование)
|
||||||
|
const CLASS =
|
||||||
|
v8_system_sets_of_values
|
||||||
|
+ v8_system_enums_interface
|
||||||
|
+ v8_system_enums_objects_properties
|
||||||
|
+ v8_system_enums_exchange_plans
|
||||||
|
+ v8_system_enums_tabular_document
|
||||||
|
+ v8_system_enums_sheduler
|
||||||
|
+ v8_system_enums_formatted_document
|
||||||
|
+ v8_system_enums_query
|
||||||
|
+ v8_system_enums_report_builder
|
||||||
|
+ v8_system_enums_files
|
||||||
|
+ v8_system_enums_query_builder
|
||||||
|
+ v8_system_enums_data_analysis
|
||||||
|
+ v8_system_enums_xml_json_xs_dom_xdto_ws
|
||||||
|
+ v8_system_enums_data_composition_system
|
||||||
|
+ v8_system_enums_email
|
||||||
|
+ v8_system_enums_logbook
|
||||||
|
+ v8_system_enums_cryptography
|
||||||
|
+ v8_system_enums_zip
|
||||||
|
+ v8_system_enums_other
|
||||||
|
+ v8_system_enums_request_schema
|
||||||
|
+ v8_system_enums_properties_of_metadata_objects
|
||||||
|
+ v8_system_enums_differents;
|
||||||
|
|
||||||
|
// v8 общие объекты (у объектов есть конструктор, экземпляры создаются методом НОВЫЙ) ==> type
|
||||||
|
const v8_shared_object =
|
||||||
|
'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs '
|
||||||
|
+ 'блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема '
|
||||||
|
+ 'географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма '
|
||||||
|
+ 'диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания '
|
||||||
|
+ 'диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление '
|
||||||
|
+ 'записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom '
|
||||||
|
+ 'запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта '
|
||||||
|
+ 'интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs '
|
||||||
|
+ 'использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных '
|
||||||
|
+ 'итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла '
|
||||||
|
+ 'компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных '
|
||||||
|
+ 'конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных '
|
||||||
|
+ 'макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson '
|
||||||
|
+ 'обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs '
|
||||||
|
+ 'объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации '
|
||||||
|
+ 'описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных '
|
||||||
|
+ 'описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs '
|
||||||
|
+ 'определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom '
|
||||||
|
+ 'определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных '
|
||||||
|
+ 'параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных '
|
||||||
|
+ 'полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных '
|
||||||
|
+ 'построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml '
|
||||||
|
+ 'процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент '
|
||||||
|
+ 'процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml '
|
||||||
|
+ 'результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto '
|
||||||
|
+ 'сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows '
|
||||||
|
+ 'сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш '
|
||||||
|
+ 'сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент '
|
||||||
|
+ 'текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток '
|
||||||
|
+ 'фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs '
|
||||||
|
+ 'фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs '
|
||||||
|
+ 'фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs '
|
||||||
|
+ 'фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент '
|
||||||
|
+ 'фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла '
|
||||||
|
+ 'чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ';
|
||||||
|
|
||||||
|
// v8 универсальные коллекции значений ==> type
|
||||||
|
const v8_universal_collection =
|
||||||
|
'comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура '
|
||||||
|
+ 'фиксированноесоответствие фиксированныймассив ';
|
||||||
|
|
||||||
|
// type : встроенные типы
|
||||||
|
const TYPE =
|
||||||
|
v8_shared_object
|
||||||
|
+ v8_universal_collection;
|
||||||
|
|
||||||
|
// literal : примитивные типы
|
||||||
|
const LITERAL = 'null истина ложь неопределено';
|
||||||
|
|
||||||
|
// number : числа
|
||||||
|
const NUMBERS = hljs.inherit(hljs.NUMBER_MODE);
|
||||||
|
|
||||||
|
// string : строки
|
||||||
|
const STRINGS = {
|
||||||
|
className: 'string',
|
||||||
|
begin: '"|\\|',
|
||||||
|
end: '"|$',
|
||||||
|
contains: [ { begin: '""' } ]
|
||||||
|
};
|
||||||
|
|
||||||
|
// number : даты
|
||||||
|
const DATE = {
|
||||||
|
begin: "'",
|
||||||
|
end: "'",
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
begin: '\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const PUNCTUATION = {
|
||||||
|
match: /[;()+\-:=,]/,
|
||||||
|
className: "punctuation",
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
// comment : комментарии
|
||||||
|
const COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE);
|
||||||
|
|
||||||
|
// meta : инструкции препроцессора, директивы компиляции
|
||||||
|
const META = {
|
||||||
|
className: 'meta',
|
||||||
|
|
||||||
|
begin: '#|&',
|
||||||
|
end: '$',
|
||||||
|
keywords: {
|
||||||
|
$pattern: UNDERSCORE_IDENT_RE,
|
||||||
|
keyword: KEYWORD + METAKEYWORD
|
||||||
|
},
|
||||||
|
contains: [ COMMENTS ]
|
||||||
|
};
|
||||||
|
|
||||||
|
// symbol : метка goto
|
||||||
|
const SYMBOL = {
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '~',
|
||||||
|
end: ';|:',
|
||||||
|
excludeEnd: true
|
||||||
|
};
|
||||||
|
|
||||||
|
// function : объявление процедур и функций
|
||||||
|
const FUNCTION = {
|
||||||
|
className: 'function',
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: 'процедура|функция',
|
||||||
|
end: '\\)',
|
||||||
|
keywords: 'процедура функция'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: 'конецпроцедуры|конецфункции',
|
||||||
|
keywords: 'конецпроцедуры конецфункции'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: '\\(',
|
||||||
|
end: '\\)',
|
||||||
|
endsParent: true,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: UNDERSCORE_IDENT_RE,
|
||||||
|
end: ',',
|
||||||
|
excludeEnd: true,
|
||||||
|
endsWithParent: true,
|
||||||
|
keywords: {
|
||||||
|
$pattern: UNDERSCORE_IDENT_RE,
|
||||||
|
keyword: 'знач',
|
||||||
|
literal: LITERAL
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
NUMBERS,
|
||||||
|
STRINGS,
|
||||||
|
DATE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
COMMENTS
|
||||||
|
]
|
||||||
|
},
|
||||||
|
hljs.inherit(hljs.TITLE_MODE, { begin: UNDERSCORE_IDENT_RE })
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: '1C:Enterprise',
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: {
|
||||||
|
$pattern: UNDERSCORE_IDENT_RE,
|
||||||
|
keyword: KEYWORD,
|
||||||
|
built_in: BUILTIN,
|
||||||
|
class: CLASS,
|
||||||
|
type: TYPE,
|
||||||
|
literal: LITERAL
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
META,
|
||||||
|
FUNCTION,
|
||||||
|
COMMENTS,
|
||||||
|
SYMBOL,
|
||||||
|
NUMBERS,
|
||||||
|
STRINGS,
|
||||||
|
DATE,
|
||||||
|
PUNCTUATION
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _1c;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
25
static/highlight/es/languages/1c.min.js
vendored
Normal file
25
static/highlight/es/languages/1c.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
91
static/highlight/es/languages/abnf.js
Normal file
91
static/highlight/es/languages/abnf.js
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
/*! `abnf` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Augmented Backus-Naur Form
|
||||||
|
Author: Alex McKibben <alex@nullscope.net>
|
||||||
|
Website: https://tools.ietf.org/html/rfc5234
|
||||||
|
Category: syntax
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function abnf(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const IDENT = /^[a-zA-Z][a-zA-Z0-9-]*/;
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"ALPHA",
|
||||||
|
"BIT",
|
||||||
|
"CHAR",
|
||||||
|
"CR",
|
||||||
|
"CRLF",
|
||||||
|
"CTL",
|
||||||
|
"DIGIT",
|
||||||
|
"DQUOTE",
|
||||||
|
"HEXDIG",
|
||||||
|
"HTAB",
|
||||||
|
"LF",
|
||||||
|
"LWSP",
|
||||||
|
"OCTET",
|
||||||
|
"SP",
|
||||||
|
"VCHAR",
|
||||||
|
"WSP"
|
||||||
|
];
|
||||||
|
|
||||||
|
const COMMENT = hljs.COMMENT(/;/, /$/);
|
||||||
|
|
||||||
|
const TERMINAL_BINARY = {
|
||||||
|
scope: "symbol",
|
||||||
|
match: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/
|
||||||
|
};
|
||||||
|
|
||||||
|
const TERMINAL_DECIMAL = {
|
||||||
|
scope: "symbol",
|
||||||
|
match: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/
|
||||||
|
};
|
||||||
|
|
||||||
|
const TERMINAL_HEXADECIMAL = {
|
||||||
|
scope: "symbol",
|
||||||
|
match: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/
|
||||||
|
};
|
||||||
|
|
||||||
|
const CASE_SENSITIVITY = {
|
||||||
|
scope: "symbol",
|
||||||
|
match: /%[si](?=".*")/
|
||||||
|
};
|
||||||
|
|
||||||
|
const RULE_DECLARATION = {
|
||||||
|
scope: "attribute",
|
||||||
|
match: regex.concat(IDENT, /(?=\s*=)/)
|
||||||
|
};
|
||||||
|
|
||||||
|
const ASSIGNMENT = {
|
||||||
|
scope: "operator",
|
||||||
|
match: /=\/?/
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'Augmented Backus-Naur Form',
|
||||||
|
illegal: /[!@#$^&',?+~`|:]/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [
|
||||||
|
ASSIGNMENT,
|
||||||
|
RULE_DECLARATION,
|
||||||
|
COMMENT,
|
||||||
|
TERMINAL_BINARY,
|
||||||
|
TERMINAL_DECIMAL,
|
||||||
|
TERMINAL_HEXADECIMAL,
|
||||||
|
CASE_SENSITIVITY,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.NUMBER_MODE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return abnf;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
12
static/highlight/es/languages/abnf.min.js
vendored
Normal file
12
static/highlight/es/languages/abnf.min.js
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
/*! `abnf` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return a=>{
|
||||||
|
const e=a.regex,s=a.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",
|
||||||
|
illegal:/[!@#$^&',?+~`|:]/,
|
||||||
|
keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],
|
||||||
|
contains:[{scope:"operator",match:/=\/?/},{scope:"attribute",
|
||||||
|
match:e.concat(/^[a-zA-Z][a-zA-Z0-9-]*/,/(?=\s*=)/)},s,{scope:"symbol",
|
||||||
|
match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:"symbol",
|
||||||
|
match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:"symbol",
|
||||||
|
match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:"symbol",
|
||||||
|
match:/%[si](?=".*")/},a.QUOTE_STRING_MODE,a.NUMBER_MODE]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
100
static/highlight/es/languages/accesslog.js
Normal file
100
static/highlight/es/languages/accesslog.js
Normal file
|
|
@ -0,0 +1,100 @@
|
||||||
|
/*! `accesslog` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Apache Access Log
|
||||||
|
Author: Oleg Efimov <efimovov@gmail.com>
|
||||||
|
Description: Apache/Nginx Access Logs
|
||||||
|
Website: https://httpd.apache.org/docs/2.4/logs.html#accesslog
|
||||||
|
Category: web, logs
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function accesslog(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
|
||||||
|
const HTTP_VERBS = [
|
||||||
|
"GET",
|
||||||
|
"POST",
|
||||||
|
"HEAD",
|
||||||
|
"PUT",
|
||||||
|
"DELETE",
|
||||||
|
"CONNECT",
|
||||||
|
"OPTIONS",
|
||||||
|
"PATCH",
|
||||||
|
"TRACE"
|
||||||
|
];
|
||||||
|
return {
|
||||||
|
name: 'Apache Access Log',
|
||||||
|
contains: [
|
||||||
|
// IP
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
begin: /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,
|
||||||
|
relevance: 5
|
||||||
|
},
|
||||||
|
// Other numbers
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
begin: /\b\d+\b/,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// Requests
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: regex.concat(/"/, regex.either(...HTTP_VERBS)),
|
||||||
|
end: /"/,
|
||||||
|
keywords: HTTP_VERBS,
|
||||||
|
illegal: /\n/,
|
||||||
|
relevance: 5,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /HTTP\/[12]\.\d'/,
|
||||||
|
relevance: 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// Dates
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
// dates must have a certain length, this prevents matching
|
||||||
|
// simple array accesses a[123] and [] and other common patterns
|
||||||
|
// found in other languages
|
||||||
|
begin: /\[\d[^\]\n]{8,}\]/,
|
||||||
|
illegal: /\n/,
|
||||||
|
relevance: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: /\[/,
|
||||||
|
end: /\]/,
|
||||||
|
illegal: /\n/,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// User agent / relevance boost
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: /"Mozilla\/\d\.\d \(/,
|
||||||
|
end: /"/,
|
||||||
|
illegal: /\n/,
|
||||||
|
relevance: 3
|
||||||
|
},
|
||||||
|
// Strings
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: /"/,
|
||||||
|
end: /"/,
|
||||||
|
illegal: /\n/,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return accesslog;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
13
static/highlight/es/languages/accesslog.min.js
vendored
Normal file
13
static/highlight/es/languages/accesslog.min.js
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
/*! `accesslog` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const n=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"]
|
||||||
|
;return{name:"Apache Access Log",contains:[{className:"number",
|
||||||
|
begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{
|
||||||
|
className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",
|
||||||
|
begin:n.concat(/"/,n.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,
|
||||||
|
contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",
|
||||||
|
begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",
|
||||||
|
begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",
|
||||||
|
begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{
|
||||||
|
className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
161
static/highlight/es/languages/actionscript.js
Normal file
161
static/highlight/es/languages/actionscript.js
Normal file
|
|
@ -0,0 +1,161 @@
|
||||||
|
/*! `actionscript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: ActionScript
|
||||||
|
Author: Alexander Myadzel <myadzel@gmail.com>
|
||||||
|
Category: scripting
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function actionscript(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const IDENT_RE = /[a-zA-Z_$][a-zA-Z0-9_$]*/;
|
||||||
|
const PKG_NAME_RE = regex.concat(
|
||||||
|
IDENT_RE,
|
||||||
|
regex.concat("(\\.", IDENT_RE, ")*")
|
||||||
|
);
|
||||||
|
const IDENT_FUNC_RETURN_TYPE_RE = /([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/;
|
||||||
|
|
||||||
|
const AS3_REST_ARG_MODE = {
|
||||||
|
className: 'rest_arg',
|
||||||
|
begin: /[.]{3}/,
|
||||||
|
end: IDENT_RE,
|
||||||
|
relevance: 10
|
||||||
|
};
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"as",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"class",
|
||||||
|
"const",
|
||||||
|
"continue",
|
||||||
|
"default",
|
||||||
|
"delete",
|
||||||
|
"do",
|
||||||
|
"dynamic",
|
||||||
|
"each",
|
||||||
|
"else",
|
||||||
|
"extends",
|
||||||
|
"final",
|
||||||
|
"finally",
|
||||||
|
"for",
|
||||||
|
"function",
|
||||||
|
"get",
|
||||||
|
"if",
|
||||||
|
"implements",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"include",
|
||||||
|
"instanceof",
|
||||||
|
"interface",
|
||||||
|
"internal",
|
||||||
|
"is",
|
||||||
|
"namespace",
|
||||||
|
"native",
|
||||||
|
"new",
|
||||||
|
"override",
|
||||||
|
"package",
|
||||||
|
"private",
|
||||||
|
"protected",
|
||||||
|
"public",
|
||||||
|
"return",
|
||||||
|
"set",
|
||||||
|
"static",
|
||||||
|
"super",
|
||||||
|
"switch",
|
||||||
|
"this",
|
||||||
|
"throw",
|
||||||
|
"try",
|
||||||
|
"typeof",
|
||||||
|
"use",
|
||||||
|
"var",
|
||||||
|
"void",
|
||||||
|
"while",
|
||||||
|
"with"
|
||||||
|
];
|
||||||
|
const LITERALS = [
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"null",
|
||||||
|
"undefined"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'ActionScript',
|
||||||
|
aliases: [ 'as' ],
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
literal: LITERALS
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
{
|
||||||
|
match: [
|
||||||
|
/\bpackage/,
|
||||||
|
/\s+/,
|
||||||
|
PKG_NAME_RE
|
||||||
|
],
|
||||||
|
className: {
|
||||||
|
1: "keyword",
|
||||||
|
3: "title.class"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: [
|
||||||
|
/\b(?:class|interface|extends|implements)/,
|
||||||
|
/\s+/,
|
||||||
|
IDENT_RE
|
||||||
|
],
|
||||||
|
className: {
|
||||||
|
1: "keyword",
|
||||||
|
3: "title.class"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
beginKeywords: 'import include',
|
||||||
|
end: /;/,
|
||||||
|
keywords: { keyword: 'import include' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beginKeywords: 'function',
|
||||||
|
end: /[{;]/,
|
||||||
|
excludeEnd: true,
|
||||||
|
illegal: /\S/,
|
||||||
|
contains: [
|
||||||
|
hljs.inherit(hljs.TITLE_MODE, { className: "title.function" }),
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
contains: [
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
AS3_REST_ARG_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ begin: regex.concat(/:\s*/, IDENT_FUNC_RETURN_TYPE_RE) }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
hljs.METHOD_GUARD
|
||||||
|
],
|
||||||
|
illegal: /#/
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return actionscript;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
17
static/highlight/es/languages/actionscript.min.js
vendored
Normal file
17
static/highlight/es/languages/actionscript.min.js
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*! `actionscript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const a=e.regex,t=/[a-zA-Z_$][a-zA-Z0-9_$]*/,n=a.concat(t,a.concat("(\\.",t,")*")),s={
|
||||||
|
className:"rest_arg",begin:/[.]{3}/,end:t,relevance:10};return{
|
||||||
|
name:"ActionScript",aliases:["as"],keywords:{
|
||||||
|
keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],
|
||||||
|
literal:["true","false","null","undefined"]},
|
||||||
|
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{
|
||||||
|
match:[/\bpackage/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{
|
||||||
|
match:[/\b(?:class|interface|extends|implements)/,/\s+/,t],className:{
|
||||||
|
1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",
|
||||||
|
end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",
|
||||||
|
end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{
|
||||||
|
className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,
|
||||||
|
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]
|
||||||
|
},{begin:a.concat(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],
|
||||||
|
illegal:/#/}}})();export default hljsGrammar;
|
||||||
273
static/highlight/es/languages/ada.js
Normal file
273
static/highlight/es/languages/ada.js
Normal file
|
|
@ -0,0 +1,273 @@
|
||||||
|
/*! `ada` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Ada
|
||||||
|
Author: Lars Schulna <kartoffelbrei.mit.muskatnuss@gmail.org>
|
||||||
|
Description: Ada is a general-purpose programming language that has great support for saftey critical and real-time applications.
|
||||||
|
It has been developed by the DoD and thus has been used in military and safety-critical applications (like civil aviation).
|
||||||
|
The first version appeared in the 80s, but it's still actively developed today with
|
||||||
|
the newest standard being Ada2012.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// We try to support full Ada2012
|
||||||
|
//
|
||||||
|
// We highlight all appearances of types, keywords, literals (string, char, number, bool)
|
||||||
|
// and titles (user defined function/procedure/package)
|
||||||
|
// CSS classes are set accordingly
|
||||||
|
//
|
||||||
|
// Languages causing problems for language detection:
|
||||||
|
// xml (broken by Foo : Bar type), elm (broken by Foo : Bar type), vbscript-html (broken by body keyword)
|
||||||
|
// sql (ada default.txt has a lot of sql keywords)
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function ada(hljs) {
|
||||||
|
// Regular expression for Ada numeric literals.
|
||||||
|
// stolen form the VHDL highlighter
|
||||||
|
|
||||||
|
// Decimal literal:
|
||||||
|
const INTEGER_RE = '\\d(_|\\d)*';
|
||||||
|
const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE;
|
||||||
|
const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?';
|
||||||
|
|
||||||
|
// Based literal:
|
||||||
|
const BASED_INTEGER_RE = '\\w+';
|
||||||
|
const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?';
|
||||||
|
|
||||||
|
const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')';
|
||||||
|
|
||||||
|
// Identifier regex
|
||||||
|
const ID_REGEX = '[A-Za-z](_?[A-Za-z0-9.])*';
|
||||||
|
|
||||||
|
// bad chars, only allowed in literals
|
||||||
|
const BAD_CHARS = `[]\\{\\}%#'"`;
|
||||||
|
|
||||||
|
// Ada doesn't have block comments, only line comments
|
||||||
|
const COMMENTS = hljs.COMMENT('--', '$');
|
||||||
|
|
||||||
|
// variable declarations of the form
|
||||||
|
// Foo : Bar := Baz;
|
||||||
|
// where only Bar will be highlighted
|
||||||
|
const VAR_DECLS = {
|
||||||
|
// TODO: These spaces are not required by the Ada syntax
|
||||||
|
// however, I have yet to see handwritten Ada code where
|
||||||
|
// someone does not put spaces around :
|
||||||
|
begin: '\\s+:\\s+',
|
||||||
|
end: '\\s*(:=|;|\\)|=>|$)',
|
||||||
|
// endsWithParent: true,
|
||||||
|
// returnBegin: true,
|
||||||
|
illegal: BAD_CHARS,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
// workaround to avoid highlighting
|
||||||
|
// named loops and declare blocks
|
||||||
|
beginKeywords: 'loop for declare others',
|
||||||
|
endsParent: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// properly highlight all modifiers
|
||||||
|
className: 'keyword',
|
||||||
|
beginKeywords: 'not null constant access function procedure in out aliased exception'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'type',
|
||||||
|
begin: ID_REGEX,
|
||||||
|
endsParent: true,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"abort",
|
||||||
|
"else",
|
||||||
|
"new",
|
||||||
|
"return",
|
||||||
|
"abs",
|
||||||
|
"elsif",
|
||||||
|
"not",
|
||||||
|
"reverse",
|
||||||
|
"abstract",
|
||||||
|
"end",
|
||||||
|
"accept",
|
||||||
|
"entry",
|
||||||
|
"select",
|
||||||
|
"access",
|
||||||
|
"exception",
|
||||||
|
"of",
|
||||||
|
"separate",
|
||||||
|
"aliased",
|
||||||
|
"exit",
|
||||||
|
"or",
|
||||||
|
"some",
|
||||||
|
"all",
|
||||||
|
"others",
|
||||||
|
"subtype",
|
||||||
|
"and",
|
||||||
|
"for",
|
||||||
|
"out",
|
||||||
|
"synchronized",
|
||||||
|
"array",
|
||||||
|
"function",
|
||||||
|
"overriding",
|
||||||
|
"at",
|
||||||
|
"tagged",
|
||||||
|
"generic",
|
||||||
|
"package",
|
||||||
|
"task",
|
||||||
|
"begin",
|
||||||
|
"goto",
|
||||||
|
"pragma",
|
||||||
|
"terminate",
|
||||||
|
"body",
|
||||||
|
"private",
|
||||||
|
"then",
|
||||||
|
"if",
|
||||||
|
"procedure",
|
||||||
|
"type",
|
||||||
|
"case",
|
||||||
|
"in",
|
||||||
|
"protected",
|
||||||
|
"constant",
|
||||||
|
"interface",
|
||||||
|
"is",
|
||||||
|
"raise",
|
||||||
|
"use",
|
||||||
|
"declare",
|
||||||
|
"range",
|
||||||
|
"delay",
|
||||||
|
"limited",
|
||||||
|
"record",
|
||||||
|
"when",
|
||||||
|
"delta",
|
||||||
|
"loop",
|
||||||
|
"rem",
|
||||||
|
"while",
|
||||||
|
"digits",
|
||||||
|
"renames",
|
||||||
|
"with",
|
||||||
|
"do",
|
||||||
|
"mod",
|
||||||
|
"requeue",
|
||||||
|
"xor"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'Ada',
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
literal: [
|
||||||
|
"True",
|
||||||
|
"False"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
COMMENTS,
|
||||||
|
// strings "foobar"
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: /"/,
|
||||||
|
end: /"/,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /""/,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// characters ''
|
||||||
|
{
|
||||||
|
// character literals always contain one char
|
||||||
|
className: 'string',
|
||||||
|
begin: /'.'/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// number literals
|
||||||
|
className: 'number',
|
||||||
|
begin: NUMBER_RE,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Attributes
|
||||||
|
className: 'symbol',
|
||||||
|
begin: "'" + ID_REGEX
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// package definition, maybe inside generic
|
||||||
|
className: 'title',
|
||||||
|
begin: '(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?',
|
||||||
|
end: '(is|$)',
|
||||||
|
keywords: 'package body',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
illegal: BAD_CHARS
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// function/procedure declaration/definition
|
||||||
|
// maybe inside generic
|
||||||
|
begin: '(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+',
|
||||||
|
end: '(\\bis|\\bwith|\\brenames|\\)\\s*;)',
|
||||||
|
keywords: 'overriding function procedure with is renames return',
|
||||||
|
// we need to re-match the 'function' keyword, so that
|
||||||
|
// the title mode below matches only exactly once
|
||||||
|
returnBegin: true,
|
||||||
|
contains:
|
||||||
|
[
|
||||||
|
COMMENTS,
|
||||||
|
{
|
||||||
|
// name of the function/procedure
|
||||||
|
className: 'title',
|
||||||
|
begin: '(\\bwith\\s+)?\\b(function|procedure)\\s+',
|
||||||
|
end: '(\\(|\\s+|$)',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
illegal: BAD_CHARS
|
||||||
|
},
|
||||||
|
// 'self'
|
||||||
|
// // parameter types
|
||||||
|
VAR_DECLS,
|
||||||
|
{
|
||||||
|
// return type
|
||||||
|
className: 'type',
|
||||||
|
begin: '\\breturn\\s+',
|
||||||
|
end: '(\\s+|;|$)',
|
||||||
|
keywords: 'return',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
// we are done with functions
|
||||||
|
endsParent: true,
|
||||||
|
illegal: BAD_CHARS
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// new type declarations
|
||||||
|
// maybe inside generic
|
||||||
|
className: 'type',
|
||||||
|
begin: '\\b(sub)?type\\s+',
|
||||||
|
end: '\\s+',
|
||||||
|
keywords: 'type',
|
||||||
|
excludeBegin: true,
|
||||||
|
illegal: BAD_CHARS
|
||||||
|
},
|
||||||
|
|
||||||
|
// see comment above the definition
|
||||||
|
VAR_DECLS
|
||||||
|
|
||||||
|
// no markup
|
||||||
|
// relevance boosters for small snippets
|
||||||
|
// {begin: '\\s*=>\\s*'},
|
||||||
|
// {begin: '\\s*:=\\s*'},
|
||||||
|
// {begin: '\\s+:=\\s+'},
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return ada;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
25
static/highlight/es/languages/ada.min.js
vendored
Normal file
25
static/highlight/es/languages/ada.min.js
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
/*! `ada` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const n="\\d(_|\\d)*",s="[eE][-+]?"+n,a="\\b("+n+"#\\w+(\\.\\w+)?#("+s+")?|"+n+"(\\."+n+")?("+s+")?)",r="[A-Za-z](_?[A-Za-z0-9.])*",i="[]\\{\\}%#'\"",t=e.COMMENT("--","$"),l={
|
||||||
|
begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:i,contains:[{
|
||||||
|
beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",
|
||||||
|
beginKeywords:"not null constant access function procedure in out aliased exception"
|
||||||
|
},{className:"type",begin:r,endsParent:!0,relevance:0}]};return{name:"Ada",
|
||||||
|
case_insensitive:!0,keywords:{
|
||||||
|
keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],
|
||||||
|
literal:["True","False"]},contains:[t,{className:"string",begin:/"/,end:/"/,
|
||||||
|
contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{
|
||||||
|
className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+r},{
|
||||||
|
className:"title",
|
||||||
|
begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",
|
||||||
|
end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:i},{
|
||||||
|
begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",
|
||||||
|
end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",
|
||||||
|
keywords:"overriding function procedure with is renames return",returnBegin:!0,
|
||||||
|
contains:[t,{className:"title",
|
||||||
|
begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",
|
||||||
|
excludeBegin:!0,excludeEnd:!0,illegal:i},l,{className:"type",
|
||||||
|
begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,
|
||||||
|
excludeEnd:!0,endsParent:!0,illegal:i}]},{className:"type",
|
||||||
|
begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:i
|
||||||
|
},l]}}})();export default hljsGrammar;
|
||||||
186
static/highlight/es/languages/angelscript.js
Normal file
186
static/highlight/es/languages/angelscript.js
Normal file
|
|
@ -0,0 +1,186 @@
|
||||||
|
/*! `angelscript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AngelScript
|
||||||
|
Author: Melissa Geels <melissa@nimble.tools>
|
||||||
|
Category: scripting
|
||||||
|
Website: https://www.angelcode.com/angelscript/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function angelscript(hljs) {
|
||||||
|
const builtInTypeMode = {
|
||||||
|
className: 'built_in',
|
||||||
|
begin: '\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)'
|
||||||
|
};
|
||||||
|
|
||||||
|
const objectHandleMode = {
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '[a-zA-Z0-9_]+@'
|
||||||
|
};
|
||||||
|
|
||||||
|
const genericMode = {
|
||||||
|
className: 'keyword',
|
||||||
|
begin: '<',
|
||||||
|
end: '>',
|
||||||
|
contains: [
|
||||||
|
builtInTypeMode,
|
||||||
|
objectHandleMode
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
builtInTypeMode.contains = [ genericMode ];
|
||||||
|
objectHandleMode.contains = [ genericMode ];
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"for",
|
||||||
|
"in|0",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"while",
|
||||||
|
"do|0",
|
||||||
|
"return",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"case",
|
||||||
|
"switch",
|
||||||
|
"namespace",
|
||||||
|
"is",
|
||||||
|
"cast",
|
||||||
|
"or",
|
||||||
|
"and",
|
||||||
|
"xor",
|
||||||
|
"not",
|
||||||
|
"get|0",
|
||||||
|
"in",
|
||||||
|
"inout|10",
|
||||||
|
"out",
|
||||||
|
"override",
|
||||||
|
"set|0",
|
||||||
|
"private",
|
||||||
|
"public",
|
||||||
|
"const",
|
||||||
|
"default|0",
|
||||||
|
"final",
|
||||||
|
"shared",
|
||||||
|
"external",
|
||||||
|
"mixin|10",
|
||||||
|
"enum",
|
||||||
|
"typedef",
|
||||||
|
"funcdef",
|
||||||
|
"this",
|
||||||
|
"super",
|
||||||
|
"import",
|
||||||
|
"from",
|
||||||
|
"interface",
|
||||||
|
"abstract|0",
|
||||||
|
"try",
|
||||||
|
"catch",
|
||||||
|
"protected",
|
||||||
|
"explicit",
|
||||||
|
"property"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'AngelScript',
|
||||||
|
aliases: [ 'asc' ],
|
||||||
|
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
|
||||||
|
// avoid close detection with C# and JS
|
||||||
|
illegal: '(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])',
|
||||||
|
|
||||||
|
contains: [
|
||||||
|
{ // 'strings'
|
||||||
|
className: 'string',
|
||||||
|
begin: '\'',
|
||||||
|
end: '\'',
|
||||||
|
illegal: '\\n',
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
|
||||||
|
// """heredoc strings"""
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: '"""',
|
||||||
|
end: '"""'
|
||||||
|
},
|
||||||
|
|
||||||
|
{ // "strings"
|
||||||
|
className: 'string',
|
||||||
|
begin: '"',
|
||||||
|
end: '"',
|
||||||
|
illegal: '\\n',
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
|
||||||
|
hljs.C_LINE_COMMENT_MODE, // single-line comments
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE, // comment blocks
|
||||||
|
|
||||||
|
{ // metadata
|
||||||
|
className: 'string',
|
||||||
|
begin: '^\\s*\\[',
|
||||||
|
end: '\\]'
|
||||||
|
},
|
||||||
|
|
||||||
|
{ // interface or namespace declaration
|
||||||
|
beginKeywords: 'interface namespace',
|
||||||
|
end: /\{/,
|
||||||
|
illegal: '[;.\\-]',
|
||||||
|
contains: [
|
||||||
|
{ // interface or namespace name
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '[a-zA-Z0-9_]+'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{ // class declaration
|
||||||
|
beginKeywords: 'class',
|
||||||
|
end: /\{/,
|
||||||
|
illegal: '[;.\\-]',
|
||||||
|
contains: [
|
||||||
|
{ // class name
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '[a-zA-Z0-9_]+',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: '[:,]\\s*',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '[a-zA-Z0-9_]+'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
builtInTypeMode, // built-in types
|
||||||
|
objectHandleMode, // object handles
|
||||||
|
|
||||||
|
{ // literals
|
||||||
|
className: 'literal',
|
||||||
|
begin: '\\b(null|true|false)'
|
||||||
|
},
|
||||||
|
|
||||||
|
{ // numbers
|
||||||
|
className: 'number',
|
||||||
|
relevance: 0,
|
||||||
|
begin: '(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return angelscript;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
21
static/highlight/es/languages/angelscript.min.js
vendored
Normal file
21
static/highlight/es/languages/angelscript.min.js
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
/*! `angelscript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"built_in",
|
||||||
|
begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"
|
||||||
|
},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",
|
||||||
|
begin:"<",end:">",contains:[n,a]};return n.contains=[i],a.contains=[i],{
|
||||||
|
name:"AngelScript",aliases:["asc"],
|
||||||
|
keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],
|
||||||
|
illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{
|
||||||
|
className:"string",begin:"'",end:"'",illegal:"\\n",
|
||||||
|
contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',
|
||||||
|
end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",
|
||||||
|
contains:[e.BACKSLASH_ESCAPE],relevance:0
|
||||||
|
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",
|
||||||
|
begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,
|
||||||
|
illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{
|
||||||
|
beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",
|
||||||
|
begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",
|
||||||
|
begin:"[a-zA-Z0-9_]+"}]}]}]},n,a,{className:"literal",
|
||||||
|
begin:"\\b(null|true|false)"},{className:"number",relevance:0,
|
||||||
|
begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"
|
||||||
|
}]}}})();export default hljsGrammar;
|
||||||
113
static/highlight/es/languages/apache.js
Normal file
113
static/highlight/es/languages/apache.js
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
/*! `apache` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Apache config
|
||||||
|
Author: Ruslan Keba <rukeba@gmail.com>
|
||||||
|
Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||||
|
Website: https://httpd.apache.org
|
||||||
|
Description: language definition for Apache configuration files (httpd.conf & .htaccess)
|
||||||
|
Category: config, web
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function apache(hljs) {
|
||||||
|
const NUMBER_REF = {
|
||||||
|
className: 'number',
|
||||||
|
begin: /[$%]\d+/
|
||||||
|
};
|
||||||
|
const NUMBER = {
|
||||||
|
className: 'number',
|
||||||
|
begin: /\b\d+/
|
||||||
|
};
|
||||||
|
const IP_ADDRESS = {
|
||||||
|
className: "number",
|
||||||
|
begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/
|
||||||
|
};
|
||||||
|
const PORT_NUMBER = {
|
||||||
|
className: "number",
|
||||||
|
begin: /:\d{1,5}/
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
name: 'Apache config',
|
||||||
|
aliases: [ 'apacheconf' ],
|
||||||
|
case_insensitive: true,
|
||||||
|
contains: [
|
||||||
|
hljs.HASH_COMMENT_MODE,
|
||||||
|
{
|
||||||
|
className: 'section',
|
||||||
|
begin: /<\/?/,
|
||||||
|
end: />/,
|
||||||
|
contains: [
|
||||||
|
IP_ADDRESS,
|
||||||
|
PORT_NUMBER,
|
||||||
|
// low relevance prevents us from claming XML/HTML where this rule would
|
||||||
|
// match strings inside of XML tags
|
||||||
|
hljs.inherit(hljs.QUOTE_STRING_MODE, { relevance: 0 })
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'attribute',
|
||||||
|
begin: /\w+/,
|
||||||
|
relevance: 0,
|
||||||
|
// keywords aren’t needed for highlighting per se, they only boost relevance
|
||||||
|
// for a very generally defined mode (starts with a word, ends with line-end
|
||||||
|
keywords: { _: [
|
||||||
|
"order",
|
||||||
|
"deny",
|
||||||
|
"allow",
|
||||||
|
"setenv",
|
||||||
|
"rewriterule",
|
||||||
|
"rewriteengine",
|
||||||
|
"rewritecond",
|
||||||
|
"documentroot",
|
||||||
|
"sethandler",
|
||||||
|
"errordocument",
|
||||||
|
"loadmodule",
|
||||||
|
"options",
|
||||||
|
"header",
|
||||||
|
"listen",
|
||||||
|
"serverroot",
|
||||||
|
"servername"
|
||||||
|
] },
|
||||||
|
starts: {
|
||||||
|
end: /$/,
|
||||||
|
relevance: 0,
|
||||||
|
keywords: { literal: 'on off all deny allow' },
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
scope: "punctuation",
|
||||||
|
match: /\\\n/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: /\s\[/,
|
||||||
|
end: /\]$/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'variable',
|
||||||
|
begin: /[\$%]\{/,
|
||||||
|
end: /\}/,
|
||||||
|
contains: [
|
||||||
|
'self',
|
||||||
|
NUMBER_REF
|
||||||
|
]
|
||||||
|
},
|
||||||
|
IP_ADDRESS,
|
||||||
|
NUMBER,
|
||||||
|
hljs.QUOTE_STRING_MODE
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
illegal: /\S/
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return apache;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
14
static/highlight/es/languages/apache.min.js
vendored
Normal file
14
static/highlight/es/languages/apache.min.js
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
/*! `apache` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"number",
|
||||||
|
begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{
|
||||||
|
name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,
|
||||||
|
contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,
|
||||||
|
contains:[n,{className:"number",begin:/:\d{1,5}/
|
||||||
|
},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",
|
||||||
|
begin:/\w+/,relevance:0,keywords:{
|
||||||
|
_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]
|
||||||
|
},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},
|
||||||
|
contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,
|
||||||
|
end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{
|
||||||
|
className:"number",begin:/[$%]\d+/}]},n,{className:"number",begin:/\b\d+/
|
||||||
|
},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}})();export default hljsGrammar;
|
||||||
157
static/highlight/es/languages/applescript.js
Normal file
157
static/highlight/es/languages/applescript.js
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
/*! `applescript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AppleScript
|
||||||
|
Authors: Nathan Grigg <nathan@nathanamy.org>, Dr. Drang <drdrang@gmail.com>
|
||||||
|
Category: scripting
|
||||||
|
Website: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function applescript(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const STRING = hljs.inherit(
|
||||||
|
hljs.QUOTE_STRING_MODE, { illegal: null });
|
||||||
|
const PARAMS = {
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
contains: [
|
||||||
|
'self',
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
STRING
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const COMMENT_MODE_1 = hljs.COMMENT(/--/, /$/);
|
||||||
|
const COMMENT_MODE_2 = hljs.COMMENT(
|
||||||
|
/\(\*/,
|
||||||
|
/\*\)/,
|
||||||
|
{ contains: [
|
||||||
|
'self', // allow nesting
|
||||||
|
COMMENT_MODE_1
|
||||||
|
] }
|
||||||
|
);
|
||||||
|
const COMMENTS = [
|
||||||
|
COMMENT_MODE_1,
|
||||||
|
COMMENT_MODE_2,
|
||||||
|
hljs.HASH_COMMENT_MODE
|
||||||
|
];
|
||||||
|
|
||||||
|
const KEYWORD_PATTERNS = [
|
||||||
|
/apart from/,
|
||||||
|
/aside from/,
|
||||||
|
/instead of/,
|
||||||
|
/out of/,
|
||||||
|
/greater than/,
|
||||||
|
/isn't|(doesn't|does not) (equal|come before|come after|contain)/,
|
||||||
|
/(greater|less) than( or equal)?/,
|
||||||
|
/(starts?|ends|begins?) with/,
|
||||||
|
/contained by/,
|
||||||
|
/comes (before|after)/,
|
||||||
|
/a (ref|reference)/,
|
||||||
|
/POSIX (file|path)/,
|
||||||
|
/(date|time) string/,
|
||||||
|
/quoted form/
|
||||||
|
];
|
||||||
|
|
||||||
|
const BUILT_IN_PATTERNS = [
|
||||||
|
/clipboard info/,
|
||||||
|
/the clipboard/,
|
||||||
|
/info for/,
|
||||||
|
/list (disks|folder)/,
|
||||||
|
/mount volume/,
|
||||||
|
/path to/,
|
||||||
|
/(close|open for) access/,
|
||||||
|
/(get|set) eof/,
|
||||||
|
/current date/,
|
||||||
|
/do shell script/,
|
||||||
|
/get volume settings/,
|
||||||
|
/random number/,
|
||||||
|
/set volume/,
|
||||||
|
/system attribute/,
|
||||||
|
/system info/,
|
||||||
|
/time to GMT/,
|
||||||
|
/(load|run|store) script/,
|
||||||
|
/scripting components/,
|
||||||
|
/ASCII (character|number)/,
|
||||||
|
/localized string/,
|
||||||
|
/choose (application|color|file|file name|folder|from list|remote application|URL)/,
|
||||||
|
/display (alert|dialog)/
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'AppleScript',
|
||||||
|
aliases: [ 'osascript' ],
|
||||||
|
keywords: {
|
||||||
|
keyword:
|
||||||
|
'about above after against and around as at back before beginning '
|
||||||
|
+ 'behind below beneath beside between but by considering '
|
||||||
|
+ 'contain contains continue copy div does eighth else end equal '
|
||||||
|
+ 'equals error every exit fifth first for fourth from front '
|
||||||
|
+ 'get given global if ignoring in into is it its last local me '
|
||||||
|
+ 'middle mod my ninth not of on onto or over prop property put ref '
|
||||||
|
+ 'reference repeat returning script second set seventh since '
|
||||||
|
+ 'sixth some tell tenth that the|0 then third through thru '
|
||||||
|
+ 'timeout times to transaction try until where while whose with '
|
||||||
|
+ 'without',
|
||||||
|
literal:
|
||||||
|
'AppleScript false linefeed return pi quote result space tab true',
|
||||||
|
built_in:
|
||||||
|
'alias application boolean class constant date file integer list '
|
||||||
|
+ 'number real record string text '
|
||||||
|
+ 'activate beep count delay launch log offset read round '
|
||||||
|
+ 'run say summarize write '
|
||||||
|
+ 'character characters contents day frontmost id item length '
|
||||||
|
+ 'month name|0 paragraph paragraphs rest reverse running time version '
|
||||||
|
+ 'weekday word words year'
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
STRING,
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
{
|
||||||
|
className: 'built_in',
|
||||||
|
begin: regex.concat(
|
||||||
|
/\b/,
|
||||||
|
regex.either(...BUILT_IN_PATTERNS),
|
||||||
|
/\b/
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'built_in',
|
||||||
|
begin: /^\s*return\b/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'literal',
|
||||||
|
begin:
|
||||||
|
/\b(text item delimiters|current application|missing value)\b/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'keyword',
|
||||||
|
begin: regex.concat(
|
||||||
|
/\b/,
|
||||||
|
regex.either(...KEYWORD_PATTERNS),
|
||||||
|
/\b/
|
||||||
|
)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beginKeywords: 'on',
|
||||||
|
illegal: /[${=;\n]/,
|
||||||
|
contains: [
|
||||||
|
hljs.UNDERSCORE_TITLE_MODE,
|
||||||
|
PARAMS
|
||||||
|
]
|
||||||
|
},
|
||||||
|
...COMMENTS
|
||||||
|
],
|
||||||
|
illegal: /\/\/|->|=>|\[\[/
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return applescript;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
18
static/highlight/es/languages/applescript.min.js
vendored
Normal file
18
static/highlight/es/languages/applescript.min.js
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
/*! `applescript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const t=e.regex,r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={
|
||||||
|
className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,r]
|
||||||
|
},i=e.COMMENT(/--/,/$/),n=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]
|
||||||
|
}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],
|
||||||
|
keywords:{
|
||||||
|
keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",
|
||||||
|
literal:"AppleScript false linefeed return pi quote result space tab true",
|
||||||
|
built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"
|
||||||
|
},contains:[r,e.C_NUMBER_MODE,{className:"built_in",
|
||||||
|
begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)
|
||||||
|
},{className:"built_in",begin:/^\s*return\b/},{className:"literal",
|
||||||
|
begin:/\b(text item delimiters|current application|missing value)\b/},{
|
||||||
|
className:"keyword",
|
||||||
|
begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)
|
||||||
|
},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,a]
|
||||||
|
},...n],illegal:/\/\/|->|=>|\[\[/}}})();export default hljsGrammar;
|
||||||
436
static/highlight/es/languages/arcade.js
Normal file
436
static/highlight/es/languages/arcade.js
Normal file
|
|
@ -0,0 +1,436 @@
|
||||||
|
/*! `arcade` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: ArcGIS Arcade
|
||||||
|
Category: scripting
|
||||||
|
Website: https://developers.arcgis.com/arcade/
|
||||||
|
Description: ArcGIS Arcade is an expression language used in many Esri ArcGIS products such as Pro, Online, Server, Runtime, JavaScript, and Python
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function arcade(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const IDENT_RE = '[A-Za-z_][0-9A-Za-z_]*';
|
||||||
|
const KEYWORDS = {
|
||||||
|
keyword: [
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"catch",
|
||||||
|
"continue",
|
||||||
|
"debugger",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"export",
|
||||||
|
"for",
|
||||||
|
"function",
|
||||||
|
"if",
|
||||||
|
"import",
|
||||||
|
"in",
|
||||||
|
"new",
|
||||||
|
"of",
|
||||||
|
"return",
|
||||||
|
"switch",
|
||||||
|
"try",
|
||||||
|
"var",
|
||||||
|
"void",
|
||||||
|
"while"
|
||||||
|
],
|
||||||
|
literal: [
|
||||||
|
"BackSlash",
|
||||||
|
"DoubleQuote",
|
||||||
|
"ForwardSlash",
|
||||||
|
"Infinity",
|
||||||
|
"NaN",
|
||||||
|
"NewLine",
|
||||||
|
"PI",
|
||||||
|
"SingleQuote",
|
||||||
|
"Tab",
|
||||||
|
"TextFormatting",
|
||||||
|
"false",
|
||||||
|
"null",
|
||||||
|
"true",
|
||||||
|
"undefined"
|
||||||
|
],
|
||||||
|
built_in: [
|
||||||
|
"Abs",
|
||||||
|
"Acos",
|
||||||
|
"All",
|
||||||
|
"Angle",
|
||||||
|
"Any",
|
||||||
|
"Area",
|
||||||
|
"AreaGeodetic",
|
||||||
|
"Array",
|
||||||
|
"Asin",
|
||||||
|
"Atan",
|
||||||
|
"Atan2",
|
||||||
|
"Attachments",
|
||||||
|
"Average",
|
||||||
|
"Back",
|
||||||
|
"Bearing",
|
||||||
|
"Boolean",
|
||||||
|
"Buffer",
|
||||||
|
"BufferGeodetic",
|
||||||
|
"Ceil",
|
||||||
|
"Centroid",
|
||||||
|
"ChangeTimeZone",
|
||||||
|
"Clip",
|
||||||
|
"Concatenate",
|
||||||
|
"Console",
|
||||||
|
"Constrain",
|
||||||
|
"Contains",
|
||||||
|
"ConvertDirection",
|
||||||
|
"ConvexHull",
|
||||||
|
"Cos",
|
||||||
|
"Count",
|
||||||
|
"Crosses",
|
||||||
|
"Cut",
|
||||||
|
"Date|0",
|
||||||
|
"DateAdd",
|
||||||
|
"DateDiff",
|
||||||
|
"DateOnly",
|
||||||
|
"Day",
|
||||||
|
"Decode",
|
||||||
|
"DefaultValue",
|
||||||
|
"Densify",
|
||||||
|
"DensifyGeodetic",
|
||||||
|
"Dictionary",
|
||||||
|
"Difference",
|
||||||
|
"Disjoint",
|
||||||
|
"Distance",
|
||||||
|
"DistanceGeodetic",
|
||||||
|
"DistanceToCoordinate",
|
||||||
|
"Distinct",
|
||||||
|
"Domain",
|
||||||
|
"DomainCode",
|
||||||
|
"DomainName",
|
||||||
|
"EnvelopeIntersects",
|
||||||
|
"Equals",
|
||||||
|
"Erase",
|
||||||
|
"Exp",
|
||||||
|
"Expects",
|
||||||
|
"Extent",
|
||||||
|
"Feature",
|
||||||
|
"FeatureInFilter",
|
||||||
|
"FeatureSet",
|
||||||
|
"FeatureSetByAssociation",
|
||||||
|
"FeatureSetById",
|
||||||
|
"FeatureSetByName",
|
||||||
|
"FeatureSetByPortalItem",
|
||||||
|
"FeatureSetByRelationshipClass",
|
||||||
|
"FeatureSetByRelationshipName",
|
||||||
|
"Filter",
|
||||||
|
"FilterBySubtypeCode",
|
||||||
|
"Find",
|
||||||
|
"First|0",
|
||||||
|
"Floor",
|
||||||
|
"FromCharCode",
|
||||||
|
"FromCodePoint",
|
||||||
|
"FromJSON",
|
||||||
|
"Front",
|
||||||
|
"GdbVersion",
|
||||||
|
"Generalize",
|
||||||
|
"Geometry",
|
||||||
|
"GetEnvironment",
|
||||||
|
"GetFeatureSet",
|
||||||
|
"GetFeatureSetInfo",
|
||||||
|
"GetUser",
|
||||||
|
"GroupBy",
|
||||||
|
"Guid",
|
||||||
|
"HasKey",
|
||||||
|
"HasValue",
|
||||||
|
"Hash",
|
||||||
|
"Hour",
|
||||||
|
"IIf",
|
||||||
|
"ISOMonth",
|
||||||
|
"ISOWeek",
|
||||||
|
"ISOWeekday",
|
||||||
|
"ISOYear",
|
||||||
|
"Includes",
|
||||||
|
"IndexOf",
|
||||||
|
"Insert",
|
||||||
|
"Intersection",
|
||||||
|
"Intersects",
|
||||||
|
"IsEmpty",
|
||||||
|
"IsNan",
|
||||||
|
"IsSelfIntersecting",
|
||||||
|
"IsSimple",
|
||||||
|
"KnowledgeGraphByPortalItem",
|
||||||
|
"Left|0",
|
||||||
|
"Length",
|
||||||
|
"Length3D",
|
||||||
|
"LengthGeodetic",
|
||||||
|
"Log",
|
||||||
|
"Lower",
|
||||||
|
"Map",
|
||||||
|
"Max",
|
||||||
|
"Mean",
|
||||||
|
"MeasureToCoordinate",
|
||||||
|
"Mid",
|
||||||
|
"Millisecond",
|
||||||
|
"Min",
|
||||||
|
"Minute",
|
||||||
|
"Month",
|
||||||
|
"MultiPartToSinglePart",
|
||||||
|
"Multipoint",
|
||||||
|
"NearestCoordinate",
|
||||||
|
"NearestVertex",
|
||||||
|
"NextSequenceValue",
|
||||||
|
"None",
|
||||||
|
"Now",
|
||||||
|
"Number",
|
||||||
|
"Offset",
|
||||||
|
"OrderBy",
|
||||||
|
"Overlaps",
|
||||||
|
"Point",
|
||||||
|
"PointToCoordinate",
|
||||||
|
"Polygon",
|
||||||
|
"Polyline",
|
||||||
|
"Pop",
|
||||||
|
"Portal",
|
||||||
|
"Pow",
|
||||||
|
"Proper",
|
||||||
|
"Push",
|
||||||
|
"QueryGraph",
|
||||||
|
"Random",
|
||||||
|
"Reduce",
|
||||||
|
"Relate",
|
||||||
|
"Replace",
|
||||||
|
"Resize",
|
||||||
|
"Reverse",
|
||||||
|
"Right|0",
|
||||||
|
"RingIsClockwise",
|
||||||
|
"Rotate",
|
||||||
|
"Round",
|
||||||
|
"Schema",
|
||||||
|
"Second",
|
||||||
|
"SetGeometry",
|
||||||
|
"Simplify",
|
||||||
|
"Sin",
|
||||||
|
"Slice",
|
||||||
|
"Sort",
|
||||||
|
"Splice",
|
||||||
|
"Split",
|
||||||
|
"Sqrt",
|
||||||
|
"StandardizeFilename",
|
||||||
|
"StandardizeGuid",
|
||||||
|
"Stdev",
|
||||||
|
"SubtypeCode",
|
||||||
|
"SubtypeName",
|
||||||
|
"Subtypes",
|
||||||
|
"Sum",
|
||||||
|
"SymmetricDifference",
|
||||||
|
"Tan",
|
||||||
|
"Text",
|
||||||
|
"Time",
|
||||||
|
"TimeZone",
|
||||||
|
"TimeZoneOffset",
|
||||||
|
"Timestamp",
|
||||||
|
"ToCharCode",
|
||||||
|
"ToCodePoint",
|
||||||
|
"ToHex",
|
||||||
|
"ToLocal",
|
||||||
|
"ToUTC",
|
||||||
|
"Today",
|
||||||
|
"Top|0",
|
||||||
|
"Touches",
|
||||||
|
"TrackAccelerationAt",
|
||||||
|
"TrackAccelerationWindow",
|
||||||
|
"TrackCurrentAcceleration",
|
||||||
|
"TrackCurrentDistance",
|
||||||
|
"TrackCurrentSpeed",
|
||||||
|
"TrackCurrentTime",
|
||||||
|
"TrackDistanceAt",
|
||||||
|
"TrackDistanceWindow",
|
||||||
|
"TrackDuration",
|
||||||
|
"TrackFieldWindow",
|
||||||
|
"TrackGeometryWindow",
|
||||||
|
"TrackIndex",
|
||||||
|
"TrackSpeedAt",
|
||||||
|
"TrackSpeedWindow",
|
||||||
|
"TrackStartTime",
|
||||||
|
"TrackWindow",
|
||||||
|
"Trim",
|
||||||
|
"TypeOf",
|
||||||
|
"Union",
|
||||||
|
"Upper",
|
||||||
|
"UrlEncode",
|
||||||
|
"Variance",
|
||||||
|
"Week",
|
||||||
|
"Weekday",
|
||||||
|
"When|0",
|
||||||
|
"Within",
|
||||||
|
"Year|0",
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const PROFILE_VARS = [
|
||||||
|
"aggregatedFeatures",
|
||||||
|
"analytic",
|
||||||
|
"config",
|
||||||
|
"datapoint",
|
||||||
|
"datastore",
|
||||||
|
"editcontext",
|
||||||
|
"feature",
|
||||||
|
"featureSet",
|
||||||
|
"feedfeature",
|
||||||
|
"fencefeature",
|
||||||
|
"fencenotificationtype",
|
||||||
|
"graph",
|
||||||
|
"join",
|
||||||
|
"layer",
|
||||||
|
"locationupdate",
|
||||||
|
"map",
|
||||||
|
"measure",
|
||||||
|
"measure",
|
||||||
|
"originalFeature",
|
||||||
|
"record",
|
||||||
|
"reference",
|
||||||
|
"rowindex",
|
||||||
|
"sourcedatastore",
|
||||||
|
"sourcefeature",
|
||||||
|
"sourcelayer",
|
||||||
|
"target",
|
||||||
|
"targetdatastore",
|
||||||
|
"targetfeature",
|
||||||
|
"targetlayer",
|
||||||
|
"userInput",
|
||||||
|
"value",
|
||||||
|
"variables",
|
||||||
|
"view"
|
||||||
|
];
|
||||||
|
const SYMBOL = {
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '\\$' + regex.either(...PROFILE_VARS)
|
||||||
|
};
|
||||||
|
const NUMBER = {
|
||||||
|
className: 'number',
|
||||||
|
variants: [
|
||||||
|
{ begin: '\\b(0[bB][01]+)' },
|
||||||
|
{ begin: '\\b(0[oO][0-7]+)' },
|
||||||
|
{ begin: hljs.C_NUMBER_RE }
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const SUBST = {
|
||||||
|
className: 'subst',
|
||||||
|
begin: '\\$\\{',
|
||||||
|
end: '\\}',
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [] // defined later
|
||||||
|
};
|
||||||
|
const TEMPLATE_STRING = {
|
||||||
|
className: 'string',
|
||||||
|
begin: '`',
|
||||||
|
end: '`',
|
||||||
|
contains: [
|
||||||
|
hljs.BACKSLASH_ESCAPE,
|
||||||
|
SUBST
|
||||||
|
]
|
||||||
|
};
|
||||||
|
SUBST.contains = [
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
TEMPLATE_STRING,
|
||||||
|
NUMBER,
|
||||||
|
hljs.REGEXP_MODE
|
||||||
|
];
|
||||||
|
const PARAMS_CONTAINS = SUBST.contains.concat([
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.C_LINE_COMMENT_MODE
|
||||||
|
]);
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'ArcGIS Arcade',
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
TEMPLATE_STRING,
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
SYMBOL,
|
||||||
|
NUMBER,
|
||||||
|
{ // object attr container
|
||||||
|
begin: /[{,]\s*/,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: IDENT_RE + '\\s*:',
|
||||||
|
returnBegin: true,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'attr',
|
||||||
|
begin: IDENT_RE,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ // "value" container
|
||||||
|
begin: '(' + hljs.RE_STARTERS_RE + '|\\b(return)\\b)\\s*',
|
||||||
|
keywords: 'return',
|
||||||
|
contains: [
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.REGEXP_MODE,
|
||||||
|
{
|
||||||
|
className: 'function',
|
||||||
|
begin: '(\\(.*?\\)|' + IDENT_RE + ')\\s*=>',
|
||||||
|
returnBegin: true,
|
||||||
|
end: '\\s*=>',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
variants: [
|
||||||
|
{ begin: IDENT_RE },
|
||||||
|
{ begin: /\(\s*\)/ },
|
||||||
|
{
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: PARAMS_CONTAINS
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beginKeywords: 'function',
|
||||||
|
end: /\{/,
|
||||||
|
excludeEnd: true,
|
||||||
|
contains: [
|
||||||
|
hljs.inherit(hljs.TITLE_MODE, {
|
||||||
|
className: "title.function",
|
||||||
|
begin: IDENT_RE
|
||||||
|
}),
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
contains: PARAMS_CONTAINS
|
||||||
|
}
|
||||||
|
],
|
||||||
|
illegal: /\[|%/
|
||||||
|
},
|
||||||
|
{ begin: /\$[(.]/ }
|
||||||
|
],
|
||||||
|
illegal: /#(?!!)/
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return arcade;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
28
static/highlight/es/languages/arcade.min.js
vendored
Normal file
28
static/highlight/es/languages/arcade.min.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
/*! `arcade` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const t="[A-Za-z_][0-9A-Za-z_]*",n={
|
||||||
|
keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],
|
||||||
|
literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],
|
||||||
|
built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]
|
||||||
|
},a={className:"symbol",
|
||||||
|
begin:"\\$"+e.regex.either("aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view")
|
||||||
|
},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{
|
||||||
|
begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},i={
|
||||||
|
className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={
|
||||||
|
className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]}
|
||||||
|
;i.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,r,e.REGEXP_MODE]
|
||||||
|
;const s=i.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE])
|
||||||
|
;return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:n,
|
||||||
|
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,r,{
|
||||||
|
begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,
|
||||||
|
relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{
|
||||||
|
begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",
|
||||||
|
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{
|
||||||
|
className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,
|
||||||
|
end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/
|
||||||
|
},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]
|
||||||
|
}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,
|
||||||
|
contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{
|
||||||
|
className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s
|
||||||
|
}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
1016
static/highlight/es/languages/arduino.js
Normal file
1016
static/highlight/es/languages/arduino.js
Normal file
File diff suppressed because it is too large
Load diff
54
static/highlight/es/languages/arduino.min.js
vendored
Normal file
54
static/highlight/es/languages/arduino.min.js
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
/*! `arduino` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const t={
|
||||||
|
type:["boolean","byte","word","String"],
|
||||||
|
built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],
|
||||||
|
_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],
|
||||||
|
literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]
|
||||||
|
},r=(e=>{const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
|
||||||
|
}),a="decltype\\(auto\\)",n="[a-zA-Z_]\\w*::",i="(?!struct)("+a+"|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||||
|
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},o={className:"string",variants:[{
|
||||||
|
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||||
|
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||||
|
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||||
|
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
|
||||||
|
className:"number",variants:[{
|
||||||
|
begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
||||||
|
},{
|
||||||
|
begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
||||||
|
}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||||
|
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||||
|
},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{
|
||||||
|
className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},d={
|
||||||
|
className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0
|
||||||
|
},u=t.optional(n)+e.IDENT_RE+"\\s*\\(",p={
|
||||||
|
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||||
|
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||||
|
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||||
|
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||||
|
},m={className:"function.dispatch",relevance:0,keywords:{
|
||||||
|
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||||
|
},
|
||||||
|
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||||
|
},g=[m,c,s,r,e.C_BLOCK_COMMENT_MODE,l,o],_={variants:[{begin:/=/,end:/;/},{
|
||||||
|
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||||
|
keywords:p,contains:g.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||||
|
contains:g.concat(["self"]),relevance:0}]),relevance:0},h={className:"function",
|
||||||
|
begin:"("+i+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||||
|
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:p,relevance:0},{
|
||||||
|
begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{
|
||||||
|
begin:/:/,endsWithParent:!0,contains:[o,l]},{relevance:0,match:/,/},{
|
||||||
|
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||||
|
contains:[r,e.C_BLOCK_COMMENT_MODE,o,l,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||||
|
relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,o,l,s]}]
|
||||||
|
},s,r,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",
|
||||||
|
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||||
|
classNameAliases:{"function.dispatch":"built_in"},
|
||||||
|
contains:[].concat(_,h,m,g,[c,{
|
||||||
|
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
||||||
|
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||||
|
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||||
|
className:{1:"keyword",3:"title.class"}}])}})(e),a=r.keywords
|
||||||
|
;return a.type=[...a.type,...t.type],
|
||||||
|
a.literal=[...a.literal,...t.literal],a.built_in=[...a.built_in,...t.built_in],
|
||||||
|
a._hints=t._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
132
static/highlight/es/languages/armasm.js
Normal file
132
static/highlight/es/languages/armasm.js
Normal file
|
|
@ -0,0 +1,132 @@
|
||||||
|
/*! `armasm` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: ARM Assembly
|
||||||
|
Author: Dan Panzarella <alsoelp@gmail.com>
|
||||||
|
Description: ARM Assembly including Thumb and Thumb2 instructions
|
||||||
|
Category: assembler
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function armasm(hljs) {
|
||||||
|
// local labels: %?[FB]?[AT]?\d{1,2}\w+
|
||||||
|
|
||||||
|
const COMMENT = { variants: [
|
||||||
|
hljs.COMMENT('^[ \\t]*(?=#)', '$', {
|
||||||
|
relevance: 0,
|
||||||
|
excludeBegin: true
|
||||||
|
}),
|
||||||
|
hljs.COMMENT('[;@]', '$', { relevance: 0 }),
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE
|
||||||
|
] };
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'ARM Assembly',
|
||||||
|
case_insensitive: true,
|
||||||
|
aliases: [ 'arm' ],
|
||||||
|
keywords: {
|
||||||
|
$pattern: '\\.?' + hljs.IDENT_RE,
|
||||||
|
meta:
|
||||||
|
// GNU preprocs
|
||||||
|
'.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg '
|
||||||
|
// ARM directives
|
||||||
|
+ 'ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ',
|
||||||
|
built_in:
|
||||||
|
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ' // standard registers
|
||||||
|
+ 'w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 ' // 32 bit ARMv8 registers
|
||||||
|
+ 'w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 '
|
||||||
|
+ 'x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 ' // 64 bit ARMv8 registers
|
||||||
|
+ 'x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 '
|
||||||
|
+ 'pc lr sp ip sl sb fp ' // typical regs plus backward compatibility
|
||||||
|
+ 'a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 ' // more regs and fp
|
||||||
|
+ 'p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ' // coprocessor regs
|
||||||
|
+ 'c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 ' // more coproc
|
||||||
|
+ 'q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 ' // advanced SIMD NEON regs
|
||||||
|
|
||||||
|
// program status registers
|
||||||
|
+ 'cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf '
|
||||||
|
+ 'spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf '
|
||||||
|
|
||||||
|
// NEON and VFP registers
|
||||||
|
+ 's0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 '
|
||||||
|
+ 's16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 '
|
||||||
|
+ 'd0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 '
|
||||||
|
+ 'd16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 '
|
||||||
|
|
||||||
|
+ '{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @'
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'keyword',
|
||||||
|
begin: '\\b(' // mnemonics
|
||||||
|
+ 'adc|'
|
||||||
|
+ '(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|'
|
||||||
|
+ 'and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|'
|
||||||
|
+ 'bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|'
|
||||||
|
+ 'setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|'
|
||||||
|
+ 'ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|'
|
||||||
|
+ 'mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|'
|
||||||
|
+ 'mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|'
|
||||||
|
+ 'mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|'
|
||||||
|
+ 'rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|'
|
||||||
|
+ 'stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|'
|
||||||
|
+ '[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|'
|
||||||
|
+ 'wfe|wfi|yield'
|
||||||
|
+ ')'
|
||||||
|
+ '(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?' // condition codes
|
||||||
|
+ '[sptrx]?' // legal postfixes
|
||||||
|
+ '(?=\\s)' // followed by space
|
||||||
|
},
|
||||||
|
COMMENT,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: '\'',
|
||||||
|
end: '[^\\\\]\'',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'title',
|
||||||
|
begin: '\\|',
|
||||||
|
end: '\\|',
|
||||||
|
illegal: '\\n',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
variants: [
|
||||||
|
{ // hex
|
||||||
|
begin: '[#$=]?0x[0-9a-f]+' },
|
||||||
|
{ // bin
|
||||||
|
begin: '[#$=]?0b[01]+' },
|
||||||
|
{ // literal
|
||||||
|
begin: '[#$=]\\d+' },
|
||||||
|
{ // bare number
|
||||||
|
begin: '\\b\\d+' }
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'symbol',
|
||||||
|
variants: [
|
||||||
|
{ // GNU ARM syntax
|
||||||
|
begin: '^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:' },
|
||||||
|
{ // ARM syntax
|
||||||
|
begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+' },
|
||||||
|
{ // label reference
|
||||||
|
begin: '[=#]\\w+' }
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return armasm;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
17
static/highlight/es/languages/armasm.min.js
vendored
Normal file
17
static/highlight/es/languages/armasm.min.js
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*! `armasm` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return s=>{const r={
|
||||||
|
variants:[s.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0
|
||||||
|
}),s.COMMENT("[;@]","$",{relevance:0
|
||||||
|
}),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",
|
||||||
|
case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+s.IDENT_RE,
|
||||||
|
meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",
|
||||||
|
built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"
|
||||||
|
},contains:[{className:"keyword",
|
||||||
|
begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"
|
||||||
|
},r,s.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0
|
||||||
|
},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{
|
||||||
|
className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"
|
||||||
|
},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",
|
||||||
|
variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{
|
||||||
|
begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
269
static/highlight/es/languages/asciidoc.js
Normal file
269
static/highlight/es/languages/asciidoc.js
Normal file
|
|
@ -0,0 +1,269 @@
|
||||||
|
/*! `asciidoc` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AsciiDoc
|
||||||
|
Requires: xml.js
|
||||||
|
Author: Dan Allen <dan.j.allen@gmail.com>
|
||||||
|
Website: http://asciidoc.org
|
||||||
|
Description: A semantic, text-based document format that can be exported to HTML, DocBook and other backends.
|
||||||
|
Category: markup
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function asciidoc(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const HORIZONTAL_RULE = {
|
||||||
|
begin: '^\'{3,}[ \\t]*$',
|
||||||
|
relevance: 10
|
||||||
|
};
|
||||||
|
const ESCAPED_FORMATTING = [
|
||||||
|
// escaped constrained formatting marks (i.e., \* \_ or \`)
|
||||||
|
{ begin: /\\[*_`]/ },
|
||||||
|
// escaped unconstrained formatting marks (i.e., \\** \\__ or \\``)
|
||||||
|
// must ignore until the next formatting marks
|
||||||
|
// this rule might not be 100% compliant with Asciidoctor 2.0 but we are entering undefined behavior territory...
|
||||||
|
{ begin: /\\\\\*{2}[^\n]*?\*{2}/ },
|
||||||
|
{ begin: /\\\\_{2}[^\n]*_{2}/ },
|
||||||
|
{ begin: /\\\\`{2}[^\n]*`{2}/ },
|
||||||
|
// guard: constrained formatting mark may not be preceded by ":", ";" or
|
||||||
|
// "}". match these so the constrained rule doesn't see them
|
||||||
|
{ begin: /[:;}][*_`](?![*_`])/ }
|
||||||
|
];
|
||||||
|
const STRONG = [
|
||||||
|
// inline unconstrained strong (single line)
|
||||||
|
{
|
||||||
|
className: 'strong',
|
||||||
|
begin: /\*{2}([^\n]+?)\*{2}/
|
||||||
|
},
|
||||||
|
// inline unconstrained strong (multi-line)
|
||||||
|
{
|
||||||
|
className: 'strong',
|
||||||
|
begin: regex.concat(
|
||||||
|
/\*\*/,
|
||||||
|
/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,
|
||||||
|
/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,
|
||||||
|
/\*\*/
|
||||||
|
),
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// inline constrained strong (single line)
|
||||||
|
{
|
||||||
|
className: 'strong',
|
||||||
|
// must not precede or follow a word character
|
||||||
|
begin: /\B\*(\S|\S[^\n]*?\S)\*(?!\w)/
|
||||||
|
},
|
||||||
|
// inline constrained strong (multi-line)
|
||||||
|
{
|
||||||
|
className: 'strong',
|
||||||
|
// must not precede or follow a word character
|
||||||
|
begin: /\*[^\s]([^\n]+\n)+([^\n]+)\*/
|
||||||
|
}
|
||||||
|
];
|
||||||
|
const EMPHASIS = [
|
||||||
|
// inline unconstrained emphasis (single line)
|
||||||
|
{
|
||||||
|
className: 'emphasis',
|
||||||
|
begin: /_{2}([^\n]+?)_{2}/
|
||||||
|
},
|
||||||
|
// inline unconstrained emphasis (multi-line)
|
||||||
|
{
|
||||||
|
className: 'emphasis',
|
||||||
|
begin: regex.concat(
|
||||||
|
/__/,
|
||||||
|
/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,
|
||||||
|
/(_(?!_)|\\[^\n]|[^_\n\\])*/,
|
||||||
|
/__/
|
||||||
|
),
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// inline constrained emphasis (single line)
|
||||||
|
{
|
||||||
|
className: 'emphasis',
|
||||||
|
// must not precede or follow a word character
|
||||||
|
begin: /\b_(\S|\S[^\n]*?\S)_(?!\w)/
|
||||||
|
},
|
||||||
|
// inline constrained emphasis (multi-line)
|
||||||
|
{
|
||||||
|
className: 'emphasis',
|
||||||
|
// must not precede or follow a word character
|
||||||
|
begin: /_[^\s]([^\n]+\n)+([^\n]+)_/
|
||||||
|
},
|
||||||
|
// inline constrained emphasis using single quote (legacy)
|
||||||
|
{
|
||||||
|
className: 'emphasis',
|
||||||
|
// must not follow a word character or be followed by a single quote or space
|
||||||
|
begin: '\\B\'(?![\'\\s])',
|
||||||
|
end: '(\\n{2}|\')',
|
||||||
|
// allow escaped single quote followed by word char
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: '\\\\\'\\w',
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
];
|
||||||
|
const ADMONITION = {
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+',
|
||||||
|
relevance: 10
|
||||||
|
};
|
||||||
|
const BULLET_LIST = {
|
||||||
|
className: 'bullet',
|
||||||
|
begin: '^(\\*+|-+|\\.+|[^\\n]+?::)\\s+'
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'AsciiDoc',
|
||||||
|
aliases: [ 'adoc' ],
|
||||||
|
contains: [
|
||||||
|
// block comment
|
||||||
|
hljs.COMMENT(
|
||||||
|
'^/{4,}\\n',
|
||||||
|
'\\n/{4,}$',
|
||||||
|
// can also be done as...
|
||||||
|
// '^/{4,}$',
|
||||||
|
// '^/{4,}$',
|
||||||
|
{ relevance: 10 }
|
||||||
|
),
|
||||||
|
// line comment
|
||||||
|
hljs.COMMENT(
|
||||||
|
'^//',
|
||||||
|
'$',
|
||||||
|
{ relevance: 0 }
|
||||||
|
),
|
||||||
|
// title
|
||||||
|
{
|
||||||
|
className: 'title',
|
||||||
|
begin: '^\\.\\w.*$'
|
||||||
|
},
|
||||||
|
// example, admonition & sidebar blocks
|
||||||
|
{
|
||||||
|
begin: '^[=\\*]{4,}\\n',
|
||||||
|
end: '\\n^[=\\*]{4,}$',
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
// headings
|
||||||
|
{
|
||||||
|
className: 'section',
|
||||||
|
relevance: 10,
|
||||||
|
variants: [
|
||||||
|
{ begin: '^(={1,6})[ \t].+?([ \t]\\1)?$' },
|
||||||
|
{ begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$' }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// document attributes
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: '^:.+?:',
|
||||||
|
end: '\\s',
|
||||||
|
excludeEnd: true,
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
// block attributes
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: '^\\[.+?\\]$',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// quoteblocks
|
||||||
|
{
|
||||||
|
className: 'quote',
|
||||||
|
begin: '^_{4,}\\n',
|
||||||
|
end: '\\n_{4,}$',
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
// listing and literal blocks
|
||||||
|
{
|
||||||
|
className: 'code',
|
||||||
|
begin: '^[\\-\\.]{4,}\\n',
|
||||||
|
end: '\\n[\\-\\.]{4,}$',
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
// passthrough blocks
|
||||||
|
{
|
||||||
|
begin: '^\\+{4,}\\n',
|
||||||
|
end: '\\n\\+{4,}$',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: '<',
|
||||||
|
end: '>',
|
||||||
|
subLanguage: 'xml',
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
|
||||||
|
BULLET_LIST,
|
||||||
|
ADMONITION,
|
||||||
|
...ESCAPED_FORMATTING,
|
||||||
|
...STRONG,
|
||||||
|
...EMPHASIS,
|
||||||
|
|
||||||
|
// inline smart quotes
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
variants: [
|
||||||
|
{ begin: "``.+?''" },
|
||||||
|
{ begin: "`.+?'" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// inline unconstrained emphasis
|
||||||
|
{
|
||||||
|
className: 'code',
|
||||||
|
begin: /`{2}/,
|
||||||
|
end: /(\n{2}|`{2})/
|
||||||
|
},
|
||||||
|
// inline code snippets (TODO should get same treatment as strong and emphasis)
|
||||||
|
{
|
||||||
|
className: 'code',
|
||||||
|
begin: '(`.+?`|\\+.+?\\+)',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// indented literal block
|
||||||
|
{
|
||||||
|
className: 'code',
|
||||||
|
begin: '^[ \\t]',
|
||||||
|
end: '$',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
HORIZONTAL_RULE,
|
||||||
|
// images and links
|
||||||
|
{
|
||||||
|
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]',
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: '(link|image:?):',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'link',
|
||||||
|
begin: '\\w',
|
||||||
|
end: '[^\\[]+',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: '\\[',
|
||||||
|
end: '\\]',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
relevance: 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return asciidoc;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
35
static/highlight/es/languages/asciidoc.min.js
vendored
Normal file
35
static/highlight/es/languages/asciidoc.min.js
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*! `asciidoc` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a=[{
|
||||||
|
className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",
|
||||||
|
begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),
|
||||||
|
relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{
|
||||||
|
className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{
|
||||||
|
className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",
|
||||||
|
begin:n.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),
|
||||||
|
relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{
|
||||||
|
className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",
|
||||||
|
begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0
|
||||||
|
}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],
|
||||||
|
contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10
|
||||||
|
}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{
|
||||||
|
begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",
|
||||||
|
relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{
|
||||||
|
begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",
|
||||||
|
begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",
|
||||||
|
begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",
|
||||||
|
end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",
|
||||||
|
end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",
|
||||||
|
contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{
|
||||||
|
className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",
|
||||||
|
begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{
|
||||||
|
begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{
|
||||||
|
begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/},...a,...s,{
|
||||||
|
className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{
|
||||||
|
className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",
|
||||||
|
begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",
|
||||||
|
end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{
|
||||||
|
begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",
|
||||||
|
returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{
|
||||||
|
className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",
|
||||||
|
begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]
|
||||||
|
}}})();export default hljsGrammar;
|
||||||
239
static/highlight/es/languages/aspectj.js
Normal file
239
static/highlight/es/languages/aspectj.js
Normal file
|
|
@ -0,0 +1,239 @@
|
||||||
|
/*! `aspectj` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AspectJ
|
||||||
|
Author: Hakan Ozler <ozler.hakan@gmail.com>
|
||||||
|
Website: https://www.eclipse.org/aspectj/
|
||||||
|
Description: Syntax Highlighting for the AspectJ Language which is a general-purpose aspect-oriented extension to the Java programming language.
|
||||||
|
Category: system
|
||||||
|
Audit: 2020
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function aspectj(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const KEYWORDS = [
|
||||||
|
"false",
|
||||||
|
"synchronized",
|
||||||
|
"int",
|
||||||
|
"abstract",
|
||||||
|
"float",
|
||||||
|
"private",
|
||||||
|
"char",
|
||||||
|
"boolean",
|
||||||
|
"static",
|
||||||
|
"null",
|
||||||
|
"if",
|
||||||
|
"const",
|
||||||
|
"for",
|
||||||
|
"true",
|
||||||
|
"while",
|
||||||
|
"long",
|
||||||
|
"throw",
|
||||||
|
"strictfp",
|
||||||
|
"finally",
|
||||||
|
"protected",
|
||||||
|
"import",
|
||||||
|
"native",
|
||||||
|
"final",
|
||||||
|
"return",
|
||||||
|
"void",
|
||||||
|
"enum",
|
||||||
|
"else",
|
||||||
|
"extends",
|
||||||
|
"implements",
|
||||||
|
"break",
|
||||||
|
"transient",
|
||||||
|
"new",
|
||||||
|
"catch",
|
||||||
|
"instanceof",
|
||||||
|
"byte",
|
||||||
|
"super",
|
||||||
|
"volatile",
|
||||||
|
"case",
|
||||||
|
"assert",
|
||||||
|
"short",
|
||||||
|
"package",
|
||||||
|
"default",
|
||||||
|
"double",
|
||||||
|
"public",
|
||||||
|
"try",
|
||||||
|
"this",
|
||||||
|
"switch",
|
||||||
|
"continue",
|
||||||
|
"throws",
|
||||||
|
"privileged",
|
||||||
|
"aspectOf",
|
||||||
|
"adviceexecution",
|
||||||
|
"proceed",
|
||||||
|
"cflowbelow",
|
||||||
|
"cflow",
|
||||||
|
"initialization",
|
||||||
|
"preinitialization",
|
||||||
|
"staticinitialization",
|
||||||
|
"withincode",
|
||||||
|
"target",
|
||||||
|
"within",
|
||||||
|
"execution",
|
||||||
|
"getWithinTypeName",
|
||||||
|
"handler",
|
||||||
|
"thisJoinPoint",
|
||||||
|
"thisJoinPointStaticPart",
|
||||||
|
"thisEnclosingJoinPointStaticPart",
|
||||||
|
"declare",
|
||||||
|
"parents",
|
||||||
|
"warning",
|
||||||
|
"error",
|
||||||
|
"soft",
|
||||||
|
"precedence",
|
||||||
|
"thisAspectInstance"
|
||||||
|
];
|
||||||
|
const SHORTKEYS = [
|
||||||
|
"get",
|
||||||
|
"set",
|
||||||
|
"args",
|
||||||
|
"call"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'AspectJ',
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
illegal: /<\/|#/,
|
||||||
|
contains: [
|
||||||
|
hljs.COMMENT(
|
||||||
|
/\/\*\*/,
|
||||||
|
/\*\//,
|
||||||
|
{
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
// eat up @'s in emails to prevent them to be recognized as doctags
|
||||||
|
begin: /\w+@/,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'doctag',
|
||||||
|
begin: /@[A-Za-z]+/
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
),
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
{
|
||||||
|
className: 'class',
|
||||||
|
beginKeywords: 'aspect',
|
||||||
|
end: /[{;=]/,
|
||||||
|
excludeEnd: true,
|
||||||
|
illegal: /[:;"\[\]]/,
|
||||||
|
contains: [
|
||||||
|
{ beginKeywords: 'extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton' },
|
||||||
|
hljs.UNDERSCORE_TITLE_MODE,
|
||||||
|
{
|
||||||
|
begin: /\([^\)]*/,
|
||||||
|
end: /[)]+/,
|
||||||
|
keywords: KEYWORDS.concat(SHORTKEYS),
|
||||||
|
excludeEnd: false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'class',
|
||||||
|
beginKeywords: 'class interface',
|
||||||
|
end: /[{;=]/,
|
||||||
|
excludeEnd: true,
|
||||||
|
relevance: 0,
|
||||||
|
keywords: 'class interface',
|
||||||
|
illegal: /[:"\[\]]/,
|
||||||
|
contains: [
|
||||||
|
{ beginKeywords: 'extends implements' },
|
||||||
|
hljs.UNDERSCORE_TITLE_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// AspectJ Constructs
|
||||||
|
beginKeywords: 'pointcut after before around throwing returning',
|
||||||
|
end: /[)]/,
|
||||||
|
excludeEnd: false,
|
||||||
|
illegal: /["\[\]]/,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/),
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [ hljs.UNDERSCORE_TITLE_MODE ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /[:]/,
|
||||||
|
returnBegin: true,
|
||||||
|
end: /[{;]/,
|
||||||
|
relevance: 0,
|
||||||
|
excludeEnd: false,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
illegal: /["\[\]]/,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/),
|
||||||
|
keywords: KEYWORDS.concat(SHORTKEYS),
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
hljs.QUOTE_STRING_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// this prevents 'new Name(...), or throw ...' from being recognized as a function definition
|
||||||
|
beginKeywords: 'new throw',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// the function class is a bit different for AspectJ compared to the Java language
|
||||||
|
className: 'function',
|
||||||
|
begin: /\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,
|
||||||
|
returnBegin: true,
|
||||||
|
end: /[{;=]/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
excludeEnd: true,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/),
|
||||||
|
returnBegin: true,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [ hljs.UNDERSCORE_TITLE_MODE ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
relevance: 0,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
{
|
||||||
|
// annotation is also used in this language
|
||||||
|
className: 'meta',
|
||||||
|
begin: /@[A-Za-z]+/
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return aspectj;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
30
static/highlight/es/languages/aspectj.min.js
vendored
Normal file
30
static/highlight/es/languages/aspectj.min.js
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
/*! `aspectj` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const n=e.regex,t=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"]
|
||||||
|
;return{name:"AspectJ",keywords:t,illegal:/<\/|#/,
|
||||||
|
contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,
|
||||||
|
relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]
|
||||||
|
}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
|
||||||
|
className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,
|
||||||
|
illegal:/[:;"\[\]]/,contains:[{
|
||||||
|
beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"
|
||||||
|
},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t.concat(i),
|
||||||
|
excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,
|
||||||
|
excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,
|
||||||
|
contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{
|
||||||
|
beginKeywords:"pointcut after before around throwing returning",end:/[)]/,
|
||||||
|
excludeEnd:!1,illegal:/["\[\]]/,contains:[{
|
||||||
|
begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,
|
||||||
|
contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,
|
||||||
|
relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{
|
||||||
|
begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:t.concat(i),relevance:0
|
||||||
|
},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{
|
||||||
|
className:"function",
|
||||||
|
begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,
|
||||||
|
end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{
|
||||||
|
begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,
|
||||||
|
contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,
|
||||||
|
relevance:0,keywords:t,
|
||||||
|
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]
|
||||||
|
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{
|
||||||
|
className:"meta",begin:/@[A-Za-z]+/}]}}})();export default hljsGrammar;
|
||||||
83
static/highlight/es/languages/autohotkey.js
Normal file
83
static/highlight/es/languages/autohotkey.js
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
/*! `autohotkey` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AutoHotkey
|
||||||
|
Author: Seongwon Lee <dlimpid@gmail.com>
|
||||||
|
Description: AutoHotkey language definition
|
||||||
|
Category: scripting
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function autohotkey(hljs) {
|
||||||
|
const BACKTICK_ESCAPE = { begin: '`[\\s\\S]' };
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'AutoHotkey',
|
||||||
|
case_insensitive: true,
|
||||||
|
aliases: [ 'ahk' ],
|
||||||
|
keywords: {
|
||||||
|
keyword: 'Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group',
|
||||||
|
literal: 'true false NOT AND OR',
|
||||||
|
built_in: 'ComSpec Clipboard ClipboardAll ErrorLevel'
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
BACKTICK_ESCAPE,
|
||||||
|
hljs.inherit(hljs.QUOTE_STRING_MODE, { contains: [ BACKTICK_ESCAPE ] }),
|
||||||
|
hljs.COMMENT(';', '$', { relevance: 0 }),
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
begin: hljs.NUMBER_RE,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// subst would be the most accurate however fails the point of
|
||||||
|
// highlighting. variable is comparably the most accurate that actually
|
||||||
|
// has some effect
|
||||||
|
className: 'variable',
|
||||||
|
begin: '%[a-zA-Z0-9#_$@]+%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'built_in',
|
||||||
|
begin: '^\\s*\\w+\\s*(,|%)'
|
||||||
|
// I don't really know if this is totally relevant
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// symbol would be most accurate however is highlighted just like
|
||||||
|
// built_in and that makes up a lot of AutoHotkey code meaning that it
|
||||||
|
// would fail to highlight anything
|
||||||
|
className: 'title',
|
||||||
|
variants: [
|
||||||
|
{ begin: '^[^\\n";]+::(?!=)' },
|
||||||
|
{
|
||||||
|
begin: '^[^\\n";]+:(?!=)',
|
||||||
|
// zero relevance as it catches a lot of things
|
||||||
|
// followed by a single ':' in many languages
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: '^\\s*#\\w+',
|
||||||
|
end: '$',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'built_in',
|
||||||
|
begin: 'A_[a-zA-Z0-9]+'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// consecutive commas, not for highlighting but just for relevance
|
||||||
|
begin: ',\\s*,' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return autohotkey;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
13
static/highlight/es/languages/autohotkey.min.js
vendored
Normal file
13
static/highlight/es/languages/autohotkey.min.js
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
/*! `autohotkey` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const a={begin:"`[\\s\\S]"}
|
||||||
|
;return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{
|
||||||
|
keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",
|
||||||
|
literal:"true false NOT AND OR",
|
||||||
|
built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},
|
||||||
|
contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[a]}),e.COMMENT(";","$",{
|
||||||
|
relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,
|
||||||
|
relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{
|
||||||
|
className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{
|
||||||
|
begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{
|
||||||
|
className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",
|
||||||
|
begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}})();export default hljsGrammar;
|
||||||
186
static/highlight/es/languages/autoit.js
Normal file
186
static/highlight/es/languages/autoit.js
Normal file
File diff suppressed because one or more lines are too long
21
static/highlight/es/languages/autoit.min.js
vendored
Normal file
21
static/highlight/es/languages/autoit.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
86
static/highlight/es/languages/avrasm.js
Normal file
86
static/highlight/es/languages/avrasm.js
Normal file
|
|
@ -0,0 +1,86 @@
|
||||||
|
/*! `avrasm` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: AVR Assembly
|
||||||
|
Author: Vladimir Ermakov <vooon341@gmail.com>
|
||||||
|
Category: assembler
|
||||||
|
Website: https://www.microchip.com/webdoc/avrassembler/avrassembler.wb_instruction_list.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function avrasm(hljs) {
|
||||||
|
return {
|
||||||
|
name: 'AVR Assembly',
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: {
|
||||||
|
$pattern: '\\.?' + hljs.IDENT_RE,
|
||||||
|
keyword:
|
||||||
|
/* mnemonic */
|
||||||
|
'adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs '
|
||||||
|
+ 'brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr '
|
||||||
|
+ 'clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor '
|
||||||
|
+ 'fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul '
|
||||||
|
+ 'muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs '
|
||||||
|
+ 'sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub '
|
||||||
|
+ 'subi swap tst wdr',
|
||||||
|
built_in:
|
||||||
|
/* general purpose registers */
|
||||||
|
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 '
|
||||||
|
+ 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl '
|
||||||
|
/* IO Registers (ATMega128) */
|
||||||
|
+ 'ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h '
|
||||||
|
+ 'tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c '
|
||||||
|
+ 'ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg '
|
||||||
|
+ 'ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk '
|
||||||
|
+ 'tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al '
|
||||||
|
+ 'ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr '
|
||||||
|
+ 'porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 '
|
||||||
|
+ 'ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf',
|
||||||
|
meta:
|
||||||
|
'.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list '
|
||||||
|
+ '.listmac .macro .nolist .org .set'
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.COMMENT(
|
||||||
|
';',
|
||||||
|
'$',
|
||||||
|
{ relevance: 0 }
|
||||||
|
),
|
||||||
|
hljs.C_NUMBER_MODE, // 0x..., decimal, float
|
||||||
|
hljs.BINARY_NUMBER_MODE, // 0b...
|
||||||
|
{
|
||||||
|
className: 'number',
|
||||||
|
begin: '\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)' // $..., 0o...
|
||||||
|
},
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: '\'',
|
||||||
|
end: '[^\\\\]\'',
|
||||||
|
illegal: '[^\\\\][^\']'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '^[A-Za-z0-9_.$]+:'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: '#',
|
||||||
|
end: '$'
|
||||||
|
},
|
||||||
|
{ // substitution within a macro
|
||||||
|
className: 'subst',
|
||||||
|
begin: '@[0-9]+'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return avrasm;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
12
static/highlight/es/languages/avrasm.min.js
vendored
Normal file
12
static/highlight/es/languages/avrasm.min.js
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
/*! `avrasm` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return r=>({name:"AVR Assembly",
|
||||||
|
case_insensitive:!0,keywords:{$pattern:"\\.?"+r.IDENT_RE,
|
||||||
|
keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",
|
||||||
|
built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",
|
||||||
|
meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"
|
||||||
|
},contains:[r.C_BLOCK_COMMENT_MODE,r.COMMENT(";","$",{relevance:0
|
||||||
|
}),r.C_NUMBER_MODE,r.BINARY_NUMBER_MODE,{className:"number",
|
||||||
|
begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},r.QUOTE_STRING_MODE,{className:"string",
|
||||||
|
begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",
|
||||||
|
begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{
|
||||||
|
className:"subst",begin:"@[0-9]+"}]})})();export default hljsGrammar;
|
||||||
76
static/highlight/es/languages/awk.js
Normal file
76
static/highlight/es/languages/awk.js
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
/*! `awk` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Awk
|
||||||
|
Author: Matthew Daly <matthewbdaly@gmail.com>
|
||||||
|
Website: https://www.gnu.org/software/gawk/manual/gawk.html
|
||||||
|
Description: language definition for Awk scripts
|
||||||
|
Category: scripting
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function awk(hljs) {
|
||||||
|
const VARIABLE = {
|
||||||
|
className: 'variable',
|
||||||
|
variants: [
|
||||||
|
{ begin: /\$[\w\d#@][\w\d_]*/ },
|
||||||
|
{ begin: /\$\{(.*?)\}/ }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const KEYWORDS = 'BEGIN END if else while do for in break continue delete next nextfile function func exit|10';
|
||||||
|
const STRING = {
|
||||||
|
className: 'string',
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ],
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: /(u|b)?r?'''/,
|
||||||
|
end: /'''/,
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /(u|b)?r?"""/,
|
||||||
|
end: /"""/,
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /(u|r|ur)'/,
|
||||||
|
end: /'/,
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /(u|r|ur)"/,
|
||||||
|
end: /"/,
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /(b|br)'/,
|
||||||
|
end: /'/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /(b|br)"/,
|
||||||
|
end: /"/
|
||||||
|
},
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
name: 'Awk',
|
||||||
|
keywords: { keyword: KEYWORDS },
|
||||||
|
contains: [
|
||||||
|
VARIABLE,
|
||||||
|
STRING,
|
||||||
|
hljs.REGEXP_MODE,
|
||||||
|
hljs.HASH_COMMENT_MODE,
|
||||||
|
hljs.NUMBER_MODE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return awk;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
11
static/highlight/es/languages/awk.min.js
vendored
Normal file
11
static/highlight/es/languages/awk.min.js
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*! `awk` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>({name:"Awk",keywords:{
|
||||||
|
keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"
|
||||||
|
},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{
|
||||||
|
begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],
|
||||||
|
variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,
|
||||||
|
end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{
|
||||||
|
begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{
|
||||||
|
begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
|
||||||
|
},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]})})()
|
||||||
|
;export default hljsGrammar;
|
||||||
196
static/highlight/es/languages/axapta.js
Normal file
196
static/highlight/es/languages/axapta.js
Normal file
|
|
@ -0,0 +1,196 @@
|
||||||
|
/*! `axapta` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Microsoft X++
|
||||||
|
Description: X++ is a language used in Microsoft Dynamics 365, Dynamics AX, and Axapta.
|
||||||
|
Author: Dmitri Roudakov <dmitri@roudakov.ru>
|
||||||
|
Website: https://dynamics.microsoft.com/en-us/ax-overview/
|
||||||
|
Category: enterprise
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function axapta(hljs) {
|
||||||
|
const IDENT_RE = hljs.UNDERSCORE_IDENT_RE;
|
||||||
|
const BUILT_IN_KEYWORDS = [
|
||||||
|
'anytype',
|
||||||
|
'boolean',
|
||||||
|
'byte',
|
||||||
|
'char',
|
||||||
|
'container',
|
||||||
|
'date',
|
||||||
|
'double',
|
||||||
|
'enum',
|
||||||
|
'guid',
|
||||||
|
'int',
|
||||||
|
'int64',
|
||||||
|
'long',
|
||||||
|
'real',
|
||||||
|
'short',
|
||||||
|
'str',
|
||||||
|
'utcdatetime',
|
||||||
|
'var'
|
||||||
|
];
|
||||||
|
|
||||||
|
const LITERAL_KEYWORDS = [
|
||||||
|
'default',
|
||||||
|
'false',
|
||||||
|
'null',
|
||||||
|
'true'
|
||||||
|
];
|
||||||
|
|
||||||
|
const NORMAL_KEYWORDS = [
|
||||||
|
'abstract',
|
||||||
|
'as',
|
||||||
|
'asc',
|
||||||
|
'avg',
|
||||||
|
'break',
|
||||||
|
'breakpoint',
|
||||||
|
'by',
|
||||||
|
'byref',
|
||||||
|
'case',
|
||||||
|
'catch',
|
||||||
|
'changecompany',
|
||||||
|
'class',
|
||||||
|
'client',
|
||||||
|
'client',
|
||||||
|
'common',
|
||||||
|
'const',
|
||||||
|
'continue',
|
||||||
|
'count',
|
||||||
|
'crosscompany',
|
||||||
|
'delegate',
|
||||||
|
'delete_from',
|
||||||
|
'desc',
|
||||||
|
'display',
|
||||||
|
'div',
|
||||||
|
'do',
|
||||||
|
'edit',
|
||||||
|
'else',
|
||||||
|
'eventhandler',
|
||||||
|
'exists',
|
||||||
|
'extends',
|
||||||
|
'final',
|
||||||
|
'finally',
|
||||||
|
'firstfast',
|
||||||
|
'firstonly',
|
||||||
|
'firstonly1',
|
||||||
|
'firstonly10',
|
||||||
|
'firstonly100',
|
||||||
|
'firstonly1000',
|
||||||
|
'flush',
|
||||||
|
'for',
|
||||||
|
'forceliterals',
|
||||||
|
'forcenestedloop',
|
||||||
|
'forceplaceholders',
|
||||||
|
'forceselectorder',
|
||||||
|
'forupdate',
|
||||||
|
'from',
|
||||||
|
'generateonly',
|
||||||
|
'group',
|
||||||
|
'hint',
|
||||||
|
'if',
|
||||||
|
'implements',
|
||||||
|
'in',
|
||||||
|
'index',
|
||||||
|
'insert_recordset',
|
||||||
|
'interface',
|
||||||
|
'internal',
|
||||||
|
'is',
|
||||||
|
'join',
|
||||||
|
'like',
|
||||||
|
'maxof',
|
||||||
|
'minof',
|
||||||
|
'mod',
|
||||||
|
'namespace',
|
||||||
|
'new',
|
||||||
|
'next',
|
||||||
|
'nofetch',
|
||||||
|
'notexists',
|
||||||
|
'optimisticlock',
|
||||||
|
'order',
|
||||||
|
'outer',
|
||||||
|
'pessimisticlock',
|
||||||
|
'print',
|
||||||
|
'private',
|
||||||
|
'protected',
|
||||||
|
'public',
|
||||||
|
'readonly',
|
||||||
|
'repeatableread',
|
||||||
|
'retry',
|
||||||
|
'return',
|
||||||
|
'reverse',
|
||||||
|
'select',
|
||||||
|
'server',
|
||||||
|
'setting',
|
||||||
|
'static',
|
||||||
|
'sum',
|
||||||
|
'super',
|
||||||
|
'switch',
|
||||||
|
'this',
|
||||||
|
'throw',
|
||||||
|
'try',
|
||||||
|
'ttsabort',
|
||||||
|
'ttsbegin',
|
||||||
|
'ttscommit',
|
||||||
|
'unchecked',
|
||||||
|
'update_recordset',
|
||||||
|
'using',
|
||||||
|
'validtimestate',
|
||||||
|
'void',
|
||||||
|
'where',
|
||||||
|
'while'
|
||||||
|
];
|
||||||
|
|
||||||
|
const KEYWORDS = {
|
||||||
|
keyword: NORMAL_KEYWORDS,
|
||||||
|
built_in: BUILT_IN_KEYWORDS,
|
||||||
|
literal: LITERAL_KEYWORDS
|
||||||
|
};
|
||||||
|
|
||||||
|
const CLASS_DEFINITION = {
|
||||||
|
variants: [
|
||||||
|
{ match: [
|
||||||
|
/(class|interface)\s+/,
|
||||||
|
IDENT_RE,
|
||||||
|
/\s+(extends|implements)\s+/,
|
||||||
|
IDENT_RE
|
||||||
|
] },
|
||||||
|
{ match: [
|
||||||
|
/class\s+/,
|
||||||
|
IDENT_RE
|
||||||
|
] }
|
||||||
|
],
|
||||||
|
scope: {
|
||||||
|
2: "title.class",
|
||||||
|
4: "title.class.inherited"
|
||||||
|
},
|
||||||
|
keywords: KEYWORDS
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'X++',
|
||||||
|
aliases: [ 'x++' ],
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: '#',
|
||||||
|
end: '$'
|
||||||
|
},
|
||||||
|
CLASS_DEFINITION
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return axapta;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
10
static/highlight/es/languages/axapta.min.js
vendored
Normal file
10
static/highlight/es/languages/axapta.min.js
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
/*! `axapta` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const t=e.UNDERSCORE_IDENT_RE,s={
|
||||||
|
keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],
|
||||||
|
built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],
|
||||||
|
literal:["default","false","null","true"]},r={variants:[{
|
||||||
|
match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{
|
||||||
|
match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},
|
||||||
|
keywords:s};return{name:"X++",aliases:["x++"],keywords:s,
|
||||||
|
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{
|
||||||
|
className:"meta",begin:"#",end:"$"},r]}}})();export default hljsGrammar;
|
||||||
417
static/highlight/es/languages/bash.js
Normal file
417
static/highlight/es/languages/bash.js
Normal file
|
|
@ -0,0 +1,417 @@
|
||||||
|
/*! `bash` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Bash
|
||||||
|
Author: vah <vahtenberg@gmail.com>
|
||||||
|
Contributrors: Benjamin Pannell <contact@sierrasoftworks.com>
|
||||||
|
Website: https://www.gnu.org/software/bash/
|
||||||
|
Category: common, scripting
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function bash(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const VAR = {};
|
||||||
|
const BRACED_VAR = {
|
||||||
|
begin: /\$\{/,
|
||||||
|
end: /\}/,
|
||||||
|
contains: [
|
||||||
|
"self",
|
||||||
|
{
|
||||||
|
begin: /:-/,
|
||||||
|
contains: [ VAR ]
|
||||||
|
} // default values
|
||||||
|
]
|
||||||
|
};
|
||||||
|
Object.assign(VAR, {
|
||||||
|
className: 'variable',
|
||||||
|
variants: [
|
||||||
|
{ begin: regex.concat(/\$[\w\d#@][\w\d_]*/,
|
||||||
|
// negative look-ahead tries to avoid matching patterns that are not
|
||||||
|
// Perl at all like $ident$, @ident@, etc.
|
||||||
|
`(?![\\w\\d])(?![$])`) },
|
||||||
|
BRACED_VAR
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
const SUBST = {
|
||||||
|
className: 'subst',
|
||||||
|
begin: /\$\(/,
|
||||||
|
end: /\)/,
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
};
|
||||||
|
const COMMENT = hljs.inherit(
|
||||||
|
hljs.COMMENT(),
|
||||||
|
{
|
||||||
|
match: [
|
||||||
|
/(^|\s)/,
|
||||||
|
/#.*$/
|
||||||
|
],
|
||||||
|
scope: {
|
||||||
|
2: 'comment'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
const HERE_DOC = {
|
||||||
|
begin: /<<-?\s*(?=\w+)/,
|
||||||
|
starts: { contains: [
|
||||||
|
hljs.END_SAME_AS_BEGIN({
|
||||||
|
begin: /(\w+)/,
|
||||||
|
end: /(\w+)/,
|
||||||
|
className: 'string'
|
||||||
|
})
|
||||||
|
] }
|
||||||
|
};
|
||||||
|
const QUOTE_STRING = {
|
||||||
|
className: 'string',
|
||||||
|
begin: /"/,
|
||||||
|
end: /"/,
|
||||||
|
contains: [
|
||||||
|
hljs.BACKSLASH_ESCAPE,
|
||||||
|
VAR,
|
||||||
|
SUBST
|
||||||
|
]
|
||||||
|
};
|
||||||
|
SUBST.contains.push(QUOTE_STRING);
|
||||||
|
const ESCAPED_QUOTE = {
|
||||||
|
match: /\\"/
|
||||||
|
};
|
||||||
|
const APOS_STRING = {
|
||||||
|
className: 'string',
|
||||||
|
begin: /'/,
|
||||||
|
end: /'/
|
||||||
|
};
|
||||||
|
const ESCAPED_APOS = {
|
||||||
|
match: /\\'/
|
||||||
|
};
|
||||||
|
const ARITHMETIC = {
|
||||||
|
begin: /\$?\(\(/,
|
||||||
|
end: /\)\)/,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /\d+#[0-9a-f]+/,
|
||||||
|
className: "number"
|
||||||
|
},
|
||||||
|
hljs.NUMBER_MODE,
|
||||||
|
VAR
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const SH_LIKE_SHELLS = [
|
||||||
|
"fish",
|
||||||
|
"bash",
|
||||||
|
"zsh",
|
||||||
|
"sh",
|
||||||
|
"csh",
|
||||||
|
"ksh",
|
||||||
|
"tcsh",
|
||||||
|
"dash",
|
||||||
|
"scsh",
|
||||||
|
];
|
||||||
|
const KNOWN_SHEBANG = hljs.SHEBANG({
|
||||||
|
binary: `(${SH_LIKE_SHELLS.join("|")})`,
|
||||||
|
relevance: 10
|
||||||
|
});
|
||||||
|
const FUNCTION = {
|
||||||
|
className: 'function',
|
||||||
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: /\w[\w\d_]*/ }) ],
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"if",
|
||||||
|
"then",
|
||||||
|
"else",
|
||||||
|
"elif",
|
||||||
|
"fi",
|
||||||
|
"time",
|
||||||
|
"for",
|
||||||
|
"while",
|
||||||
|
"until",
|
||||||
|
"in",
|
||||||
|
"do",
|
||||||
|
"done",
|
||||||
|
"case",
|
||||||
|
"esac",
|
||||||
|
"coproc",
|
||||||
|
"function",
|
||||||
|
"select"
|
||||||
|
];
|
||||||
|
|
||||||
|
const LITERALS = [
|
||||||
|
"true",
|
||||||
|
"false"
|
||||||
|
];
|
||||||
|
|
||||||
|
// to consume paths to prevent keyword matches inside them
|
||||||
|
const PATH_MODE = { match: /(\/[a-z._-]+)+/ };
|
||||||
|
|
||||||
|
// http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
||||||
|
const SHELL_BUILT_INS = [
|
||||||
|
"break",
|
||||||
|
"cd",
|
||||||
|
"continue",
|
||||||
|
"eval",
|
||||||
|
"exec",
|
||||||
|
"exit",
|
||||||
|
"export",
|
||||||
|
"getopts",
|
||||||
|
"hash",
|
||||||
|
"pwd",
|
||||||
|
"readonly",
|
||||||
|
"return",
|
||||||
|
"shift",
|
||||||
|
"test",
|
||||||
|
"times",
|
||||||
|
"trap",
|
||||||
|
"umask",
|
||||||
|
"unset"
|
||||||
|
];
|
||||||
|
|
||||||
|
const BASH_BUILT_INS = [
|
||||||
|
"alias",
|
||||||
|
"bind",
|
||||||
|
"builtin",
|
||||||
|
"caller",
|
||||||
|
"command",
|
||||||
|
"declare",
|
||||||
|
"echo",
|
||||||
|
"enable",
|
||||||
|
"help",
|
||||||
|
"let",
|
||||||
|
"local",
|
||||||
|
"logout",
|
||||||
|
"mapfile",
|
||||||
|
"printf",
|
||||||
|
"read",
|
||||||
|
"readarray",
|
||||||
|
"source",
|
||||||
|
"sudo",
|
||||||
|
"type",
|
||||||
|
"typeset",
|
||||||
|
"ulimit",
|
||||||
|
"unalias"
|
||||||
|
];
|
||||||
|
|
||||||
|
const ZSH_BUILT_INS = [
|
||||||
|
"autoload",
|
||||||
|
"bg",
|
||||||
|
"bindkey",
|
||||||
|
"bye",
|
||||||
|
"cap",
|
||||||
|
"chdir",
|
||||||
|
"clone",
|
||||||
|
"comparguments",
|
||||||
|
"compcall",
|
||||||
|
"compctl",
|
||||||
|
"compdescribe",
|
||||||
|
"compfiles",
|
||||||
|
"compgroups",
|
||||||
|
"compquote",
|
||||||
|
"comptags",
|
||||||
|
"comptry",
|
||||||
|
"compvalues",
|
||||||
|
"dirs",
|
||||||
|
"disable",
|
||||||
|
"disown",
|
||||||
|
"echotc",
|
||||||
|
"echoti",
|
||||||
|
"emulate",
|
||||||
|
"fc",
|
||||||
|
"fg",
|
||||||
|
"float",
|
||||||
|
"functions",
|
||||||
|
"getcap",
|
||||||
|
"getln",
|
||||||
|
"history",
|
||||||
|
"integer",
|
||||||
|
"jobs",
|
||||||
|
"kill",
|
||||||
|
"limit",
|
||||||
|
"log",
|
||||||
|
"noglob",
|
||||||
|
"popd",
|
||||||
|
"print",
|
||||||
|
"pushd",
|
||||||
|
"pushln",
|
||||||
|
"rehash",
|
||||||
|
"sched",
|
||||||
|
"setcap",
|
||||||
|
"setopt",
|
||||||
|
"stat",
|
||||||
|
"suspend",
|
||||||
|
"ttyctl",
|
||||||
|
"unfunction",
|
||||||
|
"unhash",
|
||||||
|
"unlimit",
|
||||||
|
"unsetopt",
|
||||||
|
"vared",
|
||||||
|
"wait",
|
||||||
|
"whence",
|
||||||
|
"where",
|
||||||
|
"which",
|
||||||
|
"zcompile",
|
||||||
|
"zformat",
|
||||||
|
"zftp",
|
||||||
|
"zle",
|
||||||
|
"zmodload",
|
||||||
|
"zparseopts",
|
||||||
|
"zprof",
|
||||||
|
"zpty",
|
||||||
|
"zregexparse",
|
||||||
|
"zsocket",
|
||||||
|
"zstyle",
|
||||||
|
"ztcp"
|
||||||
|
];
|
||||||
|
|
||||||
|
const GNU_CORE_UTILS = [
|
||||||
|
"chcon",
|
||||||
|
"chgrp",
|
||||||
|
"chown",
|
||||||
|
"chmod",
|
||||||
|
"cp",
|
||||||
|
"dd",
|
||||||
|
"df",
|
||||||
|
"dir",
|
||||||
|
"dircolors",
|
||||||
|
"ln",
|
||||||
|
"ls",
|
||||||
|
"mkdir",
|
||||||
|
"mkfifo",
|
||||||
|
"mknod",
|
||||||
|
"mktemp",
|
||||||
|
"mv",
|
||||||
|
"realpath",
|
||||||
|
"rm",
|
||||||
|
"rmdir",
|
||||||
|
"shred",
|
||||||
|
"sync",
|
||||||
|
"touch",
|
||||||
|
"truncate",
|
||||||
|
"vdir",
|
||||||
|
"b2sum",
|
||||||
|
"base32",
|
||||||
|
"base64",
|
||||||
|
"cat",
|
||||||
|
"cksum",
|
||||||
|
"comm",
|
||||||
|
"csplit",
|
||||||
|
"cut",
|
||||||
|
"expand",
|
||||||
|
"fmt",
|
||||||
|
"fold",
|
||||||
|
"head",
|
||||||
|
"join",
|
||||||
|
"md5sum",
|
||||||
|
"nl",
|
||||||
|
"numfmt",
|
||||||
|
"od",
|
||||||
|
"paste",
|
||||||
|
"ptx",
|
||||||
|
"pr",
|
||||||
|
"sha1sum",
|
||||||
|
"sha224sum",
|
||||||
|
"sha256sum",
|
||||||
|
"sha384sum",
|
||||||
|
"sha512sum",
|
||||||
|
"shuf",
|
||||||
|
"sort",
|
||||||
|
"split",
|
||||||
|
"sum",
|
||||||
|
"tac",
|
||||||
|
"tail",
|
||||||
|
"tr",
|
||||||
|
"tsort",
|
||||||
|
"unexpand",
|
||||||
|
"uniq",
|
||||||
|
"wc",
|
||||||
|
"arch",
|
||||||
|
"basename",
|
||||||
|
"chroot",
|
||||||
|
"date",
|
||||||
|
"dirname",
|
||||||
|
"du",
|
||||||
|
"echo",
|
||||||
|
"env",
|
||||||
|
"expr",
|
||||||
|
"factor",
|
||||||
|
// "false", // keyword literal already
|
||||||
|
"groups",
|
||||||
|
"hostid",
|
||||||
|
"id",
|
||||||
|
"link",
|
||||||
|
"logname",
|
||||||
|
"nice",
|
||||||
|
"nohup",
|
||||||
|
"nproc",
|
||||||
|
"pathchk",
|
||||||
|
"pinky",
|
||||||
|
"printenv",
|
||||||
|
"printf",
|
||||||
|
"pwd",
|
||||||
|
"readlink",
|
||||||
|
"runcon",
|
||||||
|
"seq",
|
||||||
|
"sleep",
|
||||||
|
"stat",
|
||||||
|
"stdbuf",
|
||||||
|
"stty",
|
||||||
|
"tee",
|
||||||
|
"test",
|
||||||
|
"timeout",
|
||||||
|
// "true", // keyword literal already
|
||||||
|
"tty",
|
||||||
|
"uname",
|
||||||
|
"unlink",
|
||||||
|
"uptime",
|
||||||
|
"users",
|
||||||
|
"who",
|
||||||
|
"whoami",
|
||||||
|
"yes"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'Bash',
|
||||||
|
aliases: [
|
||||||
|
'sh',
|
||||||
|
'zsh'
|
||||||
|
],
|
||||||
|
keywords: {
|
||||||
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
literal: LITERALS,
|
||||||
|
built_in: [
|
||||||
|
...SHELL_BUILT_INS,
|
||||||
|
...BASH_BUILT_INS,
|
||||||
|
// Shell modifiers
|
||||||
|
"set",
|
||||||
|
"shopt",
|
||||||
|
...ZSH_BUILT_INS,
|
||||||
|
...GNU_CORE_UTILS
|
||||||
|
]
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
KNOWN_SHEBANG, // to catch known shells and boost relevancy
|
||||||
|
hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang
|
||||||
|
FUNCTION,
|
||||||
|
ARITHMETIC,
|
||||||
|
COMMENT,
|
||||||
|
HERE_DOC,
|
||||||
|
PATH_MODE,
|
||||||
|
QUOTE_STRING,
|
||||||
|
ESCAPED_QUOTE,
|
||||||
|
APOS_STRING,
|
||||||
|
ESCAPED_APOS,
|
||||||
|
VAR
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return bash;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
21
static/highlight/es/languages/bash.min.js
vendored
Normal file
21
static/highlight/es/languages/bash.min.js
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
/*! `bash` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const s=e.regex,t={},a={
|
||||||
|
begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]}
|
||||||
|
;Object.assign(t,{className:"variable",variants:[{
|
||||||
|
begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const n={
|
||||||
|
className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]
|
||||||
|
},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),i={
|
||||||
|
begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,
|
||||||
|
end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,
|
||||||
|
contains:[e.BACKSLASH_ESCAPE,t,n]};n.contains.push(o);const r={begin:/\$?\(\(/,
|
||||||
|
end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]
|
||||||
|
},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10
|
||||||
|
}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,
|
||||||
|
contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{
|
||||||
|
name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,
|
||||||
|
keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],
|
||||||
|
literal:["true","false"],
|
||||||
|
built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]
|
||||||
|
},contains:[l,e.SHEBANG(),m,r,c,i,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{
|
||||||
|
className:"string",begin:/'/,end:/'/},{match:/\\'/},t]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
244
static/highlight/es/languages/basic.js
Normal file
244
static/highlight/es/languages/basic.js
Normal file
|
|
@ -0,0 +1,244 @@
|
||||||
|
/*! `basic` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: BASIC
|
||||||
|
Author: Raphaël Assénat <raph@raphnet.net>
|
||||||
|
Description: Based on the BASIC reference from the Tandy 1000 guide
|
||||||
|
Website: https://en.wikipedia.org/wiki/Tandy_1000
|
||||||
|
Category: system
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function basic(hljs) {
|
||||||
|
const KEYWORDS = [
|
||||||
|
"ABS",
|
||||||
|
"ASC",
|
||||||
|
"AND",
|
||||||
|
"ATN",
|
||||||
|
"AUTO|0",
|
||||||
|
"BEEP",
|
||||||
|
"BLOAD|10",
|
||||||
|
"BSAVE|10",
|
||||||
|
"CALL",
|
||||||
|
"CALLS",
|
||||||
|
"CDBL",
|
||||||
|
"CHAIN",
|
||||||
|
"CHDIR",
|
||||||
|
"CHR$|10",
|
||||||
|
"CINT",
|
||||||
|
"CIRCLE",
|
||||||
|
"CLEAR",
|
||||||
|
"CLOSE",
|
||||||
|
"CLS",
|
||||||
|
"COLOR",
|
||||||
|
"COM",
|
||||||
|
"COMMON",
|
||||||
|
"CONT",
|
||||||
|
"COS",
|
||||||
|
"CSNG",
|
||||||
|
"CSRLIN",
|
||||||
|
"CVD",
|
||||||
|
"CVI",
|
||||||
|
"CVS",
|
||||||
|
"DATA",
|
||||||
|
"DATE$",
|
||||||
|
"DEFDBL",
|
||||||
|
"DEFINT",
|
||||||
|
"DEFSNG",
|
||||||
|
"DEFSTR",
|
||||||
|
"DEF|0",
|
||||||
|
"SEG",
|
||||||
|
"USR",
|
||||||
|
"DELETE",
|
||||||
|
"DIM",
|
||||||
|
"DRAW",
|
||||||
|
"EDIT",
|
||||||
|
"END",
|
||||||
|
"ENVIRON",
|
||||||
|
"ENVIRON$",
|
||||||
|
"EOF",
|
||||||
|
"EQV",
|
||||||
|
"ERASE",
|
||||||
|
"ERDEV",
|
||||||
|
"ERDEV$",
|
||||||
|
"ERL",
|
||||||
|
"ERR",
|
||||||
|
"ERROR",
|
||||||
|
"EXP",
|
||||||
|
"FIELD",
|
||||||
|
"FILES",
|
||||||
|
"FIX",
|
||||||
|
"FOR|0",
|
||||||
|
"FRE",
|
||||||
|
"GET",
|
||||||
|
"GOSUB|10",
|
||||||
|
"GOTO",
|
||||||
|
"HEX$",
|
||||||
|
"IF",
|
||||||
|
"THEN",
|
||||||
|
"ELSE|0",
|
||||||
|
"INKEY$",
|
||||||
|
"INP",
|
||||||
|
"INPUT",
|
||||||
|
"INPUT#",
|
||||||
|
"INPUT$",
|
||||||
|
"INSTR",
|
||||||
|
"IMP",
|
||||||
|
"INT",
|
||||||
|
"IOCTL",
|
||||||
|
"IOCTL$",
|
||||||
|
"KEY",
|
||||||
|
"ON",
|
||||||
|
"OFF",
|
||||||
|
"LIST",
|
||||||
|
"KILL",
|
||||||
|
"LEFT$",
|
||||||
|
"LEN",
|
||||||
|
"LET",
|
||||||
|
"LINE",
|
||||||
|
"LLIST",
|
||||||
|
"LOAD",
|
||||||
|
"LOC",
|
||||||
|
"LOCATE",
|
||||||
|
"LOF",
|
||||||
|
"LOG",
|
||||||
|
"LPRINT",
|
||||||
|
"USING",
|
||||||
|
"LSET",
|
||||||
|
"MERGE",
|
||||||
|
"MID$",
|
||||||
|
"MKDIR",
|
||||||
|
"MKD$",
|
||||||
|
"MKI$",
|
||||||
|
"MKS$",
|
||||||
|
"MOD",
|
||||||
|
"NAME",
|
||||||
|
"NEW",
|
||||||
|
"NEXT",
|
||||||
|
"NOISE",
|
||||||
|
"NOT",
|
||||||
|
"OCT$",
|
||||||
|
"ON",
|
||||||
|
"OR",
|
||||||
|
"PEN",
|
||||||
|
"PLAY",
|
||||||
|
"STRIG",
|
||||||
|
"OPEN",
|
||||||
|
"OPTION",
|
||||||
|
"BASE",
|
||||||
|
"OUT",
|
||||||
|
"PAINT",
|
||||||
|
"PALETTE",
|
||||||
|
"PCOPY",
|
||||||
|
"PEEK",
|
||||||
|
"PMAP",
|
||||||
|
"POINT",
|
||||||
|
"POKE",
|
||||||
|
"POS",
|
||||||
|
"PRINT",
|
||||||
|
"PRINT]",
|
||||||
|
"PSET",
|
||||||
|
"PRESET",
|
||||||
|
"PUT",
|
||||||
|
"RANDOMIZE",
|
||||||
|
"READ",
|
||||||
|
"REM",
|
||||||
|
"RENUM",
|
||||||
|
"RESET|0",
|
||||||
|
"RESTORE",
|
||||||
|
"RESUME",
|
||||||
|
"RETURN|0",
|
||||||
|
"RIGHT$",
|
||||||
|
"RMDIR",
|
||||||
|
"RND",
|
||||||
|
"RSET",
|
||||||
|
"RUN",
|
||||||
|
"SAVE",
|
||||||
|
"SCREEN",
|
||||||
|
"SGN",
|
||||||
|
"SHELL",
|
||||||
|
"SIN",
|
||||||
|
"SOUND",
|
||||||
|
"SPACE$",
|
||||||
|
"SPC",
|
||||||
|
"SQR",
|
||||||
|
"STEP",
|
||||||
|
"STICK",
|
||||||
|
"STOP",
|
||||||
|
"STR$",
|
||||||
|
"STRING$",
|
||||||
|
"SWAP",
|
||||||
|
"SYSTEM",
|
||||||
|
"TAB",
|
||||||
|
"TAN",
|
||||||
|
"TIME$",
|
||||||
|
"TIMER",
|
||||||
|
"TROFF",
|
||||||
|
"TRON",
|
||||||
|
"TO",
|
||||||
|
"USR",
|
||||||
|
"VAL",
|
||||||
|
"VARPTR",
|
||||||
|
"VARPTR$",
|
||||||
|
"VIEW",
|
||||||
|
"WAIT",
|
||||||
|
"WHILE",
|
||||||
|
"WEND",
|
||||||
|
"WIDTH",
|
||||||
|
"WINDOW",
|
||||||
|
"WRITE",
|
||||||
|
"XOR"
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'BASIC',
|
||||||
|
case_insensitive: true,
|
||||||
|
illegal: '^\.',
|
||||||
|
// Support explicitly typed variables that end with $%! or #.
|
||||||
|
keywords: {
|
||||||
|
$pattern: '[a-zA-Z][a-zA-Z0-9_$%!#]*',
|
||||||
|
keyword: KEYWORDS
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
// Match strings that start with " and end with " or a line break
|
||||||
|
scope: 'string',
|
||||||
|
begin: /"/,
|
||||||
|
end: /"|$/,
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
},
|
||||||
|
hljs.COMMENT('REM', '$', { relevance: 10 }),
|
||||||
|
hljs.COMMENT('\'', '$', { relevance: 0 }),
|
||||||
|
{
|
||||||
|
// Match line numbers
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '^[0-9]+ ',
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Match typed numeric constants (1000, 12.34!, 1.2e5, 1.5#, 1.2D2)
|
||||||
|
className: 'number',
|
||||||
|
begin: '\\b\\d+(\\.\\d+)?([edED]\\d+)?[#\!]?',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Match hexadecimal numbers (&Hxxxx)
|
||||||
|
className: 'number',
|
||||||
|
begin: '(&[hH][0-9a-fA-F]{1,4})'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Match octal numbers (&Oxxxxxx)
|
||||||
|
className: 'number',
|
||||||
|
begin: '(&[oO][0-7]{1,6})'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return basic;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
10
static/highlight/es/languages/basic.min.js
vendored
Normal file
10
static/highlight/es/languages/basic.min.js
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
/*! `basic` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return E=>({name:"BASIC",case_insensitive:!0,
|
||||||
|
illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",
|
||||||
|
keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]
|
||||||
|
},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[E.BACKSLASH_ESCAPE]
|
||||||
|
},E.COMMENT("REM","$",{relevance:10}),E.COMMENT("'","$",{relevance:0}),{
|
||||||
|
className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",
|
||||||
|
begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",
|
||||||
|
begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]
|
||||||
|
})})();export default hljsGrammar;
|
||||||
47
static/highlight/es/languages/bnf.js
Normal file
47
static/highlight/es/languages/bnf.js
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
/*! `bnf` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Backus–Naur Form
|
||||||
|
Website: https://en.wikipedia.org/wiki/Backus–Naur_form
|
||||||
|
Category: syntax
|
||||||
|
Author: Oleg Efimov <efimovov@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function bnf(hljs) {
|
||||||
|
return {
|
||||||
|
name: 'Backus–Naur Form',
|
||||||
|
contains: [
|
||||||
|
// Attribute
|
||||||
|
{
|
||||||
|
className: 'attribute',
|
||||||
|
begin: /</,
|
||||||
|
end: />/
|
||||||
|
},
|
||||||
|
// Specific
|
||||||
|
{
|
||||||
|
begin: /::=/,
|
||||||
|
end: /$/,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /</,
|
||||||
|
end: />/
|
||||||
|
},
|
||||||
|
// Common
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return bnf;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
6
static/highlight/es/languages/bnf.min.js
vendored
Normal file
6
static/highlight/es/languages/bnf.min.js
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
/*! `bnf` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return a=>({name:"Backus\u2013Naur Form",
|
||||||
|
contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,
|
||||||
|
contains:[{begin:/</,end:/>/
|
||||||
|
},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]
|
||||||
|
}]})})();export default hljsGrammar;
|
||||||
62
static/highlight/es/languages/brainfuck.js
Normal file
62
static/highlight/es/languages/brainfuck.js
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
/*! `brainfuck` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Brainfuck
|
||||||
|
Author: Evgeny Stepanischev <imbolk@gmail.com>
|
||||||
|
Website: https://esolangs.org/wiki/Brainfuck
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function brainfuck(hljs) {
|
||||||
|
const LITERAL = {
|
||||||
|
className: 'literal',
|
||||||
|
begin: /[+-]+/,
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
name: 'Brainfuck',
|
||||||
|
aliases: [ 'bf' ],
|
||||||
|
contains: [
|
||||||
|
hljs.COMMENT(
|
||||||
|
/[^\[\]\.,\+\-<> \r\n]/,
|
||||||
|
/[\[\]\.,\+\-<> \r\n]/,
|
||||||
|
{
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
match: /[ ]+[^\[\]\.,\+\-<> \r\n]/,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
returnEnd: true,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{
|
||||||
|
className: 'title',
|
||||||
|
begin: '[\\[\\]]',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: '[\\.,]',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// this mode works as the only relevance counter
|
||||||
|
// it looks ahead to find the start of a run of literals
|
||||||
|
// so only the runs are counted as relevant
|
||||||
|
begin: /(?=\+\+|--)/,
|
||||||
|
contains: [ LITERAL ]
|
||||||
|
},
|
||||||
|
LITERAL
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return brainfuck;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
8
static/highlight/es/languages/brainfuck.min.js
vendored
Normal file
8
static/highlight/es/languages/brainfuck.min.js
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*! `brainfuck` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"literal",
|
||||||
|
begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],
|
||||||
|
contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{
|
||||||
|
match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{
|
||||||
|
className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",
|
||||||
|
begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[a]},a]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
341
static/highlight/es/languages/c.js
Normal file
341
static/highlight/es/languages/c.js
Normal file
|
|
@ -0,0 +1,341 @@
|
||||||
|
/*! `c` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: C
|
||||||
|
Category: common, system
|
||||||
|
Website: https://en.wikipedia.org/wiki/C_(programming_language)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function c(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
// added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does
|
||||||
|
// not include such support nor can we be sure all the grammars depending
|
||||||
|
// on it would desire this behavior
|
||||||
|
const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', { contains: [ { begin: /\\\n/ } ] });
|
||||||
|
const DECLTYPE_AUTO_RE = 'decltype\\(auto\\)';
|
||||||
|
const NAMESPACE_RE = '[a-zA-Z_]\\w*::';
|
||||||
|
const TEMPLATE_ARGUMENT_RE = '<[^<>]+>';
|
||||||
|
const FUNCTION_TYPE_RE = '('
|
||||||
|
+ DECLTYPE_AUTO_RE + '|'
|
||||||
|
+ regex.optional(NAMESPACE_RE)
|
||||||
|
+ '[a-zA-Z_]\\w*' + regex.optional(TEMPLATE_ARGUMENT_RE)
|
||||||
|
+ ')';
|
||||||
|
|
||||||
|
|
||||||
|
const TYPES = {
|
||||||
|
className: 'type',
|
||||||
|
variants: [
|
||||||
|
{ begin: '\\b[a-z\\d_]*_t\\b' },
|
||||||
|
{ match: /\batomic_[a-z]{3,6}\b/ }
|
||||||
|
]
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// https://en.cppreference.com/w/cpp/language/escape
|
||||||
|
// \\ \x \xFF \u2837 \u00323747 \374
|
||||||
|
const CHARACTER_ESCAPES = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)';
|
||||||
|
const STRINGS = {
|
||||||
|
className: 'string',
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: '(u8?|U|L)?"',
|
||||||
|
end: '"',
|
||||||
|
illegal: '\\n',
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: '(u8?|U|L)?\'(' + CHARACTER_ESCAPES + "|.)",
|
||||||
|
end: '\'',
|
||||||
|
illegal: '.'
|
||||||
|
},
|
||||||
|
hljs.END_SAME_AS_BEGIN({
|
||||||
|
begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
|
||||||
|
end: /\)([^()\\ ]{0,16})"/
|
||||||
|
})
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const NUMBERS = {
|
||||||
|
className: 'number',
|
||||||
|
variants: [
|
||||||
|
{ match: /\b(0b[01']+)/ },
|
||||||
|
{ match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
|
||||||
|
{ match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
|
||||||
|
{ match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
|
||||||
|
],
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
const PREPROCESSOR = {
|
||||||
|
className: 'meta',
|
||||||
|
begin: /#\s*[a-z]+\b/,
|
||||||
|
end: /$/,
|
||||||
|
keywords: { keyword:
|
||||||
|
'if else elif endif define undef warning error line '
|
||||||
|
+ 'pragma _Pragma ifdef ifndef elifdef elifndef include' },
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /\\\n/,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
hljs.inherit(STRINGS, { className: 'string' }),
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
begin: /<.*?>/
|
||||||
|
},
|
||||||
|
C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const TITLE_MODE = {
|
||||||
|
className: 'title',
|
||||||
|
begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\(';
|
||||||
|
|
||||||
|
const C_KEYWORDS = [
|
||||||
|
"asm",
|
||||||
|
"auto",
|
||||||
|
"break",
|
||||||
|
"case",
|
||||||
|
"continue",
|
||||||
|
"default",
|
||||||
|
"do",
|
||||||
|
"else",
|
||||||
|
"enum",
|
||||||
|
"extern",
|
||||||
|
"for",
|
||||||
|
"fortran",
|
||||||
|
"goto",
|
||||||
|
"if",
|
||||||
|
"inline",
|
||||||
|
"register",
|
||||||
|
"restrict",
|
||||||
|
"return",
|
||||||
|
"sizeof",
|
||||||
|
"typeof",
|
||||||
|
"typeof_unqual",
|
||||||
|
"struct",
|
||||||
|
"switch",
|
||||||
|
"typedef",
|
||||||
|
"union",
|
||||||
|
"volatile",
|
||||||
|
"while",
|
||||||
|
"_Alignas",
|
||||||
|
"_Alignof",
|
||||||
|
"_Atomic",
|
||||||
|
"_Generic",
|
||||||
|
"_Noreturn",
|
||||||
|
"_Static_assert",
|
||||||
|
"_Thread_local",
|
||||||
|
// aliases
|
||||||
|
"alignas",
|
||||||
|
"alignof",
|
||||||
|
"noreturn",
|
||||||
|
"static_assert",
|
||||||
|
"thread_local",
|
||||||
|
// not a C keyword but is, for all intents and purposes, treated exactly like one.
|
||||||
|
"_Pragma"
|
||||||
|
];
|
||||||
|
|
||||||
|
const C_TYPES = [
|
||||||
|
"float",
|
||||||
|
"double",
|
||||||
|
"signed",
|
||||||
|
"unsigned",
|
||||||
|
"int",
|
||||||
|
"short",
|
||||||
|
"long",
|
||||||
|
"char",
|
||||||
|
"void",
|
||||||
|
"_Bool",
|
||||||
|
"_BitInt",
|
||||||
|
"_Complex",
|
||||||
|
"_Imaginary",
|
||||||
|
"_Decimal32",
|
||||||
|
"_Decimal64",
|
||||||
|
"_Decimal96",
|
||||||
|
"_Decimal128",
|
||||||
|
"_Decimal64x",
|
||||||
|
"_Decimal128x",
|
||||||
|
"_Float16",
|
||||||
|
"_Float32",
|
||||||
|
"_Float64",
|
||||||
|
"_Float128",
|
||||||
|
"_Float32x",
|
||||||
|
"_Float64x",
|
||||||
|
"_Float128x",
|
||||||
|
// modifiers
|
||||||
|
"const",
|
||||||
|
"static",
|
||||||
|
"constexpr",
|
||||||
|
// aliases
|
||||||
|
"complex",
|
||||||
|
"bool",
|
||||||
|
"imaginary"
|
||||||
|
];
|
||||||
|
|
||||||
|
const KEYWORDS = {
|
||||||
|
keyword: C_KEYWORDS,
|
||||||
|
type: C_TYPES,
|
||||||
|
literal: 'true false NULL',
|
||||||
|
// TODO: apply hinting work similar to what was done in cpp.js
|
||||||
|
built_in: 'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream '
|
||||||
|
+ 'auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set '
|
||||||
|
+ 'unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos '
|
||||||
|
+ 'asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp '
|
||||||
|
+ 'fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper '
|
||||||
|
+ 'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow '
|
||||||
|
+ 'printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp '
|
||||||
|
+ 'strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan '
|
||||||
|
+ 'vfprintf vprintf vsprintf endl initializer_list unique_ptr',
|
||||||
|
};
|
||||||
|
|
||||||
|
const EXPRESSION_CONTAINS = [
|
||||||
|
PREPROCESSOR,
|
||||||
|
TYPES,
|
||||||
|
C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
NUMBERS,
|
||||||
|
STRINGS
|
||||||
|
];
|
||||||
|
|
||||||
|
const EXPRESSION_CONTEXT = {
|
||||||
|
// This mode covers expression context where we can't expect a function
|
||||||
|
// definition and shouldn't highlight anything that looks like one:
|
||||||
|
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: /=/,
|
||||||
|
end: /;/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
beginKeywords: 'new throw return else',
|
||||||
|
end: /;/
|
||||||
|
}
|
||||||
|
],
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: EXPRESSION_CONTAINS.concat([
|
||||||
|
{
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: EXPRESSION_CONTAINS.concat([ 'self' ]),
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]),
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
const FUNCTION_DECLARATION = {
|
||||||
|
begin: '(' + FUNCTION_TYPE_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE,
|
||||||
|
returnBegin: true,
|
||||||
|
end: /[{;=]/,
|
||||||
|
excludeEnd: true,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
illegal: /[^\w\s\*&:<>.]/,
|
||||||
|
contains: [
|
||||||
|
{ // to prevent it from being confused as the function title
|
||||||
|
begin: DECLTYPE_AUTO_RE,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: FUNCTION_TITLE,
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [ hljs.inherit(TITLE_MODE, { className: "title.function" }) ],
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
// allow for multiple declarations, e.g.:
|
||||||
|
// extern void f(int), g(char);
|
||||||
|
{
|
||||||
|
relevance: 0,
|
||||||
|
match: /,/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
STRINGS,
|
||||||
|
NUMBERS,
|
||||||
|
TYPES,
|
||||||
|
// Count matching parentheses.
|
||||||
|
{
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
'self',
|
||||||
|
C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
STRINGS,
|
||||||
|
NUMBERS,
|
||||||
|
TYPES
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
TYPES,
|
||||||
|
C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
PREPROCESSOR
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: "C",
|
||||||
|
aliases: [ 'h' ],
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
// Until differentiations are added between `c` and `cpp`, `c` will
|
||||||
|
// not be auto-detected to avoid auto-detect conflicts between C and C++
|
||||||
|
disableAutodetect: true,
|
||||||
|
illegal: '</',
|
||||||
|
contains: [].concat(
|
||||||
|
EXPRESSION_CONTEXT,
|
||||||
|
FUNCTION_DECLARATION,
|
||||||
|
EXPRESSION_CONTAINS,
|
||||||
|
[
|
||||||
|
PREPROCESSOR,
|
||||||
|
{
|
||||||
|
begin: hljs.IDENT_RE + '::',
|
||||||
|
keywords: KEYWORDS
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'class',
|
||||||
|
beginKeywords: 'enum class struct union',
|
||||||
|
end: /[{;:<>=]/,
|
||||||
|
contains: [
|
||||||
|
{ beginKeywords: "final class struct" },
|
||||||
|
hljs.TITLE_MODE
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]),
|
||||||
|
exports: {
|
||||||
|
preprocessor: PREPROCESSOR,
|
||||||
|
strings: STRINGS,
|
||||||
|
keywords: KEYWORDS
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return c;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
41
static/highlight/es/languages/c.min.js
vendored
Normal file
41
static/highlight/es/languages/c.min.js
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
/*! `c` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
|
||||||
|
}),n="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",r="("+n+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={
|
||||||
|
className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{
|
||||||
|
match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{
|
||||||
|
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||||
|
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||||
|
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||||
|
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||||
|
className:"number",variants:[{match:/\b(0b[01']+)/},{
|
||||||
|
match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/
|
||||||
|
},{
|
||||||
|
match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/
|
||||||
|
},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0
|
||||||
|
},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||||
|
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"
|
||||||
|
},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{
|
||||||
|
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},d={
|
||||||
|
className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0
|
||||||
|
},m=t.optional(s)+e.IDENT_RE+"\\s*\\(",_={
|
||||||
|
keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],
|
||||||
|
type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],
|
||||||
|
literal:"true false NULL",
|
||||||
|
built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
||||||
|
},u=[c,i,a,e.C_BLOCK_COMMENT_MODE,o,l],p={variants:[{begin:/=/,end:/;/},{
|
||||||
|
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||||
|
keywords:_,contains:u.concat([{begin:/\(/,end:/\)/,keywords:_,
|
||||||
|
contains:u.concat(["self"]),relevance:0}]),relevance:0},f={
|
||||||
|
begin:"("+r+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||||
|
keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:_,relevance:0},{
|
||||||
|
begin:m,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})],
|
||||||
|
relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,
|
||||||
|
keywords:_,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,l,o,i,{begin:/\(/,
|
||||||
|
end:/\)/,keywords:_,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,l,o,i]
|
||||||
|
}]},i,a,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:_,
|
||||||
|
disableAutodetect:!0,illegal:"</",contains:[].concat(p,f,u,[c,{
|
||||||
|
begin:e.IDENT_RE+"::",keywords:_},{className:"class",
|
||||||
|
beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{
|
||||||
|
beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,
|
||||||
|
strings:l,keywords:_}}}})();export default hljsGrammar;
|
||||||
168
static/highlight/es/languages/cal.js
Normal file
168
static/highlight/es/languages/cal.js
Normal file
|
|
@ -0,0 +1,168 @@
|
||||||
|
/*! `cal` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: C/AL
|
||||||
|
Author: Kenneth Fuglsang Christensen <kfuglsang@gmail.com>
|
||||||
|
Description: Provides highlighting of Microsoft Dynamics NAV C/AL code files
|
||||||
|
Website: https://docs.microsoft.com/en-us/dynamics-nav/programming-in-c-al
|
||||||
|
Category: enterprise
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function cal(hljs) {
|
||||||
|
const regex = hljs.regex;
|
||||||
|
const KEYWORDS = [
|
||||||
|
"div",
|
||||||
|
"mod",
|
||||||
|
"in",
|
||||||
|
"and",
|
||||||
|
"or",
|
||||||
|
"not",
|
||||||
|
"xor",
|
||||||
|
"asserterror",
|
||||||
|
"begin",
|
||||||
|
"case",
|
||||||
|
"do",
|
||||||
|
"downto",
|
||||||
|
"else",
|
||||||
|
"end",
|
||||||
|
"exit",
|
||||||
|
"for",
|
||||||
|
"local",
|
||||||
|
"if",
|
||||||
|
"of",
|
||||||
|
"repeat",
|
||||||
|
"then",
|
||||||
|
"to",
|
||||||
|
"until",
|
||||||
|
"while",
|
||||||
|
"with",
|
||||||
|
"var"
|
||||||
|
];
|
||||||
|
const LITERALS = 'false true';
|
||||||
|
const COMMENT_MODES = [
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.COMMENT(
|
||||||
|
/\{/,
|
||||||
|
/\}/,
|
||||||
|
{ relevance: 0 }
|
||||||
|
),
|
||||||
|
hljs.COMMENT(
|
||||||
|
/\(\*/,
|
||||||
|
/\*\)/,
|
||||||
|
{ relevance: 10 }
|
||||||
|
)
|
||||||
|
];
|
||||||
|
const STRING = {
|
||||||
|
className: 'string',
|
||||||
|
begin: /'/,
|
||||||
|
end: /'/,
|
||||||
|
contains: [ { begin: /''/ } ]
|
||||||
|
};
|
||||||
|
const CHAR_STRING = {
|
||||||
|
className: 'string',
|
||||||
|
begin: /(#\d+)+/
|
||||||
|
};
|
||||||
|
const DATE = {
|
||||||
|
className: 'number',
|
||||||
|
begin: '\\b\\d+(\\.\\d+)?(DT|D|T)',
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const DBL_QUOTED_VARIABLE = {
|
||||||
|
className: 'string', // not a string technically but makes sense to be highlighted in the same style
|
||||||
|
begin: '"',
|
||||||
|
end: '"'
|
||||||
|
};
|
||||||
|
|
||||||
|
const PROCEDURE = {
|
||||||
|
match: [
|
||||||
|
/procedure/,
|
||||||
|
/\s+/,
|
||||||
|
/[a-zA-Z_][\w@]*/,
|
||||||
|
/\s*/
|
||||||
|
],
|
||||||
|
scope: {
|
||||||
|
1: "keyword",
|
||||||
|
3: "title.function"
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'params',
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
contains: [
|
||||||
|
STRING,
|
||||||
|
CHAR_STRING,
|
||||||
|
hljs.NUMBER_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
...COMMENT_MODES
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const OBJECT_TYPES = [
|
||||||
|
"Table",
|
||||||
|
"Form",
|
||||||
|
"Report",
|
||||||
|
"Dataport",
|
||||||
|
"Codeunit",
|
||||||
|
"XMLport",
|
||||||
|
"MenuSuite",
|
||||||
|
"Page",
|
||||||
|
"Query"
|
||||||
|
];
|
||||||
|
const OBJECT = {
|
||||||
|
match: [
|
||||||
|
/OBJECT/,
|
||||||
|
/\s+/,
|
||||||
|
regex.either(...OBJECT_TYPES),
|
||||||
|
/\s+/,
|
||||||
|
/\d+/,
|
||||||
|
/\s+(?=[^\s])/,
|
||||||
|
/.*/,
|
||||||
|
/$/
|
||||||
|
],
|
||||||
|
relevance: 3,
|
||||||
|
scope: {
|
||||||
|
1: "keyword",
|
||||||
|
3: "type",
|
||||||
|
5: "number",
|
||||||
|
7: "title"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const PROPERTY = {
|
||||||
|
match: /[\w]+(?=\=)/,
|
||||||
|
scope: "attribute",
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'C/AL',
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
literal: LITERALS
|
||||||
|
},
|
||||||
|
illegal: /\/\*/,
|
||||||
|
contains: [
|
||||||
|
PROPERTY,
|
||||||
|
STRING,
|
||||||
|
CHAR_STRING,
|
||||||
|
DATE,
|
||||||
|
DBL_QUOTED_VARIABLE,
|
||||||
|
hljs.NUMBER_MODE,
|
||||||
|
OBJECT,
|
||||||
|
PROCEDURE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return cal;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
15
static/highlight/es/languages/cal.min.js
vendored
Normal file
15
static/highlight/es/languages/cal.min.js
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*! `cal` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const r=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{
|
||||||
|
relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],t={className:"string",
|
||||||
|
begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/
|
||||||
|
},i={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",
|
||||||
|
3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,
|
||||||
|
keywords:a,contains:[t,s,e.NUMBER_MODE]},...n]},o={
|
||||||
|
match:[/OBJECT/,/\s+/,r.either("Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],
|
||||||
|
relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{
|
||||||
|
name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:"false true"},
|
||||||
|
illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0
|
||||||
|
},t,s,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{
|
||||||
|
className:"string",begin:'"',end:'"'},e.NUMBER_MODE,o,i]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
107
static/highlight/es/languages/capnproto.js
Normal file
107
static/highlight/es/languages/capnproto.js
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
/*! `capnproto` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Cap’n Proto
|
||||||
|
Author: Oleg Efimov <efimovov@gmail.com>
|
||||||
|
Description: Cap’n Proto message definition format
|
||||||
|
Website: https://capnproto.org/capnp-tool.html
|
||||||
|
Category: protocols
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function capnproto(hljs) {
|
||||||
|
const KEYWORDS = [
|
||||||
|
"struct",
|
||||||
|
"enum",
|
||||||
|
"interface",
|
||||||
|
"union",
|
||||||
|
"group",
|
||||||
|
"import",
|
||||||
|
"using",
|
||||||
|
"const",
|
||||||
|
"annotation",
|
||||||
|
"extends",
|
||||||
|
"in",
|
||||||
|
"of",
|
||||||
|
"on",
|
||||||
|
"as",
|
||||||
|
"with",
|
||||||
|
"from",
|
||||||
|
"fixed"
|
||||||
|
];
|
||||||
|
const TYPES = [
|
||||||
|
"Void",
|
||||||
|
"Bool",
|
||||||
|
"Int8",
|
||||||
|
"Int16",
|
||||||
|
"Int32",
|
||||||
|
"Int64",
|
||||||
|
"UInt8",
|
||||||
|
"UInt16",
|
||||||
|
"UInt32",
|
||||||
|
"UInt64",
|
||||||
|
"Float32",
|
||||||
|
"Float64",
|
||||||
|
"Text",
|
||||||
|
"Data",
|
||||||
|
"AnyPointer",
|
||||||
|
"AnyStruct",
|
||||||
|
"Capability",
|
||||||
|
"List"
|
||||||
|
];
|
||||||
|
const LITERALS = [
|
||||||
|
"true",
|
||||||
|
"false"
|
||||||
|
];
|
||||||
|
const CLASS_DEFINITION = {
|
||||||
|
variants: [
|
||||||
|
{ match: [
|
||||||
|
/(struct|enum|interface)/,
|
||||||
|
/\s+/,
|
||||||
|
hljs.IDENT_RE
|
||||||
|
] },
|
||||||
|
{ match: [
|
||||||
|
/extends/,
|
||||||
|
/\s*\(/,
|
||||||
|
hljs.IDENT_RE,
|
||||||
|
/\s*\)/
|
||||||
|
] }
|
||||||
|
],
|
||||||
|
scope: {
|
||||||
|
1: "keyword",
|
||||||
|
3: "title.class"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
name: 'Cap’n Proto',
|
||||||
|
aliases: [ 'capnp' ],
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
type: TYPES,
|
||||||
|
literal: LITERALS
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.NUMBER_MODE,
|
||||||
|
hljs.HASH_COMMENT_MODE,
|
||||||
|
{
|
||||||
|
className: 'meta',
|
||||||
|
begin: /@0x[\w\d]{16};/,
|
||||||
|
illegal: /\n/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'symbol',
|
||||||
|
begin: /@\d+\b/
|
||||||
|
},
|
||||||
|
CLASS_DEFINITION
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return capnproto;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
11
static/highlight/es/languages/capnproto.min.js
vendored
Normal file
11
static/highlight/es/languages/capnproto.min.js
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*! `capnproto` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return t=>{const n={variants:[{
|
||||||
|
match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{
|
||||||
|
match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",
|
||||||
|
3:"title.class"}};return{name:"Cap\u2019n Proto",aliases:["capnp"],keywords:{
|
||||||
|
keyword:["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],
|
||||||
|
type:["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],
|
||||||
|
literal:["true","false"]},
|
||||||
|
contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{
|
||||||
|
className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",
|
||||||
|
begin:/@\d+\b/},n]}}})();export default hljsGrammar;
|
||||||
148
static/highlight/es/languages/ceylon.js
Normal file
148
static/highlight/es/languages/ceylon.js
Normal file
|
|
@ -0,0 +1,148 @@
|
||||||
|
/*! `ceylon` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Ceylon
|
||||||
|
Author: Lucas Werkmeister <mail@lucaswerkmeister.de>
|
||||||
|
Website: https://ceylon-lang.org
|
||||||
|
Category: system
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function ceylon(hljs) {
|
||||||
|
// 2.3. Identifiers and keywords
|
||||||
|
const KEYWORDS = [
|
||||||
|
"assembly",
|
||||||
|
"module",
|
||||||
|
"package",
|
||||||
|
"import",
|
||||||
|
"alias",
|
||||||
|
"class",
|
||||||
|
"interface",
|
||||||
|
"object",
|
||||||
|
"given",
|
||||||
|
"value",
|
||||||
|
"assign",
|
||||||
|
"void",
|
||||||
|
"function",
|
||||||
|
"new",
|
||||||
|
"of",
|
||||||
|
"extends",
|
||||||
|
"satisfies",
|
||||||
|
"abstracts",
|
||||||
|
"in",
|
||||||
|
"out",
|
||||||
|
"return",
|
||||||
|
"break",
|
||||||
|
"continue",
|
||||||
|
"throw",
|
||||||
|
"assert",
|
||||||
|
"dynamic",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"switch",
|
||||||
|
"case",
|
||||||
|
"for",
|
||||||
|
"while",
|
||||||
|
"try",
|
||||||
|
"catch",
|
||||||
|
"finally",
|
||||||
|
"then",
|
||||||
|
"let",
|
||||||
|
"this",
|
||||||
|
"outer",
|
||||||
|
"super",
|
||||||
|
"is",
|
||||||
|
"exists",
|
||||||
|
"nonempty"
|
||||||
|
];
|
||||||
|
// 7.4.1 Declaration Modifiers
|
||||||
|
const DECLARATION_MODIFIERS = [
|
||||||
|
"shared",
|
||||||
|
"abstract",
|
||||||
|
"formal",
|
||||||
|
"default",
|
||||||
|
"actual",
|
||||||
|
"variable",
|
||||||
|
"late",
|
||||||
|
"native",
|
||||||
|
"deprecated",
|
||||||
|
"final",
|
||||||
|
"sealed",
|
||||||
|
"annotation",
|
||||||
|
"suppressWarnings",
|
||||||
|
"small"
|
||||||
|
];
|
||||||
|
// 7.4.2 Documentation
|
||||||
|
const DOCUMENTATION = [
|
||||||
|
"doc",
|
||||||
|
"by",
|
||||||
|
"license",
|
||||||
|
"see",
|
||||||
|
"throws",
|
||||||
|
"tagged"
|
||||||
|
];
|
||||||
|
const SUBST = {
|
||||||
|
className: 'subst',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
begin: /``/,
|
||||||
|
end: /``/,
|
||||||
|
keywords: KEYWORDS,
|
||||||
|
relevance: 10
|
||||||
|
};
|
||||||
|
const EXPRESSIONS = [
|
||||||
|
{
|
||||||
|
// verbatim string
|
||||||
|
className: 'string',
|
||||||
|
begin: '"""',
|
||||||
|
end: '"""',
|
||||||
|
relevance: 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// string literal or template
|
||||||
|
className: 'string',
|
||||||
|
begin: '"',
|
||||||
|
end: '"',
|
||||||
|
contains: [ SUBST ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// character literal
|
||||||
|
className: 'string',
|
||||||
|
begin: "'",
|
||||||
|
end: "'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// numeric literal
|
||||||
|
className: 'number',
|
||||||
|
begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
];
|
||||||
|
SUBST.contains = EXPRESSIONS;
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'Ceylon',
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS.concat(DECLARATION_MODIFIERS),
|
||||||
|
meta: DOCUMENTATION
|
||||||
|
},
|
||||||
|
illegal: '\\$[^01]|#[^0-9a-fA-F]',
|
||||||
|
contains: [
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.COMMENT('/\\*', '\\*/', { contains: [ 'self' ] }),
|
||||||
|
{
|
||||||
|
// compiler annotation
|
||||||
|
className: 'meta',
|
||||||
|
begin: '@[a-z]\\w*(?::"[^"]*")?'
|
||||||
|
}
|
||||||
|
].concat(EXPRESSIONS)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return ceylon;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
15
static/highlight/es/languages/ceylon.min.js
vendored
Normal file
15
static/highlight/es/languages/ceylon.min.js
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/*! `ceylon` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const a=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],s={
|
||||||
|
className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:a,
|
||||||
|
relevance:10},n=[{className:"string",begin:'"""',end:'"""',relevance:10},{
|
||||||
|
className:"string",begin:'"',end:'"',contains:[s]},{className:"string",
|
||||||
|
begin:"'",end:"'"},{className:"number",
|
||||||
|
begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",
|
||||||
|
relevance:0}];return s.contains=n,{name:"Ceylon",keywords:{
|
||||||
|
keyword:a.concat(["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"]),
|
||||||
|
meta:["doc","by","license","see","throws","tagged"]},
|
||||||
|
illegal:"\\$[^01]|#[^0-9a-fA-F]",
|
||||||
|
contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{
|
||||||
|
className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(n)}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
75
static/highlight/es/languages/clean.js
Normal file
75
static/highlight/es/languages/clean.js
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
/*! `clean` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Clean
|
||||||
|
Author: Camil Staps <info@camilstaps.nl>
|
||||||
|
Category: functional
|
||||||
|
Website: http://clean.cs.ru.nl
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function clean(hljs) {
|
||||||
|
const KEYWORDS = [
|
||||||
|
"if",
|
||||||
|
"let",
|
||||||
|
"in",
|
||||||
|
"with",
|
||||||
|
"where",
|
||||||
|
"case",
|
||||||
|
"of",
|
||||||
|
"class",
|
||||||
|
"instance",
|
||||||
|
"otherwise",
|
||||||
|
"implementation",
|
||||||
|
"definition",
|
||||||
|
"system",
|
||||||
|
"module",
|
||||||
|
"from",
|
||||||
|
"import",
|
||||||
|
"qualified",
|
||||||
|
"as",
|
||||||
|
"special",
|
||||||
|
"code",
|
||||||
|
"inline",
|
||||||
|
"foreign",
|
||||||
|
"export",
|
||||||
|
"ccall",
|
||||||
|
"stdcall",
|
||||||
|
"generic",
|
||||||
|
"derive",
|
||||||
|
"infix",
|
||||||
|
"infixl",
|
||||||
|
"infixr"
|
||||||
|
];
|
||||||
|
return {
|
||||||
|
name: 'Clean',
|
||||||
|
aliases: [
|
||||||
|
'icl',
|
||||||
|
'dcl'
|
||||||
|
],
|
||||||
|
keywords: {
|
||||||
|
keyword: KEYWORDS,
|
||||||
|
built_in:
|
||||||
|
'Int Real Char Bool',
|
||||||
|
literal:
|
||||||
|
'True False'
|
||||||
|
},
|
||||||
|
contains: [
|
||||||
|
hljs.C_LINE_COMMENT_MODE,
|
||||||
|
hljs.C_BLOCK_COMMENT_MODE,
|
||||||
|
hljs.APOS_STRING_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.C_NUMBER_MODE,
|
||||||
|
{ // relevance booster
|
||||||
|
begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>' }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return clean;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
8
static/highlight/es/languages/clean.min.js
vendored
Normal file
8
static/highlight/es/languages/clean.min.js
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*! `clean` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>({name:"Clean",
|
||||||
|
aliases:["icl","dcl"],keywords:{
|
||||||
|
keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],
|
||||||
|
built_in:"Int Real Char Bool",literal:"True False"},
|
||||||
|
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{
|
||||||
|
begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]})})()
|
||||||
|
;export default hljsGrammar;
|
||||||
35
static/highlight/es/languages/clojure-repl.js
Normal file
35
static/highlight/es/languages/clojure-repl.js
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*! `clojure-repl` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Clojure REPL
|
||||||
|
Description: Clojure REPL sessions
|
||||||
|
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||||||
|
Requires: clojure.js
|
||||||
|
Website: https://clojure.org
|
||||||
|
Category: lisp
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function clojureRepl(hljs) {
|
||||||
|
return {
|
||||||
|
name: 'Clojure REPL',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'meta.prompt',
|
||||||
|
begin: /^([\w.-]+|\s*#_)?=>/,
|
||||||
|
starts: {
|
||||||
|
end: /$/,
|
||||||
|
subLanguage: 'clojure'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return clojureRepl;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
4
static/highlight/es/languages/clojure-repl.min.js
vendored
Normal file
4
static/highlight/es/languages/clojure-repl.min.js
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
/*! `clojure-repl` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return a=>({name:"Clojure REPL",contains:[{
|
||||||
|
className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,
|
||||||
|
subLanguage:"clojure"}}]})})();export default hljsGrammar;
|
||||||
192
static/highlight/es/languages/clojure.js
Normal file
192
static/highlight/es/languages/clojure.js
Normal file
|
|
@ -0,0 +1,192 @@
|
||||||
|
/*! `clojure` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: Clojure
|
||||||
|
Description: Clojure syntax (based on lisp.js)
|
||||||
|
Author: mfornos
|
||||||
|
Website: https://clojure.org
|
||||||
|
Category: lisp
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function clojure(hljs) {
|
||||||
|
const SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&\'';
|
||||||
|
const SYMBOL_RE = '[#]?[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:$#]*';
|
||||||
|
const globals = 'def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord';
|
||||||
|
const keywords = {
|
||||||
|
$pattern: SYMBOL_RE,
|
||||||
|
built_in:
|
||||||
|
// Clojure keywords
|
||||||
|
globals + ' '
|
||||||
|
+ 'cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem '
|
||||||
|
+ 'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? '
|
||||||
|
+ 'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? '
|
||||||
|
+ 'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? '
|
||||||
|
+ 'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . '
|
||||||
|
+ 'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last '
|
||||||
|
+ 'drop-while while intern condp case reduced cycle split-at split-with repeat replicate '
|
||||||
|
+ 'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext '
|
||||||
|
+ 'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends '
|
||||||
|
+ 'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler '
|
||||||
|
+ 'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter '
|
||||||
|
+ 'monitor-exit macroexpand macroexpand-1 for dosync and or '
|
||||||
|
+ 'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert '
|
||||||
|
+ 'peek pop doto proxy first rest cons cast coll last butlast '
|
||||||
|
+ 'sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import '
|
||||||
|
+ 'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! '
|
||||||
|
+ 'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger '
|
||||||
|
+ 'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline '
|
||||||
|
+ 'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking '
|
||||||
|
+ 'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! '
|
||||||
|
+ 'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! '
|
||||||
|
+ 'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty '
|
||||||
|
+ 'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list '
|
||||||
|
+ 'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer '
|
||||||
|
+ 'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate '
|
||||||
|
+ 'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta '
|
||||||
|
+ 'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize'
|
||||||
|
};
|
||||||
|
|
||||||
|
const SYMBOL = {
|
||||||
|
begin: SYMBOL_RE,
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const NUMBER = {
|
||||||
|
scope: 'number',
|
||||||
|
relevance: 0,
|
||||||
|
variants: [
|
||||||
|
{ match: /[-+]?0[xX][0-9a-fA-F]+N?/ }, // hexadecimal // 0x2a
|
||||||
|
{ match: /[-+]?0[0-7]+N?/ }, // octal // 052
|
||||||
|
{ match: /[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/ }, // variable radix from 2 to 36 // 2r101010, 8r52, 36r16
|
||||||
|
{ match: /[-+]?[0-9]+\/[0-9]+N?/ }, // ratio // 1/2
|
||||||
|
{ match: /[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/ }, // float // 0.42 4.2E-1M 42E1 42M
|
||||||
|
{ match: /[-+]?([1-9][0-9]*|0)N?/ }, // int (don't match leading 0) // 42 42N
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const CHARACTER = {
|
||||||
|
scope: 'character',
|
||||||
|
variants: [
|
||||||
|
{ match: /\\o[0-3]?[0-7]{1,2}/ }, // Unicode Octal 0 - 377
|
||||||
|
{ match: /\\u[0-9a-fA-F]{4}/ }, // Unicode Hex 0000 - FFFF
|
||||||
|
{ match: /\\(newline|space|tab|formfeed|backspace|return)/ }, // special characters
|
||||||
|
{
|
||||||
|
match: /\\\S/,
|
||||||
|
relevance: 0
|
||||||
|
} // any non-whitespace char
|
||||||
|
]
|
||||||
|
};
|
||||||
|
const REGEX = {
|
||||||
|
scope: 'regex',
|
||||||
|
begin: /#"/,
|
||||||
|
end: /"/,
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
};
|
||||||
|
const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null });
|
||||||
|
const COMMA = {
|
||||||
|
scope: 'punctuation',
|
||||||
|
match: /,/,
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const COMMENT = hljs.COMMENT(
|
||||||
|
';',
|
||||||
|
'$',
|
||||||
|
{ relevance: 0 }
|
||||||
|
);
|
||||||
|
const LITERAL = {
|
||||||
|
className: 'literal',
|
||||||
|
begin: /\b(true|false|nil)\b/
|
||||||
|
};
|
||||||
|
const COLLECTION = {
|
||||||
|
begin: "\\[|(#::?" + SYMBOL_RE + ")?\\{",
|
||||||
|
end: '[\\]\\}]',
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const KEY = {
|
||||||
|
className: 'symbol',
|
||||||
|
begin: '[:]{1,2}' + SYMBOL_RE
|
||||||
|
};
|
||||||
|
const LIST = {
|
||||||
|
begin: '\\(',
|
||||||
|
end: '\\)'
|
||||||
|
};
|
||||||
|
const BODY = {
|
||||||
|
endsWithParent: true,
|
||||||
|
relevance: 0
|
||||||
|
};
|
||||||
|
const NAME = {
|
||||||
|
keywords: keywords,
|
||||||
|
className: 'name',
|
||||||
|
begin: SYMBOL_RE,
|
||||||
|
relevance: 0,
|
||||||
|
starts: BODY
|
||||||
|
};
|
||||||
|
const DEFAULT_CONTAINS = [
|
||||||
|
COMMA,
|
||||||
|
LIST,
|
||||||
|
CHARACTER,
|
||||||
|
REGEX,
|
||||||
|
STRING,
|
||||||
|
COMMENT,
|
||||||
|
KEY,
|
||||||
|
COLLECTION,
|
||||||
|
NUMBER,
|
||||||
|
LITERAL,
|
||||||
|
SYMBOL
|
||||||
|
];
|
||||||
|
|
||||||
|
const GLOBAL = {
|
||||||
|
beginKeywords: globals,
|
||||||
|
keywords: {
|
||||||
|
$pattern: SYMBOL_RE,
|
||||||
|
keyword: globals
|
||||||
|
},
|
||||||
|
end: '(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'title',
|
||||||
|
begin: SYMBOL_RE,
|
||||||
|
relevance: 0,
|
||||||
|
excludeEnd: true,
|
||||||
|
// we can only have a single title
|
||||||
|
endsParent: true
|
||||||
|
}
|
||||||
|
].concat(DEFAULT_CONTAINS)
|
||||||
|
};
|
||||||
|
|
||||||
|
LIST.contains = [
|
||||||
|
GLOBAL,
|
||||||
|
NAME,
|
||||||
|
BODY
|
||||||
|
];
|
||||||
|
BODY.contains = DEFAULT_CONTAINS;
|
||||||
|
COLLECTION.contains = DEFAULT_CONTAINS;
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'Clojure',
|
||||||
|
aliases: [
|
||||||
|
'clj',
|
||||||
|
'edn'
|
||||||
|
],
|
||||||
|
illegal: /\S/,
|
||||||
|
contains: [
|
||||||
|
COMMA,
|
||||||
|
LIST,
|
||||||
|
CHARACTER,
|
||||||
|
REGEX,
|
||||||
|
STRING,
|
||||||
|
COMMENT,
|
||||||
|
KEY,
|
||||||
|
COLLECTION,
|
||||||
|
NUMBER,
|
||||||
|
LITERAL
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return clojure;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
25
static/highlight/es/languages/clojure.min.js
vendored
Normal file
25
static/highlight/es/languages/clojure.min.js
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
/*! `clojure` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||||
|
const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",a="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={
|
||||||
|
$pattern:n,
|
||||||
|
built_in:a+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
|
||||||
|
},s={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{
|
||||||
|
match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{
|
||||||
|
match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{
|
||||||
|
match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{
|
||||||
|
match:/[-+]?([1-9][0-9]*|0)N?/}]},c={scope:"character",variants:[{
|
||||||
|
match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{
|
||||||
|
match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,
|
||||||
|
relevance:0}]},i={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]
|
||||||
|
},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l={scope:"punctuation",
|
||||||
|
match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),p={
|
||||||
|
className:"literal",begin:/\b(true|false|nil)\b/},u={
|
||||||
|
begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",
|
||||||
|
begin:"[:]{1,2}"+n},h={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0
|
||||||
|
},b={keywords:r,className:"name",begin:n,relevance:0,starts:y
|
||||||
|
},g=[l,h,c,i,d,m,f,u,o,p,s],v={beginKeywords:a,keywords:{$pattern:n,keyword:a},
|
||||||
|
end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,
|
||||||
|
relevance:0,excludeEnd:!0,endsParent:!0}].concat(g)}
|
||||||
|
;return h.contains=[v,b,y],y.contains=g,u.contains=g,{name:"Clojure",
|
||||||
|
aliases:["clj","edn"],illegal:/\S/,contains:[l,h,c,i,d,m,f,u,o,p]}}})()
|
||||||
|
;export default hljsGrammar;
|
||||||
72
static/highlight/es/languages/cmake.js
Normal file
72
static/highlight/es/languages/cmake.js
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
/*! `cmake` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: CMake
|
||||||
|
Description: CMake is an open-source cross-platform system for build automation.
|
||||||
|
Author: Igor Kalnitsky <igor@kalnitsky.org>
|
||||||
|
Website: https://cmake.org
|
||||||
|
Category: build-system
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function cmake(hljs) {
|
||||||
|
return {
|
||||||
|
name: 'CMake',
|
||||||
|
aliases: [ 'cmake.in' ],
|
||||||
|
case_insensitive: true,
|
||||||
|
keywords: { keyword:
|
||||||
|
// scripting commands
|
||||||
|
'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments '
|
||||||
|
+ 'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro '
|
||||||
|
+ 'endwhile execute_process file find_file find_library find_package find_path '
|
||||||
|
+ 'find_program foreach function get_cmake_property get_directory_property '
|
||||||
|
+ 'get_filename_component get_property if include include_guard list macro '
|
||||||
|
+ 'mark_as_advanced math message option return separate_arguments '
|
||||||
|
+ 'set_directory_properties set_property set site_name string unset variable_watch while '
|
||||||
|
// project commands
|
||||||
|
+ 'add_compile_definitions add_compile_options add_custom_command add_custom_target '
|
||||||
|
+ 'add_definitions add_dependencies add_executable add_library add_link_options '
|
||||||
|
+ 'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist '
|
||||||
|
+ 'define_property enable_language enable_testing export fltk_wrap_ui '
|
||||||
|
+ 'get_source_file_property get_target_property get_test_property include_directories '
|
||||||
|
+ 'include_external_msproject include_regular_expression install link_directories '
|
||||||
|
+ 'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions '
|
||||||
|
+ 'set_source_files_properties set_target_properties set_tests_properties source_group '
|
||||||
|
+ 'target_compile_definitions target_compile_features target_compile_options '
|
||||||
|
+ 'target_include_directories target_link_directories target_link_libraries '
|
||||||
|
+ 'target_link_options target_sources try_compile try_run '
|
||||||
|
// CTest commands
|
||||||
|
+ 'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck '
|
||||||
|
+ 'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit '
|
||||||
|
+ 'ctest_test ctest_update ctest_upload '
|
||||||
|
// deprecated commands
|
||||||
|
+ 'build_name exec_program export_library_dependencies install_files install_programs '
|
||||||
|
+ 'install_targets load_command make_directory output_required_files remove '
|
||||||
|
+ 'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file '
|
||||||
|
+ 'qt5_use_modules qt5_use_package qt5_wrap_cpp '
|
||||||
|
// core keywords
|
||||||
|
+ 'on off true false and or not command policy target test exists is_newer_than '
|
||||||
|
+ 'is_directory is_symlink is_absolute matches less greater equal less_equal '
|
||||||
|
+ 'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less '
|
||||||
|
+ 'version_greater version_equal version_less_equal version_greater_equal in_list defined' },
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'variable',
|
||||||
|
begin: /\$\{/,
|
||||||
|
end: /\}/
|
||||||
|
},
|
||||||
|
hljs.COMMENT(/#\[\[/, /]]/),
|
||||||
|
hljs.HASH_COMMENT_MODE,
|
||||||
|
hljs.QUOTE_STRING_MODE,
|
||||||
|
hljs.NUMBER_MODE
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return cmake;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
7
static/highlight/es/languages/cmake.min.js
vendored
Normal file
7
static/highlight/es/languages/cmake.min.js
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
/*! `cmake` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict";return e=>({name:"CMake",
|
||||||
|
aliases:["cmake.in"],case_insensitive:!0,keywords:{
|
||||||
|
keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"
|
||||||
|
},contains:[{className:"variable",begin:/\$\{/,end:/\}/
|
||||||
|
},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]
|
||||||
|
})})();export default hljsGrammar;
|
||||||
376
static/highlight/es/languages/coffeescript.js
Normal file
376
static/highlight/es/languages/coffeescript.js
Normal file
|
|
@ -0,0 +1,376 @@
|
||||||
|
/*! `coffeescript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar = (function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const KEYWORDS = [
|
||||||
|
"as", // for exports
|
||||||
|
"in",
|
||||||
|
"of",
|
||||||
|
"if",
|
||||||
|
"for",
|
||||||
|
"while",
|
||||||
|
"finally",
|
||||||
|
"var",
|
||||||
|
"new",
|
||||||
|
"function",
|
||||||
|
"do",
|
||||||
|
"return",
|
||||||
|
"void",
|
||||||
|
"else",
|
||||||
|
"break",
|
||||||
|
"catch",
|
||||||
|
"instanceof",
|
||||||
|
"with",
|
||||||
|
"throw",
|
||||||
|
"case",
|
||||||
|
"default",
|
||||||
|
"try",
|
||||||
|
"switch",
|
||||||
|
"continue",
|
||||||
|
"typeof",
|
||||||
|
"delete",
|
||||||
|
"let",
|
||||||
|
"yield",
|
||||||
|
"const",
|
||||||
|
"class",
|
||||||
|
// JS handles these with a special rule
|
||||||
|
// "get",
|
||||||
|
// "set",
|
||||||
|
"debugger",
|
||||||
|
"async",
|
||||||
|
"await",
|
||||||
|
"static",
|
||||||
|
"import",
|
||||||
|
"from",
|
||||||
|
"export",
|
||||||
|
"extends",
|
||||||
|
// It's reached stage 3, which is "recommended for implementation":
|
||||||
|
"using"
|
||||||
|
];
|
||||||
|
const LITERALS = [
|
||||||
|
"true",
|
||||||
|
"false",
|
||||||
|
"null",
|
||||||
|
"undefined",
|
||||||
|
"NaN",
|
||||||
|
"Infinity"
|
||||||
|
];
|
||||||
|
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
|
||||||
|
const TYPES = [
|
||||||
|
// Fundamental objects
|
||||||
|
"Object",
|
||||||
|
"Function",
|
||||||
|
"Boolean",
|
||||||
|
"Symbol",
|
||||||
|
// numbers and dates
|
||||||
|
"Math",
|
||||||
|
"Date",
|
||||||
|
"Number",
|
||||||
|
"BigInt",
|
||||||
|
// text
|
||||||
|
"String",
|
||||||
|
"RegExp",
|
||||||
|
// Indexed collections
|
||||||
|
"Array",
|
||||||
|
"Float32Array",
|
||||||
|
"Float64Array",
|
||||||
|
"Int8Array",
|
||||||
|
"Uint8Array",
|
||||||
|
"Uint8ClampedArray",
|
||||||
|
"Int16Array",
|
||||||
|
"Int32Array",
|
||||||
|
"Uint16Array",
|
||||||
|
"Uint32Array",
|
||||||
|
"BigInt64Array",
|
||||||
|
"BigUint64Array",
|
||||||
|
// Keyed collections
|
||||||
|
"Set",
|
||||||
|
"Map",
|
||||||
|
"WeakSet",
|
||||||
|
"WeakMap",
|
||||||
|
// Structured data
|
||||||
|
"ArrayBuffer",
|
||||||
|
"SharedArrayBuffer",
|
||||||
|
"Atomics",
|
||||||
|
"DataView",
|
||||||
|
"JSON",
|
||||||
|
// Control abstraction objects
|
||||||
|
"Promise",
|
||||||
|
"Generator",
|
||||||
|
"GeneratorFunction",
|
||||||
|
"AsyncFunction",
|
||||||
|
// Reflection
|
||||||
|
"Reflect",
|
||||||
|
"Proxy",
|
||||||
|
// Internationalization
|
||||||
|
"Intl",
|
||||||
|
// WebAssembly
|
||||||
|
"WebAssembly"
|
||||||
|
];
|
||||||
|
|
||||||
|
const ERROR_TYPES = [
|
||||||
|
"Error",
|
||||||
|
"EvalError",
|
||||||
|
"InternalError",
|
||||||
|
"RangeError",
|
||||||
|
"ReferenceError",
|
||||||
|
"SyntaxError",
|
||||||
|
"TypeError",
|
||||||
|
"URIError"
|
||||||
|
];
|
||||||
|
|
||||||
|
const BUILT_IN_GLOBALS = [
|
||||||
|
"setInterval",
|
||||||
|
"setTimeout",
|
||||||
|
"clearInterval",
|
||||||
|
"clearTimeout",
|
||||||
|
|
||||||
|
"require",
|
||||||
|
"exports",
|
||||||
|
|
||||||
|
"eval",
|
||||||
|
"isFinite",
|
||||||
|
"isNaN",
|
||||||
|
"parseFloat",
|
||||||
|
"parseInt",
|
||||||
|
"decodeURI",
|
||||||
|
"decodeURIComponent",
|
||||||
|
"encodeURI",
|
||||||
|
"encodeURIComponent",
|
||||||
|
"escape",
|
||||||
|
"unescape"
|
||||||
|
];
|
||||||
|
|
||||||
|
const BUILT_INS = [].concat(
|
||||||
|
BUILT_IN_GLOBALS,
|
||||||
|
TYPES,
|
||||||
|
ERROR_TYPES
|
||||||
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
|
Language: CoffeeScript
|
||||||
|
Author: Dmytrii Nagirniak <dnagir@gmail.com>
|
||||||
|
Contributors: Oleg Efimov <efimovov@gmail.com>, Cédric Néhémie <cedric.nehemie@gmail.com>
|
||||||
|
Description: CoffeeScript is a programming language that transcompiles to JavaScript. For info about language see http://coffeescript.org/
|
||||||
|
Category: scripting
|
||||||
|
Website: https://coffeescript.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/** @type LanguageFn */
|
||||||
|
function coffeescript(hljs) {
|
||||||
|
const COFFEE_BUILT_INS = [
|
||||||
|
'npm',
|
||||||
|
'print'
|
||||||
|
];
|
||||||
|
const COFFEE_LITERALS = [
|
||||||
|
'yes',
|
||||||
|
'no',
|
||||||
|
'on',
|
||||||
|
'off'
|
||||||
|
];
|
||||||
|
const COFFEE_KEYWORDS = [
|
||||||
|
'then',
|
||||||
|
'unless',
|
||||||
|
'until',
|
||||||
|
'loop',
|
||||||
|
'by',
|
||||||
|
'when',
|
||||||
|
'and',
|
||||||
|
'or',
|
||||||
|
'is',
|
||||||
|
'isnt',
|
||||||
|
'not'
|
||||||
|
];
|
||||||
|
const NOT_VALID_KEYWORDS = [
|
||||||
|
"var",
|
||||||
|
"const",
|
||||||
|
"let",
|
||||||
|
"function",
|
||||||
|
"static"
|
||||||
|
];
|
||||||
|
const excluding = (list) =>
|
||||||
|
(kw) => !list.includes(kw);
|
||||||
|
const KEYWORDS$1 = {
|
||||||
|
keyword: KEYWORDS.concat(COFFEE_KEYWORDS).filter(excluding(NOT_VALID_KEYWORDS)),
|
||||||
|
literal: LITERALS.concat(COFFEE_LITERALS),
|
||||||
|
built_in: BUILT_INS.concat(COFFEE_BUILT_INS)
|
||||||
|
};
|
||||||
|
const JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
|
||||||
|
const SUBST = {
|
||||||
|
className: 'subst',
|
||||||
|
begin: /#\{/,
|
||||||
|
end: /\}/,
|
||||||
|
keywords: KEYWORDS$1
|
||||||
|
};
|
||||||
|
const EXPRESSIONS = [
|
||||||
|
hljs.BINARY_NUMBER_MODE,
|
||||||
|
hljs.inherit(hljs.C_NUMBER_MODE, { starts: {
|
||||||
|
end: '(\\s*/)?',
|
||||||
|
relevance: 0
|
||||||
|
} }), // a number tries to eat the following slash to prevent treating it as a regexp
|
||||||
|
{
|
||||||
|
className: 'string',
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: /'''/,
|
||||||
|
end: /'''/,
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /'/,
|
||||||
|
end: /'/,
|
||||||
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /"""/,
|
||||||
|
end: /"""/,
|
||||||
|
contains: [
|
||||||
|
hljs.BACKSLASH_ESCAPE,
|
||||||
|
SUBST
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: /"/,
|
||||||
|
end: /"/,
|
||||||
|
contains: [
|
||||||
|
hljs.BACKSLASH_ESCAPE,
|
||||||
|
SUBST
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
className: 'regexp',
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: '///',
|
||||||
|
end: '///',
|
||||||
|
contains: [
|
||||||
|
SUBST,
|
||||||
|
hljs.HASH_COMMENT_MODE
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: '//[gim]{0,3}(?=\\W)',
|
||||||
|
relevance: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// regex can't start with space to parse x / 2 / 3 as two divisions
|
||||||
|
// regex can't start with *, and it supports an "illegal" in the main mode
|
||||||
|
begin: /\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/ }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ begin: '@' + JS_IDENT_RE // relevance booster
|
||||||
|
},
|
||||||
|
{
|
||||||
|
subLanguage: 'javascript',
|
||||||
|
excludeBegin: true,
|
||||||
|
excludeEnd: true,
|
||||||
|
variants: [
|
||||||
|
{
|
||||||
|
begin: '```',
|
||||||
|
end: '```'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
begin: '`',
|
||||||
|
end: '`'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
SUBST.contains = EXPRESSIONS;
|
||||||
|
|
||||||
|
const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE });
|
||||||
|
const POSSIBLE_PARAMS_RE = '(\\(.*\\)\\s*)?\\B[-=]>';
|
||||||
|
const PARAMS = {
|
||||||
|
className: 'params',
|
||||||
|
begin: '\\([^\\(]',
|
||||||
|
returnBegin: true,
|
||||||
|
/* We need another contained nameless mode to not have every nested
|
||||||
|
pair of parens to be called "params" */
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
begin: /\(/,
|
||||||
|
end: /\)/,
|
||||||
|
keywords: KEYWORDS$1,
|
||||||
|
contains: [ 'self' ].concat(EXPRESSIONS)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
const CLASS_DEFINITION = {
|
||||||
|
variants: [
|
||||||
|
{ match: [
|
||||||
|
/class\s+/,
|
||||||
|
JS_IDENT_RE,
|
||||||
|
/\s+extends\s+/,
|
||||||
|
JS_IDENT_RE
|
||||||
|
] },
|
||||||
|
{ match: [
|
||||||
|
/class\s+/,
|
||||||
|
JS_IDENT_RE
|
||||||
|
] }
|
||||||
|
],
|
||||||
|
scope: {
|
||||||
|
2: "title.class",
|
||||||
|
4: "title.class.inherited"
|
||||||
|
},
|
||||||
|
keywords: KEYWORDS$1
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: 'CoffeeScript',
|
||||||
|
aliases: [
|
||||||
|
'coffee',
|
||||||
|
'cson',
|
||||||
|
'iced'
|
||||||
|
],
|
||||||
|
keywords: KEYWORDS$1,
|
||||||
|
illegal: /\/\*/,
|
||||||
|
contains: [
|
||||||
|
...EXPRESSIONS,
|
||||||
|
hljs.COMMENT('###', '###'),
|
||||||
|
hljs.HASH_COMMENT_MODE,
|
||||||
|
{
|
||||||
|
className: 'function',
|
||||||
|
begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + POSSIBLE_PARAMS_RE,
|
||||||
|
end: '[-=]>',
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [
|
||||||
|
TITLE,
|
||||||
|
PARAMS
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// anonymous function start
|
||||||
|
begin: /[:\(,=]\s*/,
|
||||||
|
relevance: 0,
|
||||||
|
contains: [
|
||||||
|
{
|
||||||
|
className: 'function',
|
||||||
|
begin: POSSIBLE_PARAMS_RE,
|
||||||
|
end: '[-=]>',
|
||||||
|
returnBegin: true,
|
||||||
|
contains: [ PARAMS ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
CLASS_DEFINITION,
|
||||||
|
{
|
||||||
|
begin: JS_IDENT_RE + ':',
|
||||||
|
end: ':',
|
||||||
|
returnBegin: true,
|
||||||
|
returnEnd: true,
|
||||||
|
relevance: 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return coffeescript;
|
||||||
|
|
||||||
|
})();
|
||||||
|
;
|
||||||
|
export default hljsGrammar;
|
||||||
28
static/highlight/es/languages/coffeescript.min.js
vendored
Normal file
28
static/highlight/es/languages/coffeescript.min.js
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
/*! `coffeescript` grammar compiled for Highlight.js 11.11.1 */
|
||||||
|
var hljsGrammar=(()=>{"use strict"
|
||||||
|
;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"])
|
||||||
|
;return a=>{const t={
|
||||||
|
keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"],
|
||||||
|
e=>!i.includes(e))),literal:n.concat(["yes","no","on","off"]),
|
||||||
|
built_in:r.concat(["npm","print"])};var i;const s="[A-Za-z$_][0-9A-Za-z$_]*",o={
|
||||||
|
className:"subst",begin:/#\{/,end:/\}/,keywords:t
|
||||||
|
},c=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",
|
||||||
|
relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,
|
||||||
|
contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]
|
||||||
|
},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,
|
||||||
|
contains:[a.BACKSLASH_ESCAPE,o]}]},{className:"regexp",variants:[{begin:"///",
|
||||||
|
end:"///",contains:[o,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",
|
||||||
|
relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s
|
||||||
|
},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{
|
||||||
|
begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=c
|
||||||
|
;const l=a.inherit(a.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",u={
|
||||||
|
className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,
|
||||||
|
end:/\)/,keywords:t,contains:["self"].concat(c)}]},g={variants:[{
|
||||||
|
match:[/class\s+/,s,/\s+extends\s+/,s]},{match:[/class\s+/,s]}],scope:{
|
||||||
|
2:"title.class",4:"title.class.inherited"},keywords:t};return{
|
||||||
|
name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,
|
||||||
|
contains:[...c,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",
|
||||||
|
begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[l,u]},{
|
||||||
|
begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,
|
||||||
|
end:"[-=]>",returnBegin:!0,contains:[u]}]},g,{begin:s+":",end:":",
|
||||||
|
returnBegin:!0,returnEnd:!0,relevance:0}]}}})();export default hljsGrammar;
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue