Skip to content

Commit 90a8cdb

Browse files
committed
[fsharp] Update grammar to ionide/ionide-fsgrammar@16d4cc8 (2017-01-17)
1 parent 83bcded commit 90a8cdb

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

extensions/fsharp/syntaxes/fsharp.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
{
6060
"name": "function.anonymous",
6161
"begin": "\\b(fun)\\b",
62-
"end": "(->)",
62+
"end": "[(->)\\n]",
6363
"beginCaptures": {
6464
"1": {
6565
"name": "keyword.other.function-definition.fsharp"
@@ -139,7 +139,7 @@
139139
"patterns": [
140140
{
141141
"name": "binding.fsharp",
142-
"begin": "\\b(val mutable|val|let mutable|let inline|let|member|static member|override|let!)(\\s+rec|mutable)?(\\s+private|internal|public)?\\s+(\\([^\\s-]*\\)|[_a-zA-Z]([_a-zA-Z0-9,\\.]|(?<=,)\\s)*)",
142+
"begin": "\\b(val mutable|val|let mutable|let inline|let|member|static member|override|let!)(\\s+rec|mutable)?(\\s+private|internal|public)?\\s+(\\([^\\s-]*\\)|[_[:alpha:]]([_[:alpha:]0-9,\\.]|(?<=,)\\s)*)",
143143
"end": "((``.*``)|(with)|=|$)",
144144
"beginCaptures": {
145145
"1": {
@@ -195,7 +195,7 @@
195195
"patterns": [
196196
{
197197
"name": "entity.name.section.fsharp",
198-
"begin": "\\b(namespace|module)(\\s+public|internal|private)?\\s+([a-zA-Z][a-zA-Z0-9'_. ]*)",
198+
"begin": "\\b(namespace|module)(\\s+public|internal|private)?\\s+([[:alpha:]][[:alpha:]0-9'_. ]*)",
199199
"end": "(\\s|$)",
200200
"beginCaptures": {
201201
"1": {
@@ -211,7 +211,7 @@
211211
"patterns": [
212212
{
213213
"name": "entity.name.section.fsharp",
214-
"match": "(\\.)([A-Z][a-zA-Z0-9'_]*)",
214+
"match": "(\\.)([A-Z][[:alpha:]0-9'_]*)",
215215
"captures": {
216216
"1": {
217217
"name": "punctuation.separator.namespace-reference.fsharp"
@@ -225,7 +225,7 @@
225225
},
226226
{
227227
"name": "namespace.open.fsharp",
228-
"begin": "\\b(open)\\s+([A-Z][a-zA-Z0-9'_]*)(?=(\\.[A-Z][a-zA-Z0-9_]*)*)",
228+
"begin": "\\b(open)\\s+([[:alpha:]][[:alpha:]0-9'_]*)(?=(\\.[A-Z][[:alpha:]0-9_]*)*)",
229229
"end": "(\\s|$)",
230230
"beginCaptures": {
231231
"1": {
@@ -238,7 +238,7 @@
238238
"patterns": [
239239
{
240240
"name": "entity.name.section.fsharp",
241-
"match": "(\\.)([a-zA-Z][a-zA-Z0-9'_]*)",
241+
"match": "(\\.)([[:alpha:]][[:alpha:]0-9'_]*)",
242242
"captures": {
243243
"1": {
244244
"name": "punctuation.separator.namespace-reference.fsharp"
@@ -252,7 +252,7 @@
252252
},
253253
{
254254
"name": "namespace.alias.fsharp",
255-
"begin": "^\\s*(module)\\s+([A-Z][a-zA-Z0-9'_]*)\\s*(=)\\s*([A-Z][a-zA-Z0-9'_]*)",
255+
"begin": "^\\s*(module)\\s+([A-Z][[:alpha:]0-9'_]*)\\s*(=)\\s*([A-Z][[:alpha:]0-9'_]*)",
256256
"end": "(\\s|$)",
257257
"beginCaptures": {
258258
"1": {
@@ -271,7 +271,7 @@
271271
"patterns": [
272272
{
273273
"name": "entity.name.section.fsharp",
274-
"match": "(\\.)([A-Z][a-zA-Z0-9'_]*)",
274+
"match": "(\\.)([A-Z][[:alpha:]0-9'_]*)",
275275
"captures": {
276276
"1": {
277277
"name": "punctuation.separator.namespace-reference.fsharp"
@@ -441,7 +441,7 @@
441441
},
442442
{
443443
"name": "variable.parameter.fsharp",
444-
"match": "[a-zA-Z']\\w*"
444+
"match": "[[:alpha:]']\\w*"
445445
}
446446
]
447447
},
@@ -468,7 +468,7 @@
468468
"patterns": [
469469
{
470470
"name": "record.fsharp",
471-
"match": "(type)[\\s]+(private|internal|public)?[\\s]*([a-zA-Z0-9'<>^:,. ]+)[\\s]*(\\([a-zA-Z0-9'<>^:,. ]+\\))?[\\s]*((with)|(as [a-zA-Z0-9']+)|(=)|(\\(\\)))",
471+
"match": "(type)[\\s]+(private|internal|public)?[\\s]*([[:alpha:]0-9'<>^:,. ]+)[\\s]*(\\([[:alpha:]0-9'<>^:,. ]+\\))?[\\s]*((with)|(as [[:alpha:]0-9']+)|(=)|(\\(\\)))",
472472
"captures": {
473473
"1": {
474474
"name": "keyword.other.fsharp"
@@ -502,7 +502,7 @@
502502
"patterns": [
503503
{
504504
"name": "cexpr.fsharp",
505-
"match": "\\b([a-zA-Z]*\\s+\\{)",
505+
"match": "\\b([[:alpha:]]*\\s+\\{)",
506506
"captures": {
507507
"1": {
508508
"name": "keyword.other.fsharp"
@@ -533,5 +533,5 @@
533533
]
534534
}
535535
},
536-
"version": "https://github.com/ionide/ionide-fsgrammar/commit/864bfd9a6e7f4bfa648eaddba19e16d5a81103a1"
536+
"version": "https://github.com/ionide/ionide-fsgrammar/commit/16d4cc8cb0224d8861a7b48107ac102e3f51579a"
537537
}

0 commit comments

Comments
 (0)