| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- {
- "aliases": [
- "nginxconf"
- ],
- "contains": [
- {
- "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
- }
- ]
- },
- {
- "begin": "[a-zA-Z_]\\w*\\s+{",
- "returnBegin": true,
- "end": "{",
- "contains": [
- {
- "className": "section",
- "begin": "[a-zA-Z_]\\w*"
- }
- ],
- "relevance": 0
- },
- {
- "begin": "[a-zA-Z_]\\w*\\s",
- "end": ";|{",
- "returnBegin": true,
- "contains": [
- {
- "className": "attribute",
- "begin": "[a-zA-Z_]\\w*",
- "starts": {
- "endsWithParent": true,
- "lexemes": "[a-z\/_]+",
- "keywords": {
- "literal": "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll \/dev\/poll"
- },
- "relevance": 0,
- "illegal": "=>",
- "contains": [
- {
- "$ref": "#contains.0"
- },
- {
- "className": "string",
- "contains": [
- {
- "begin": "\\\\[\\s\\S]",
- "relevance": 0
- },
- {
- "className": "variable",
- "variants": [
- {
- "begin": "\\$\\d+"
- },
- {
- "begin": "\\$\\{",
- "end": "}"
- },
- {
- "begin": "[\\$\\@][a-zA-Z_]\\w*"
- }
- ]
- }
- ],
- "variants": [
- {
- "begin": "\"",
- "end": "\""
- },
- {
- "begin": "'",
- "end": "'"
- }
- ]
- },
- {
- "begin": "([a-z]+):\/",
- "end": "\\s",
- "endsWithParent": true,
- "excludeEnd": true,
- "contains": [
- {
- "$ref": "#contains.2.contains.0.starts.contains.1.contains.1"
- }
- ]
- },
- {
- "className": "regexp",
- "contains": [
- {
- "$ref": "#contains.2.contains.0.starts.contains.1.contains.0"
- },
- {
- "$ref": "#contains.2.contains.0.starts.contains.1.contains.1"
- }
- ],
- "variants": [
- {
- "begin": "\\s\\^",
- "end": "\\s|{|;",
- "returnEnd": true
- },
- {
- "begin": "~\\*?\\s+",
- "end": "\\s|{|;",
- "returnEnd": true
- },
- {
- "begin": "\\*(\\.[a-z\\-]+)+"
- },
- {
- "begin": "([a-z\\-]+\\.)+\\*"
- }
- ]
- },
- {
- "className": "number",
- "begin": "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
- },
- {
- "className": "number",
- "begin": "\\b\\d+[kKmMgGdshdwy]*\\b",
- "relevance": 0
- },
- {
- "$ref": "#contains.2.contains.0.starts.contains.1.contains.1"
- }
- ]
- }
- }
- ],
- "relevance": 0
- }
- ],
- "illegal": "[^\\s\\}]"
- }
|