Skip to content

Commit f5082e0

Browse files
committed
[fsharp] update grammar
1 parent 6f6a74f commit f5082e0

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

extensions/fsharp/syntaxes/fsharp.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/ionide/ionide-fsgrammar/commit/826aa0690b4a1fb536485cc2806fa73b451fcee7",
7+
"version": "https://github.com/ionide/ionide-fsgrammar/commit/7a24912ecdc886e4d973d6d3ab8df20a0feeda76",
88
"name": "fsharp",
99
"scopeName": "source.fsharp",
1010
"fileTypes": [
@@ -330,7 +330,12 @@
330330
"1": {
331331
"name": "punctuation.definition.string.end.fsharp"
332332
}
333-
}
333+
},
334+
"patterns": [
335+
{
336+
"include": "#string_formatter"
337+
}
338+
]
334339
},
335340
{
336341
"name": "string.quoted.double.fsharp",
@@ -358,11 +363,27 @@
358363
{
359364
"name": "invalid.illeagal.character.string.fsharp",
360365
"match": "\\\\(?![\\\\''ntbr]|u[a-fA-F0-9]{4}|u[a-fA-F0-9]{8})."
366+
},
367+
{
368+
"include": "#string_formatter"
361369
}
362370
]
363371
}
364372
]
365373
},
374+
"string_formatter": {
375+
"patterns": [
376+
{
377+
"name": "entity.name.type.format.specifier.fsharp",
378+
"match": "(%0?-?(\\d+)?((a|t)|(\\.\\d+)?(f|F|e|E|g|G|M)|(b|c|s|d|i|x|X|o)|(s|b|O)|(\\+?A)))",
379+
"captures": {
380+
"1": {
381+
"name": "keyword.other.format.specifier.fsharp"
382+
}
383+
}
384+
}
385+
]
386+
},
366387
"variables": {
367388
"patterns": [
368389
{

0 commit comments

Comments
 (0)