Skip to content

Commit

Permalink
FuelLabs#2039 - add storage keyword highlighting in book (FuelLabs#2141)
Browse files Browse the repository at this point in the history
* FuelLabs#2039 - add storage keyword highlighting in book

* Changes after review

Co-authored-by: John Adler <[email protected]>
  • Loading branch information
r-sitko and adlerjohn authored Jun 28, 2022
1 parent 2264b2d commit e06e993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/theme/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ anyNumberOfTimes:g};for(const e in A)"object"==typeof A[e]&&n(A[e])
grmr_sway:e=>{const t={className:"title.function.invoke",relevance:0,
begin:b(/\b/,/(?!let\b)/,e.IDENT_RE,u(/\s*\(/))},n="([u](8|16|32|64))?";return{
name:"Sway",aliases:["sw"],keywords:{$pattern:e.IDENT_RE+"!?",
keyword:["abi","as","asm","const","contract","deref","enum","fn","if","impl","let","library","match","mut","else","predicate","ref","return","script","Self","self","str","struct","trait","use","where","while"],
keyword:["abi","as","asm","const","contract","deref","enum","fn","if","impl","let","library","match","mut","else","predicate","ref","return","script","Self","self","storage","str","struct","trait","use","where","while"],
literal:["true","false"],
built_in:["bool","char","u8","u16","u32","u64","b256","str","Self"]},
illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{
Expand Down
1 change: 1 addition & 0 deletions scripts/highlightjs/sway.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default function(hljs) {
"script",
"Self",
"self",
"storage",
"str",
"struct",
"trait",
Expand Down

0 comments on commit e06e993

Please sign in to comment.