Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
{"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/0cb968a4b8fdb2e0656b95342cdffbeff04a1248","name":"fsharp","scopeName":"source.fsharp","patterns":[{"include":"#compiler_directives"},{"include":"#comments"},{"include":"#constants"},{"include":"#strings"},
"Here we need the \\w modifier in order to check that the words are allowed"
,
"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"
:
"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"
:
"#keywords"
}
]
}
,
"anonymous_functions"
:
{
"patterns"
:
[
{
"name"
:
"function.anonymous"
,
"begin"
:
"\\b(fun)\\b"
,
"end"
:
"(->)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.fsharp"
}
}
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.arrow.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#comments"
}
,
{
"begin"
:
"(\\()"
,
"end"
:
"\\s*(?=(->))"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.arrow.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#member_declaration"
}
]
}
,
{
"include"
:
"#variables"
}
]
}
]
}
,
"attributes"
:
{
"patterns"
:
[
{
"name"
:
"support.function.attribute.fsharp"
,
"begin"
:
"\\[\\<"
,
"end"
:
"\\>\\]|\\]"
,
"patterns"
:
[
{
"include"
:
"$self"
}
]
}
]
}
,
"comments"
:
{
"patterns"
:
[
{
"name"
:
"comment.block.markdown.fsharp"
,
"begin"
:
"^\\s*(\\(\\*\\*(?!\\)))((?!\\*\\)).)*$"
,
"while"
:
"^(?!\\s*(\\*)+\\)\\s*$)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"comment.block.fsharp"
}
}
,
"whileCaptures"
:
{
"1"
:
{
"name"
:
"comment.block.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"text.html.markdown"
}
]
}
,
{
"name"
:
"comment.block.fsharp"
,
"begin"
:
"(\\(\\*(?!\\)))"
,
"end"
:
"(\\*+\\))"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"comment.block.fsharp"
}
}
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"comment.block.fsharp"
}
}
,
"patterns"
:
[
{
"comments"
:
"Capture // when inside of (* *) like that the rule which capture comments starting by // is not trigger. See https://github.com/ionide/ionide-fsgrammar/issues/155"
,
"name"
:
"fast-capture.comment.line.double-slash.fsharp"
,
"match"
:
"//"
}
,
{
"comments"
:
"Capture (*) when inside of (* *) so that it doesn't prematurely end the comment block."
"Here we need the \\w modifier in order to check that the words isn't blacklisted"
,
"captures"
:
{
"1"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
}
,
{
"include"
:
"#keywords"
}
]
}
,
"common_binding_definition"
:
{
"patterns"
:
[
{
"include"
:
"#comments"
}
,
{
"include"
:
"#attributes"
}
,
{
"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"
:
"(\\))\\s*((?=,)|(?=\\=))"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"patterns"
:
[
{
"match"
:
"(\\^[[:alpha:]0-9'._]+)"
,
"captures"
:
{
"1"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
}
,
{
"include"
:
"#variables"
}
,
{
"include"
:
"#keywords"
}
]
}
,
{
"begin"
:
"(:)\\s*(\\()"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"end"
:
"(\\)\\s*(([?[:alpha:]0-9'`^._ ]*)))"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#tuple_signature"
}
]
}
,
{
"begin"
:
"(:)\\s*(\\^[[:alpha:]0-9'._]+)\\s*(when)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"entity.name.type.fsharp"
}
,
"3"
:
{
"name"
:
"keyword.fsharp"
}
}
,
"end"
:
"(?=:)"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"patterns"
:
[
{
"name"
:
"keyword.fsharp"
,
"match"
:
"\\b(and|when|or)\\b"
}
,
{
"comment"
:
"Because we first capture the keywords, we can capture what looks like a word and assume it's an entity definition"
,
"match"
:
"([[:alpha:]0-9'^._]+)"
,
"captures"
:
{
"1"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
}
,
{
"name"
:
"keyword.symbol.fsharp"
,
"match"
:
"(\\(|\\))"
}
]
}
,
{
"match"
:
"(:)\\s*([?[:alpha:]0-9'`^._ ]+)(\\|\\s*(null))?"
,
"captures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"entity.name.type.fsharp"
}
,
"4"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
}
,
{
"match"
:
"(->)\\s*(\\()?\\s*([?[:alpha:]0-9'`^._ ]+)*"
,
"captures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.arrow.fsharp"
}
,
"2"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"3"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
}
,
{
"begin"
:
"(\\*)\\s*(\\()"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"end"
:
"(\\)\\s*(([?[:alpha:]0-9'`^._ ]+))*)"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#tuple_signature"
}
]
}
,
{
"begin"
:
"(\\*)(\\s*([?[:alpha:]0-9'`^._ ]+))*"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
,
"2"
:
{
"name"
:
"entity.name.type.fsharp"
}
}
,
"end"
:
"(?==)|(?=\\))"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#tuple_signature"
}
]
}
,
{
"begin"
:
"(<+(?![[:space:]]*\\)))"
,
"beginComment"
:
"The group (?![[:space:]]*\\) is for protection against overload operator. static member (<)"
,
"end"
:
"((?<!:)>|\\))"
,
"endComment"
:
"The group (?<!:) prevent us from stopping on :> when using SRTP synthax"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#generic_declaration"
}
]
}
,
{
"include"
:
"#anonymous_record_declaration"
}
,
{
"begin"
:
"({)"
,
"end"
:
"(})"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"keyword.symbol.fsharp"
}
}
,
"patterns"
:
[
{
"include"
:
"#record_signature"
}
]
}
,
{
"include"
:
"#definition"
}
,
{
"include"
:
"#variables"
}
,
{
"include"
:
"#keywords"
}
]
}
,
"definition"
:
{
"patterns"
:
[
{
"name"
:
"binding.fsharp"
,
"begin"
:
"\\b(let mutable|static let mutable|static let|let inline|let|and inline|and|member val|member inline|static member inline|static member val|static member|default|member|override|let!)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?"
"\\b(static val mutable|val mutable|val inline|val)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9,\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9,\\._`\\s]+|(?<=,)\\s)*)?"