diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/highlight.js/lib/languages/zephir.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/zephir.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/zephir.js | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/node_modules/highlight.js/lib/languages/zephir.js b/node_modules/highlight.js/lib/languages/zephir.js deleted file mode 100644 index a06f573ed..000000000 --- a/node_modules/highlight.js/lib/languages/zephir.js +++ /dev/null @@ -1,106 +0,0 @@ -module.exports = function(hljs) { - var STRING = { - className: 'string', - contains: [hljs.BACKSLASH_ESCAPE], - variants: [ - { - begin: 'b"', end: '"' - }, - { - begin: 'b\'', end: '\'' - }, - hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}), - hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}) - ] - }; - var NUMBER = {variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]}; - return { - aliases: ['zep'], - case_insensitive: true, - keywords: - 'and include_once list abstract global private echo interface as static endswitch ' + - 'array null if endwhile or const for endforeach self var let while isset public ' + - 'protected exit foreach throw elseif include __FILE__ empty require_once do xor ' + - 'return parent clone use __CLASS__ __LINE__ else break print eval new ' + - 'catch __METHOD__ case exception default die require __FUNCTION__ ' + - 'enddeclare final try switch continue endfor endif declare unset true false ' + - 'trait goto instanceof insteadof __DIR__ __NAMESPACE__ ' + - 'yield finally int uint long ulong char uchar double float bool boolean string' + - 'likely unlikely', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.HASH_COMMENT_MODE, - hljs.COMMENT( - '/\\*', - '\\*/', - { - contains: [ - { - className: 'doctag', - begin: '@[A-Za-z]+' - } - ] - } - ), - hljs.COMMENT( - '__halt_compiler.+?;', - false, - { - endsWithParent: true, - keywords: '__halt_compiler', - lexemes: hljs.UNDERSCORE_IDENT_RE - } - ), - { - className: 'string', - begin: '<<<[\'"]?\\w+[\'"]?$', end: '^\\w+;', - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - // swallow composed identifiers to avoid parsing them as keywords - begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ - }, - { - className: 'function', - beginKeywords: 'function', end: /[;{]/, excludeEnd: true, - illegal: '\\$|\\[|%', - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - { - className: 'params', - begin: '\\(', end: '\\)', - contains: [ - 'self', - hljs.C_BLOCK_COMMENT_MODE, - STRING, - NUMBER - ] - } - ] - }, - { - className: 'class', - beginKeywords: 'class interface', end: '{', excludeEnd: true, - illegal: /[:\(\$"]/, - contains: [ - {beginKeywords: 'extends implements'}, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - beginKeywords: 'namespace', end: ';', - illegal: /[\.']/, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - beginKeywords: 'use', end: ';', - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - begin: '=>' // No markup, just a relevance booster - }, - STRING, - NUMBER - ] - }; -};
\ No newline at end of file |