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/zephir.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/zephir.min.js')
-rw-r--r-- | static/base/highlight/es/languages/zephir.min.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/static/base/highlight/es/languages/zephir.min.js b/static/base/highlight/es/languages/zephir.min.js new file mode 100644 index 0000000..1c9a0df --- /dev/null +++ b/static/base/highlight/es/languages/zephir.min.js @@ -0,0 +1,18 @@ +/*! `zephir` grammar compiled for Highlight.js 11.3.1 */ +var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"string", +contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{ +illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})] +},a=e.UNDERSCORE_TITLE_MODE,s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE] +},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined" +;return{name:"Zephir",aliases:["zep"],keywords:i, +contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{ +className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string", +begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{ +begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function", +beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/, +contains:[a,{className:"params",begin:/\(/,end:/\)/,keywords:i, +contains:["self",e.C_BLOCK_COMMENT_MODE,n,s]}]},{className:"class", +beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/, +contains:[{beginKeywords:"extends implements"},a]},{beginKeywords:"namespace", +end:/;/,illegal:/[.']/,contains:[a]},{beginKeywords:"use",end:/;/,contains:[a] +},{begin:/=>/},n,s]}}})();export default hljsGrammar;
\ No newline at end of file |