11 lines
37 KiB
JavaScript
11 lines
37 KiB
JavaScript
|
import lua from './lua.mjs';
|
||
|
import './c.mjs';
|
||
|
|
||
|
const lang = Object.freeze({ "displayName": "Nginx", "fileTypes": ["conf.erb", "conf", "ngx", "nginx.conf", "mime.types", "fastcgi_params", "scgi_params", "uwsgi_params"], "foldingStartMarker": "\\{\\s*$", "foldingStopMarker": "^\\s*\\}", "name": "nginx", "patterns": [{ "match": "\\#.*", "name": "comment.line.number-sign" }, { "begin": "\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua(?:_block)?)\\s*\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "contentName": "meta.embedded.block.lua", "end": "\\}", "name": "meta.context.lua.nginx", "patterns": [{ "include": "source.lua" }] }, { "begin": "\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua)\\s*'", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "contentName": "meta.embedded.block.lua", "end": "'", "name": "meta.context.lua.nginx", "patterns": [{ "include": "source.lua" }] }, { "begin": "\\b(events) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.events.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(http) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.http.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(mail) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.mail.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(stream) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.stream.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(server) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.server.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(location) +([\\^]?~[\\*]?|=) +(.*?)\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" }, "2": { "name": "keyword.operator.nginx" }, "3": { "name": "string.regexp.nginx" } }, "end": "\\}", "name": "meta.context.location.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(location) +(.*?)\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" }, "2": { "name": "entity.name.context.location.nginx" } }, "end": "\\}", "name": "meta.context.location.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(limit_except) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.limit_except.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(if) +\\(", "beginCaptures": { "1": { "name": "keyword.control.nginx" } }, "end": "\\)", "name": "meta.context.if.nginx", "patterns": [{ "include": "#if_condition" }] }, { "begin": "\\b(upstream) +(.*?)\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" }, "2": { "name": "entity.name.context.location.nginx" } }, "end": "\\}", "name": "meta.context.upstream.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(types) +\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" } }, "end": "\\}", "name": "meta.context.types.nginx", "patterns": [{ "include": "$self" }] }, { "begin": "\\b(map) +(\\$)([A-Za-z0-9\\_]+) +(\\$)([A-Za-z0-9\\_]+) *\\{", "beginCaptures": { "1": { "name": "storage.type.directive.context.nginx" }, "2": { "name": "punctuation.definition.variable.nginx" }, "3": { "name": "variable.parameter.nginx" }, "4": { "name": "punctuation.definition.variable.nginx" }, "5": { "name": "variable.other.nginx" } }, "end": "\\}", "name": "meta.context.map.nginx", "patterns": [{ "include": "#values" }, { "match": ";", "name": "punctuation.terminator.nginx" }, { "match": "\\#.*", "name": "comment.line.number-sign" }] }, { "begin": "\\{", "end": "\\}", "name": "meta.block.nginx", "patt
|
||
|
var nginx = [
|
||
|
...lua,
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { nginx as default };
|