diff options
author | Andreas Widen <andreas@harmonicflow.org> | 2023-11-25 17:21:37 +0100 |
---|---|---|
committer | Andreas Widen <andreas@harmonicflow.org> | 2023-11-25 17:21:37 +0100 |
commit | 1b2b7c3eb939724696894f31ff27db97b0cac84c (patch) | |
tree | efb7b7746a628efb7bb99b2e44c9c2fbfd75b656 /static/base/highlight/es/languages/angelscript.min.js | |
download | hf-web-1b2b7c3eb939724696894f31ff27db97b0cac84c.tar.xz hf-web-1b2b7c3eb939724696894f31ff27db97b0cac84c.zip |
Initial commit.
Signed-off-by: Andreas Widen <andreas@harmonicflow.org>
Diffstat (limited to 'static/base/highlight/es/languages/angelscript.min.js')
-rw-r--r-- | static/base/highlight/es/languages/angelscript.min.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/static/base/highlight/es/languages/angelscript.min.js b/static/base/highlight/es/languages/angelscript.min.js new file mode 100644 index 0000000..355a9a9 --- /dev/null +++ b/static/base/highlight/es/languages/angelscript.min.js @@ -0,0 +1,21 @@ +/*! `angelscript` grammar compiled for Highlight.js 11.3.1 */ +var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"built_in", +begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|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;
\ No newline at end of file |