You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.3 KiB
JSON
85 lines
2.3 KiB
JSON
{
|
|
"aliases": [
|
|
"nixos"
|
|
],
|
|
"keywords": {
|
|
"keyword": "rec with let in inherit assert if else then",
|
|
"literal": "true false or and null",
|
|
"built_in": "import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"
|
|
},
|
|
"contains": [
|
|
{
|
|
"className": "number",
|
|
"begin": "\\b\\d+(\\.\\d+)?",
|
|
"relevance": 0
|
|
},
|
|
{
|
|
"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": "comment",
|
|
"begin": "\/\\*",
|
|
"end": "\\*\/",
|
|
"contains": [
|
|
{
|
|
"$ref": "#contains.1.contains.0"
|
|
},
|
|
{
|
|
"className": "doctag",
|
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
|
"relevance": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"className": "string",
|
|
"contains": [
|
|
{
|
|
"className": "subst",
|
|
"begin": "\\$\\{",
|
|
"end": "}",
|
|
"keywords": {
|
|
"$ref": "#keywords"
|
|
},
|
|
"contains": {
|
|
"$ref": "#contains"
|
|
}
|
|
}
|
|
],
|
|
"variants": [
|
|
{
|
|
"begin": "''",
|
|
"end": "''"
|
|
},
|
|
{
|
|
"begin": "\"",
|
|
"end": "\""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"begin": "[a-zA-Z0-9\\-_]+(\\s*=)",
|
|
"returnBegin": true,
|
|
"relevance": 0,
|
|
"contains": [
|
|
{
|
|
"className": "attr",
|
|
"begin": "\\S+"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|