{
	"name": "script/code/language_definition.json",
	"default": {
		"script_module_separator": "\n--- scripts ---\n",
		"indent_text": "  ",
		"empty_table": "{}",
		"if_separator": " ",
		"parameter_separator": ", ",
		"calculation_separator": " ",
		"parameter_list_start": "(",
		"parameter_list_end": ")",
		"array_list_start": "{",
		"array_list_end": "}",
		"operator": {
			"*": "*",
			"/": "/",
			"+": "+",
			"-": "-",
			"^": "^"
		},
		"continue": {
			"and": "and",
			"or": "or"
		},
		"default_function_parameter": ["parameter"],
		"default_script_function_parameter": ["r"],
		"field": {},
		"for": {},
		"assignment": {
			"text": "{{1}} = {{3}}"
		},
		"compare_separator_before": {
			"text": " ("
		},
		"compare_separator_after": {
			"text": ") "
		},
		"compare": {
			"text": "{{1}} {{comparison}} {{3}}"
		}
	},
	"lua": {
		"file_suffix": ".lua",
		"single_line_comment": "-- ",
		"local_definition": "local ",
		"comparison": {
			"==": "==",
			"#": "~=",
			"<>": "~=",
			">": ">",
			"<": "<",
			">=": ">=",
			"<=": "<="
		},
		"file_start": {
			"text": "--- {{file_name}}{{file_suffix}}\n-- ma: generated from json\n-- @module {{module_name}}\n\nlocal {{module_name}} = {}\n"
		},
		"script_file_start": {
			"text": "--- {{file_name}}{{file_suffix}}\n-- ma: generated from json\n-- @module {{module_name}}\n\nlocal {{module_name}} = {}\nlocal script = {}\n"
		},
		"file_end": {
			"text": "\nreturn {{module_name}}\n-- end: {{file_name}}{{file_suffix}}"
		},
		"script_file_end": {
			"text": "\n{{module_name}}.script = script\nreturn {{module_name}}\n-- end: {{file_name}}{{file_suffix}}"
		},
		"require": {
			"text": "local {{module_name}} = require \"{{module_path}}\"\n"
		},
		"function": {
			"text": "{{function_name}}({{parameter}})"
		},
		"function_start": {
			"text": "\nfunction {{function_name}}({{parameter}})\n",
			"indent_after": 1
		},
		"function_end": {
			"indent_before": -1,
			"text": "end\n"
		},
		"if": {
			"text": "if {{2}} then\n",
			"indent_after": 1
		},
		"elseif": {
			"text_before": "\n",
			"indent_before": -1,
			"text": "elseif {{2}} then\n",
			"indent_after": 1
		},
		"else": {
			"text_before": "\n",
			"indent_before": -1,
			"text": "else\n",
			"indent_after": 1
		},
		"endif": {
			"text_before": "\n",
			"indent_before": -1,
			"text": "end"
		}
	},
	"coffee": {
		"script_module_separator": "\n# --- scripts ---\n",
		"file_suffix": ".coffee",
		"single_line_comment": "# ",
		"local_definition": "",
		"comparison": {
			"==": "is",
			"<>": "isnt",
			">": ">",
			"<": "<",
			">=": ">=",
			"<=": "<="
		},
		"file_start": {
			"text": "# {{file_name}}{{file_suffix}}\n# ma: generated from json\n# @module {{module_name}}\n\n{{module_name}} = {}\n\n"
		},
		"file_end": {
			"text": "\n{{module_name}}.script = script\nmodule.exports {{module_name}}\n# end: {{file_name}}{{file_suffix}}"
		},
		"require": {
			"text": "{{module_name}} = require \"{{module_name}}\"\n"
		},
		"function": {
			"text": "{{function_name}}({{parameter}})"
		},
		"function_start": {
			"text": "\n{{function_name}} = ({{parameter}}) ->\n",
			"indent_after": 1
		},
		"function_end": {
			"indent_after": -1,
			"text": "return\n"
		},
		"if": {
			"text": "if {{2}}\n",
			"indent_after": 1
		},
		"elseif": {
			"text_before": "\n",
			"indent_before": -1,
			"text": "else if {{2}}\n",
			"indent_after": 1
		},
		"else": {
			"text_before": "\n",
			"indent_before": -1,
			"text": "else\n",
			"indent_after": 1
		},
		"endif": {
			"text_before": "",
			"indent_before": -1,
			"text": ""
		}
	}
}
