-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
119 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Contributors' Guide | ||
|
||
## Building `dist` folder | ||
|
||
To build `dist/` folder we utilize `highlight.js` standard way: | ||
1. Copy the source | ||
2. Symlink our project to `extra/` directory | ||
3. Run the script | ||
|
||
To automate this proccess, use `bash scripts/build.sh` | ||
|
||
**Make sure that you run build script for each new package release**! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/*! `func` grammar compiled for Highlight.js 11.6.0 */ | ||
var hljsGrammar=(()=>{"use strict" | ||
;const e=/\"[^\n\"]+\"[Hhcusa]?/,a=/(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])/ | ||
;return s=>({name:"FunC",aliases:["func"],case_insensitive:!1,keywords:{ | ||
keyword:["if","ifnot","else","elseif","elseifnot|10","while","do","until","repeat","return","impure","method_id","forall","asm","inline","inline_ref|10"], | ||
;const e=/\"[^\n\"]+\"[Hhcusa]?/,n=/(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])/ | ||
;return t=>({name:"FunC",aliases:["func"],case_insensitive:!1,keywords:{ | ||
keyword:["if","ifnot","else","elseif","elseifnot|10","while","do","until","repeat","return","impure","method_id","forall","asm","inline","inline_ref|10","const","global"], | ||
literal:["true","false"], | ||
type:["var","int","slice","tuple","cell","builder","cont","_"],built_in:[]}, | ||
contains:[{className:"comment",begin:";;",end:/(?=\n)/},{className:"comment", | ||
begin:"{-",end:"-}",contains:["self"]},{className:"meta",begin:/#pragma/, | ||
end:/;/,contains:[{className:"keyword",match:/version|not-version/},{ | ||
className:"operator",match:s.regex.either(/>=/,/<=/,/=/,/>/,/</,/\^/)},{ | ||
className:"number",match:/([0-9]+)(.[0-9]+)?(.[0-9]+)?/}]},{className:"keyword", | ||
begin:/#include/,end:/;/,contains:[{className:"string",match:e}]},{ | ||
className:"number",match:a},{className:"string",match:e},{className:"function", | ||
contains:[{scope:"comment",begin:";;",end:/(?=\n)/},{scope:"comment",begin:"{-", | ||
end:"-}",contains:["self"]},{scope:"meta",begin:/#pragma/,end:/;/,contains:[{ | ||
scope:"keyword",match:/version|not-version/},{scope:"operator", | ||
match:t.regex.either(/>=/,/<=/,/=/,/>/,/</,/\^/)},{scope:"number", | ||
match:/([0-9]+)(.[0-9]+)?(.[0-9]+)?/}]},{scope:"keyword",begin:/#include/, | ||
end:/;/,contains:[{scope:"string",match:e}]},{scope:"number",match:n},{ | ||
scope:"string",match:e},{ | ||
match:[/\b(const|global)\b/,/\s+/,/\w+/,/\s+/,'(?!")(`([^`]+)`|((?=_)_|(?=\\{)\\{|(?=\\})\\}|(?![_`{}]))([^;,\\[\\]\\(\\)\\s~.]+))'], | ||
scope:{1:"keyword",5:"variable.constant"}},{scope:"function", | ||
match:/(?!")(`([^`]+)`|((?=_)_|(?=\{)\{|(?=\})\}|(?![_`{}]))([^;,\[\]\(\)\s~.]+))(?=[(])/ | ||
},{className:"variable.constant",match:/\b(const|global)\b/},{ | ||
className:"operator", | ||
match:s.regex.either(/<=>/,/>=/,/<=/,/!=/,/==/,/\^>>/,/~>>/,/>>/,/<</,/\/%/,/\^%/,/~%/,/\^\//,/~\//,/\+=/,/-=/,/\*=/,/\/=/,/~\/=/,/\^\/=/,/%=/,/\^%=/,/<<=/,/>>=/,/~>>=/,/\^>>=/,/&=/,/\^=/,/\|=/,/\^/,/=/,/~/,/\//,/%/,/-/,/\*/,/\+/,/>/,/</,/&/,/\|/,/:/,/\?/) | ||
},{className:"puncuation",match:/[.;(),\[\]~{}]/}]})})() | ||
},{scope:"operator", | ||
match:t.regex.either(/<=>/,/>=/,/<=/,/!=/,/==/,/\^>>/,/~>>/,/>>/,/<</,/\/%/,/\^%/,/~%/,/\^\//,/~\//,/\+=/,/-=/,/\*=/,/\/=/,/~\/=/,/\^\/=/,/%=/,/\^%=/,/<<=/,/>>=/,/~>>=/,/\^>>=/,/&=/,/\^=/,/\|=/,/\^/,/=/,/~/,/\//,/%/,/-/,/\*/,/\+/,/>/,/</,/&/,/\|/,/:/,/\?/) | ||
},{scope:"punctuation",match:/[.;(),\[\]~{}]/}]})})() | ||
;export default hljsGrammar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/*! `func` grammar compiled for Highlight.js 11.6.0 */ | ||
(()=>{var e=(()=>{"use strict" | ||
;const e=/\"[^\n\"]+\"[Hhcusa]?/,a=/(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])/ | ||
;return s=>({name:"FunC",aliases:["func"],case_insensitive:!1,keywords:{ | ||
keyword:["if","ifnot","else","elseif","elseifnot|10","while","do","until","repeat","return","impure","method_id","forall","asm","inline","inline_ref|10"], | ||
;const e=/\"[^\n\"]+\"[Hhcusa]?/,n=/(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])/ | ||
;return t=>({name:"FunC",aliases:["func"],case_insensitive:!1,keywords:{ | ||
keyword:["if","ifnot","else","elseif","elseifnot|10","while","do","until","repeat","return","impure","method_id","forall","asm","inline","inline_ref|10","const","global"], | ||
literal:["true","false"], | ||
type:["var","int","slice","tuple","cell","builder","cont","_"],built_in:[]}, | ||
contains:[{className:"comment",begin:";;",end:/(?=\n)/},{className:"comment", | ||
begin:"{-",end:"-}",contains:["self"]},{className:"meta",begin:/#pragma/, | ||
end:/;/,contains:[{className:"keyword",match:/version|not-version/},{ | ||
className:"operator",match:s.regex.either(/>=/,/<=/,/=/,/>/,/</,/\^/)},{ | ||
className:"number",match:/([0-9]+)(.[0-9]+)?(.[0-9]+)?/}]},{className:"keyword", | ||
begin:/#include/,end:/;/,contains:[{className:"string",match:e}]},{ | ||
className:"number",match:a},{className:"string",match:e},{className:"function", | ||
contains:[{scope:"comment",begin:";;",end:/(?=\n)/},{scope:"comment",begin:"{-", | ||
end:"-}",contains:["self"]},{scope:"meta",begin:/#pragma/,end:/;/,contains:[{ | ||
scope:"keyword",match:/version|not-version/},{scope:"operator", | ||
match:t.regex.either(/>=/,/<=/,/=/,/>/,/</,/\^/)},{scope:"number", | ||
match:/([0-9]+)(.[0-9]+)?(.[0-9]+)?/}]},{scope:"keyword",begin:/#include/, | ||
end:/;/,contains:[{scope:"string",match:e}]},{scope:"number",match:n},{ | ||
scope:"string",match:e},{ | ||
match:[/\b(const|global)\b/,/\s+/,/\w+/,/\s+/,'(?!")(`([^`]+)`|((?=_)_|(?=\\{)\\{|(?=\\})\\}|(?![_`{}]))([^;,\\[\\]\\(\\)\\s~.]+))'], | ||
scope:{1:"keyword",5:"variable.constant"}},{scope:"function", | ||
match:/(?!")(`([^`]+)`|((?=_)_|(?=\{)\{|(?=\})\}|(?![_`{}]))([^;,\[\]\(\)\s~.]+))(?=[(])/ | ||
},{className:"variable.constant",match:/\b(const|global)\b/},{ | ||
className:"operator", | ||
match:s.regex.either(/<=>/,/>=/,/<=/,/!=/,/==/,/\^>>/,/~>>/,/>>/,/<</,/\/%/,/\^%/,/~%/,/\^\//,/~\//,/\+=/,/-=/,/\*=/,/\/=/,/~\/=/,/\^\/=/,/%=/,/\^%=/,/<<=/,/>>=/,/~>>=/,/\^>>=/,/&=/,/\^=/,/\|=/,/\^/,/=/,/~/,/\//,/%/,/-/,/\*/,/\+/,/>/,/</,/&/,/\|/,/:/,/\?/) | ||
},{className:"puncuation",match:/[.;(),\[\]~{}]/}]})})() | ||
},{scope:"operator", | ||
match:t.regex.either(/<=>/,/>=/,/<=/,/!=/,/==/,/\^>>/,/~>>/,/>>/,/<</,/\/%/,/\^%/,/~%/,/\^\//,/~\//,/\+=/,/-=/,/\*=/,/\/=/,/~\/=/,/\^\/=/,/%=/,/\^%=/,/<<=/,/>>=/,/~>>=/,/\^>>=/,/&=/,/\^=/,/\|=/,/\^/,/=/,/~/,/\//,/%/,/-/,/\*/,/\+/,/>/,/</,/&/,/\|/,/:/,/\?/) | ||
},{scope:"punctuation",match:/[.;(),\[\]~{}]/}]})})() | ||
;hljs.registerLanguage("func",e)})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.