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/elixir.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/elixir.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/elixir.js | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/node_modules/highlight.js/lib/languages/elixir.js b/node_modules/highlight.js/lib/languages/elixir.js deleted file mode 100644 index 94bb0ac0b..000000000 --- a/node_modules/highlight.js/lib/languages/elixir.js +++ /dev/null @@ -1,96 +0,0 @@ -module.exports = function(hljs) { - var ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?'; - var ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; - var ELIXIR_KEYWORDS = - 'and false then defined module in return redo retry end for true self when ' + - 'next until do begin unless nil break not case cond alias while ensure or ' + - 'include use alias fn quote'; - var SUBST = { - className: 'subst', - begin: '#\\{', end: '}', - lexemes: ELIXIR_IDENT_RE, - keywords: ELIXIR_KEYWORDS - }; - var STRING = { - className: 'string', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - variants: [ - { - begin: /'/, end: /'/ - }, - { - begin: /"/, end: /"/ - } - ] - }; - var FUNCTION = { - className: 'function', - beginKeywords: 'def defp defmacro', end: /\B\b/, // the mode is ended by the title - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: ELIXIR_IDENT_RE, - endsParent: true - }) - ] - }; - var CLASS = hljs.inherit(FUNCTION, { - className: 'class', - beginKeywords: 'defimpl defmodule defprotocol defrecord', end: /\bdo\b|$|;/ - }); - var ELIXIR_DEFAULT_CONTAINS = [ - STRING, - hljs.HASH_COMMENT_MODE, - CLASS, - FUNCTION, - { - className: 'symbol', - begin: ':(?!\\s)', - contains: [STRING, {begin: ELIXIR_METHOD_RE}], - relevance: 0 - }, - { - className: 'symbol', - begin: ELIXIR_IDENT_RE + ':', - relevance: 0 - }, - { - className: 'number', - begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', - relevance: 0 - }, - { - className: 'variable', - begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' - }, - { - begin: '->' - }, - { // regexp container - begin: '(' + hljs.RE_STARTERS_RE + ')\\s*', - contains: [ - hljs.HASH_COMMENT_MODE, - { - className: 'regexp', - illegal: '\\n', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - variants: [ - { - begin: '/', end: '/[a-z]*' - }, - { - begin: '%r\\[', end: '\\][a-z]*' - } - ] - } - ], - relevance: 0 - } - ]; - SUBST.contains = ELIXIR_DEFAULT_CONTAINS; - - return { - lexemes: ELIXIR_IDENT_RE, - keywords: ELIXIR_KEYWORDS, - contains: ELIXIR_DEFAULT_CONTAINS - }; -};
\ No newline at end of file |