| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- {
- "lexemes": "[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?",
- "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 require import with|0",
- "contains": [
- {
- "className": "string",
- "contains": [
- {
- "begin": "\\\\[\\s\\S]",
- "relevance": 0
- },
- {
- "className": "subst",
- "begin": "#\\{",
- "end": "}",
- "lexemes": "[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?",
- "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 require import with|0",
- "contains": {
- "$ref": "#contains"
- }
- }
- ],
- "variants": [
- {
- "begin": "\"\"\"",
- "end": "\"\"\""
- },
- {
- "begin": "'''",
- "end": "'''"
- },
- {
- "begin": "~S\"\"\"",
- "end": "\"\"\"",
- "contains": []
- },
- {
- "begin": "~S\"",
- "end": "\"",
- "contains": []
- },
- {
- "begin": "~S'''",
- "end": "'''",
- "contains": []
- },
- {
- "begin": "~S'",
- "end": "'",
- "contains": []
- },
- {
- "begin": "'",
- "end": "'"
- },
- {
- "begin": "\"",
- "end": "\""
- }
- ]
- },
- {
- "className": "string",
- "begin": "~[A-Z](?=[\/|([{<\"'])",
- "contains": [
- {
- "begin": "\"",
- "end": "\""
- },
- {
- "begin": "'",
- "end": "'"
- },
- {
- "begin": "\\\/",
- "end": "\\\/"
- },
- {
- "begin": "\\|",
- "end": "\\|"
- },
- {
- "begin": "\\(",
- "end": "\\)"
- },
- {
- "begin": "\\[",
- "end": "\\]"
- },
- {
- "begin": "\\{",
- "end": "\\}"
- },
- {
- "begin": "\\<",
- "end": "\\>"
- }
- ]
- },
- {
- "className": "string",
- "begin": "~[a-z](?=[\/|([{<\"'])",
- "contains": [
- {
- "endsParent": true,
- "contains": [
- {
- "contains": [
- {
- "$ref": "#contains.0.contains.0"
- },
- {
- "$ref": "#contains.0.contains.1"
- }
- ],
- "variants": [
- {
- "begin": "\"",
- "end": "\""
- },
- {
- "begin": "'",
- "end": "'"
- },
- {
- "begin": "\\\/",
- "end": "\\\/"
- },
- {
- "begin": "\\|",
- "end": "\\|"
- },
- {
- "begin": "\\(",
- "end": "\\)"
- },
- {
- "begin": "\\[",
- "end": "\\]"
- },
- {
- "begin": "\\{",
- "end": "\\}"
- },
- {
- "begin": "<",
- "end": ">"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "className": "comment",
- "begin": "#",
- "end": "$",
- "contains": [
- {
- "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
- },
- {
- "className": "doctag",
- "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
- "relevance": 0
- }
- ]
- },
- {
- "className": "class",
- "beginKeywords": "defimpl defmodule defprotocol defrecord",
- "end": "\\bdo\\b|$|;",
- "contains": [
- {
- "className": "title",
- "begin": "[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?",
- "relevance": 0,
- "endsParent": true
- }
- ]
- },
- {
- "className": "function",
- "beginKeywords": "def defp defmacro",
- "end": "\\B\\b",
- "contains": {
- "$ref": "#contains.4.contains"
- }
- },
- {
- "begin": "::"
- },
- {
- "className": "symbol",
- "begin": ":(?![\\s:])",
- "contains": [
- {
- "$ref": "#contains.0"
- },
- {
- "begin": "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-\/+%^&*~`|]|\\[\\]=?"
- }
- ],
- "relevance": 0
- },
- {
- "className": "symbol",
- "begin": "[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?:(?!:)",
- "relevance": 0
- },
- {
- "className": "number",
- "begin": "(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(.[0-9_]+([eE][-+]?[0-9]+)?)?)",
- "relevance": 0
- },
- {
- "className": "variable",
- "begin": "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
- },
- {
- "begin": "->"
- },
- {
- "begin": "(!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|\/=|\/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~)\\s*",
- "contains": [
- {
- "$ref": "#contains.3"
- },
- {
- "className": "regexp",
- "illegal": "\\n",
- "contains": [
- {
- "$ref": "#contains.0.contains.0"
- },
- {
- "$ref": "#contains.0.contains.1"
- }
- ],
- "variants": [
- {
- "begin": "\/",
- "end": "\/[a-z]*"
- },
- {
- "begin": "%r\\[",
- "end": "\\][a-z]*"
- }
- ]
- }
- ],
- "relevance": 0
- }
- ]
- }
|