{
	"information_for_contributors": [
		"This file has been converted from https://github.com/ionide/ionide-fsgrammar/blob/master/grammars/fsharp.json",
		"If you want to provide a fix or improvement, please create a pull request against the original repository.",
		"Once accepted there, we are happy to receive an update request."
	],
	"version": "https://github.com/ionide/ionide-fsgrammar/commit/8825a76681cdc14801b5d9490372ff67ec6b9711",
	"name": "fsharp",
	"scopeName": "source.fsharp",
	"patterns": [
		{
			"include": "#compiler_directives"
		},
		{
			"include": "#comments"
		},
		{
			"include": "#constants"
		},
		{
			"include": "#strings"
		},
		{
			"include": "#chars"
		},
		{
			"include": "#double_tick"
		},
		{
			"include": "#definition"
		},
		{
			"include": "#abstract_definition"
		},
		{
			"include": "#attributes"
		},
		{
			"include": "#modules"
		},
		{
			"include": "#anonymous_functions"
		},
		{
			"include": "#du_declaration"
		},
		{
			"include": "#record_declaration"
		},
		{
			"include": "#records"
		},
		{
			"include": "#strp_inlined"
		},
		{
			"include": "#keywords"
		},
		{
			"include": "#cexprs"
		},
		{
			"include": "#text"
		}
	],
	"repository": {
		"strp_inlined_body": {
			"patterns": [
				{
					"include": "#comments"
				},
				{
					"include": "#anonymous_functions"
				},
				{
					"match": "(\\^[[:alpha:]0-9'._]+)",
					"captures": {
						"1": {
							"name": "entity.name.type.fsharp"
						}
					}
				},
				{
					"name": "keyword.fsharp",
					"match": "\\b(and|when|or)\\b"
				},
				{
					"begin": "(\\()",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"end": "(\\))",
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"include": "#strp_inlined_body"
						}
					]
				},
				{
					"match": "(static member|member)\\s*([[:alpha:]0-9'`<>^._]+|``[[:alpha:]0-9' <>^._]+``)\\s*(:)",
					"captures": {
						"1": {
							"name": "keyword.fsharp"
						},
						"2": {
							"name": "variable.fsharp"
						},
						"3": {
							"name": "keyword.symbol.fsharp"
						}
					}
				},
				{
					"include": "#compiler_directives"
				},
				{
					"include": "#constants"
				},
				{
					"include": "#strings"
				},
				{
					"include": "#chars"
				},
				{
					"include": "#double_tick"
				},
				{
					"include": "#keywords"
				},
				{
					"include": "#text"
				},
				{
					"include": "#definition"
				},
				{
					"include": "#attributes"
				},
				{
					"include": "#keywords"
				},
				{
					"include": "#cexprs"
				},
				{
					"include": "#text"
				}
			]
		},
		"strp_inlined": {
			"patterns": [
				{
					"begin": "(\\()",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"end": "(\\))",
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"include": "#strp_inlined_body"
						}
					]
				}
			]
		},
		"generic_declaration": {
			"patterns": [
				{
					"comments": "SRTP syntax support",
					"begin": "(:)\\s*(\\()\\s*(static member|member)",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						},
						"2": {
							"name": "keyword.symbol.fsharp"
						},
						"3": {
							"name": "keyword.fsharp"
						}
					},
					"end": "(\\))",
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"begin": "(\\()",
							"beginCaptures": {
								"1": {
									"name": "keyword.symbol.fsharp"
								}
							},
							"end": "(\\))",
							"endCaptures": {
								"1": {
									"name": "keyword.symbol.fsharp"
								}
							},
							"patterns": [
								{
									"include": "#member_declaration"
								}
							]
						},
						{
							"match": "(('|\\^)[[:alpha:]0-9'._]+)",
							"captures": {
								"1": {
									"name": "entity.name.type.fsharp"
								}
							}
						},
						{
							"include": "#variables"
						},
						{
							"include": "#keywords"
						}
					]
				},
				{
					"name": "keyword.fsharp",
					"match": "\\b(private|to|public|internal|function|yield!|yield|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let\\!|return\\!|return|interface|with|abstract|enum|member|try|finally|and|when|or|use|use\\!|struct|while|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!')\\b"
				},
				{
					"name": "keyword.fsharp",
					"match": ":"
				},
				{
					"include": "#constants"
				},
				{
					"match": "(('|\\^)[[:alpha:]0-9'._]+)",
					"captures": {
						"1": {
							"name": "entity.name.type.fsharp"
						}
					}
				},
				{
					"begin": "(<)",
					"end": "(>)",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"match": "(('|\\^)[[:alpha:]0-9'._]+)",
							"captures": {
								"1": {
									"name": "entity.name.type.fsharp"
								}
							}
						},
						{
							"include": "#tuple_signature"
						},
						{
							"include": "#generic_declaration"
						}
					]
				},
				{
					"begin": "(\\()",
					"end": "(\\))",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"match": "(([?[:alpha:]0-9'`^._ ]+))+",
							"captures": {
								"1": {
									"name": "entity.name.type.fsharp"
								}
							}
						},
						{
							"include": "#tuple_signature"
						}
					]
				},
				{
					"match": "(?!when|and|or\\b)\\b([\\w0-9'`^._]+)",
					"comments": "Here we need the \\w modifier in order to check that the words isn't blacklisted",
					"captures": {
						"1": {
							"name": "entity.name.type.fsharp"
						}
					}
				},
				{
					"match": "(\\|)",
					"comments": "Prevent captures of `|>` as a keyword when defining custom operator like `<|>`",
					"captures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					}
				},
				{
					"include": "#keywords"
				}
			]
		},
		"anonymous_record_declaration": {
			"begin": "(\\{\\|)",
			"end": "(\\|\\})",
			"beginCaptures": {
				"1": {
					"name": "keyword.symbol.fsharp"
				}
			},
			"endCaptures": {
				"1": {
					"name": "keyword.symbol.fsharp"
				}
			},
			"patterns": [
				{
					"match": "[[:alpha:]0-9'`^_ ]+(:)",
					"captures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					}
				},
				{
					"match": "([[:alpha:]0-9'`^_ ]+)",
					"captures": {
						"1": {
							"name": "entity.name.type.fsharp"
						}
					}
				},
				{
					"include": "#anonymous_record_declaration"
				},
				{
					"include": "#keywords"
				}
			]
		},
		"record_signature": {
			"patterns": [
				{
					"match": "[[:alpha:]0-9'`^_ ]+(=)([[:alpha:]0-9'`^_ ]+)",
					"captures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						},
						"2": {
							"name": "variable.parameter.fsharp"
						}
					}
				},
				{
					"begin": "({)",
					"end": "(})",
					"beginCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"endCaptures": {
						"1": {
							"name": "keyword.symbol.fsharp"
						}
					},
					"patterns": [
						{
							"match": "[[:alpha:]0-9'`^_ ]+(=)([[:alpha:]0-9'`^_ ]+)",
							"captures": {
								"1": {
									"name": "keyword.symbol.fsharp"
								},
								"2": {
									"name": "variable.parameter.fsharp"
								}
							}
						},
						{
							"include": "#record_signature"
						}
					]
				},
				{
					"include": "#keywords"
				}
			]
		},
		"tuple_signature": {
			"patterns": [
				{
					"match": "(([?[:alpha:]0-9'`^._ ]+))+",
					"captures": {
						"1": {
							"name": "entity.name.type.fsharp"
						}
					}
				},
				{
					"begin": "(\\()",
					"end": "(\\))",
					"beginCaptures": {
						"1": {
							"name": "keywo&?1