Skip to content

Commit

Permalink
deploy: e73a9bf
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed Jul 16, 2024
1 parent 32b2ddf commit 64a9dfb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ hljs.registerLanguage('move', function(hljs) {
let KEYWORDS = [
...'public native friend entry macro'.split(' '),
...'let mut abort'.split(' '),
...'if else while loop break continue'.split(' '),
...'if else while loop break continue match'.split(' '),
];

return {
Expand Down Expand Up @@ -497,8 +497,8 @@ hljs.registerLanguage('move', function(hljs) {
{
// struct definition
scope: 'struct',
begin: 'struct',
keywords: 'struct',
begin: '\\b(struct|enum)\\b',
keywords: ['struct', 'enum'],
end: /(?=[\)}])/,
relevance: 10,
contains: [
Expand Down Expand Up @@ -613,7 +613,7 @@ hljs.registerLanguage('move', function(hljs) {
{
// function call
scope: 'title.function.invoke',
match: /\b[a-z_][a-z_0-9]*(?=\()/,
match: /\b[a-z_][a-z_0-9]*(\!?)(?=\()/,
}
]
};
Expand Down
3 changes: 1 addition & 2 deletions move-basics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ <h1 id="move-basics"><a class="header" href="#move-basics">Move Basics</a></h1>
language, such as types, modules, functions, and control flow. It focuses on the language without a
storage model or a blockchain, and explains the essential concepts of the language. To learn
features specific to Sui, such as storage functions and abilities, refer to the
<a href="../storage/README.html">Using Objects</a> chapter, however, it is recommended to start with this chapter
first.</p>
<a href="../storage/">Using Objects</a> chapter, however, it is recommended to start with this chapter first.</p>
<!-- TODO: cross link with Reference -->

</main>
Expand Down
3 changes: 1 addition & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,7 @@ <h2 id="transaction-effects-1"><a class="header" href="#transaction-effects-1">T
language, such as types, modules, functions, and control flow. It focuses on the language without a
storage model or a blockchain, and explains the essential concepts of the language. To learn
features specific to Sui, such as storage functions and abilities, refer to the
<a href="move-basics/../storage/README.html">Using Objects</a> chapter, however, it is recommended to start with this chapter
first.</p>
<a href="move-basics/../storage/">Using Objects</a> chapter, however, it is recommended to start with this chapter first.</p>
<!-- TODO: cross link with Reference -->
<div style="break-before: page; page-break-before: always;"></div><h1 id="module"><a class="header" href="#module">Module</a></h1>
<!--
Expand Down
8 changes: 4 additions & 4 deletions reference/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ hljs.registerLanguage('move', function(hljs) {
let KEYWORDS = [
...'public native friend entry macro'.split(' '),
...'let mut abort'.split(' '),
...'if else while loop break continue'.split(' '),
...'if else while loop break continue match'.split(' '),
];

return {
Expand Down Expand Up @@ -497,8 +497,8 @@ hljs.registerLanguage('move', function(hljs) {
{
// struct definition
scope: 'struct',
begin: 'struct',
keywords: 'struct',
begin: '\\b(struct|enum)\\b',
keywords: ['struct', 'enum'],
end: /(?=[\)}])/,
relevance: 10,
contains: [
Expand Down Expand Up @@ -613,7 +613,7 @@ hljs.registerLanguage('move', function(hljs) {
{
// function call
scope: 'title.function.invoke',
match: /\b[a-z_][a-z_0-9]*(?=\()/,
match: /\b[a-z_][a-z_0-9]*(\!?)(?=\()/,
}
]
};
Expand Down

0 comments on commit 64a9dfb

Please sign in to comment.