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/twig.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/twig.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/twig.js | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/node_modules/highlight.js/lib/languages/twig.js b/node_modules/highlight.js/lib/languages/twig.js deleted file mode 100644 index 2c4168b17..000000000 --- a/node_modules/highlight.js/lib/languages/twig.js +++ /dev/null @@ -1,65 +0,0 @@ -module.exports = function(hljs) { - var PARAMS = { - className: 'params', - begin: '\\(', end: '\\)' - }; - - var FUNCTION_NAMES = 'attribute block constant cycle date dump include ' + - 'max min parent random range source template_from_string'; - - var FUNCTIONS = { - beginKeywords: FUNCTION_NAMES, - keywords: {name: FUNCTION_NAMES}, - relevance: 0, - contains: [ - PARAMS - ] - }; - - var FILTER = { - begin: /\|[A-Za-z_]+:?/, - keywords: - 'abs batch capitalize convert_encoding date date_modify default ' + - 'escape first format join json_encode keys last length lower ' + - 'merge nl2br number_format raw replace reverse round slice sort split ' + - 'striptags title trim upper url_encode', - contains: [ - FUNCTIONS - ] - }; - - var TAGS = 'autoescape block do embed extends filter flush for ' + - 'if import include macro sandbox set spaceless use verbatim'; - - TAGS = TAGS + ' ' + TAGS.split(' ').map(function(t){return 'end' + t}).join(' '); - - return { - aliases: ['craftcms'], - case_insensitive: true, - subLanguage: 'xml', - contains: [ - hljs.COMMENT(/\{#/, /#}/), - { - className: 'template-tag', - begin: /\{%/, end: /%}/, - contains: [ - { - className: 'name', - begin: /\w+/, - keywords: TAGS, - starts: { - endsWithParent: true, - contains: [FILTER, FUNCTIONS], - relevance: 0 - } - } - ] - }, - { - className: 'template-variable', - begin: /\{\{/, end: /}}/, - contains: ['self', FILTER, FUNCTIONS] - } - ] - }; -};
\ No newline at end of file |