Skip to content

Commit 2a930e3

Browse files
committed
feat: update language pack grammars
1 parent f959a44 commit 2a930e3

21 files changed

Lines changed: 2629 additions & 1181 deletions

org.eclipse.tm4e.language_pack/README.md

Lines changed: 61 additions & 61 deletions
Large diffs are not rendered by default.

org.eclipse.tm4e.language_pack/about.html

Lines changed: 61 additions & 61 deletions
Large diffs are not rendered by default.

org.eclipse.tm4e.language_pack/syntaxes/dart/dart.tmLanguage.json

Lines changed: 7 additions & 3 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/dart-lang/dart-syntax-highlight/commit/0a6648177bdbb91a4e1a38c16e57ede0ccba4f18",
7+
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/272e2f89f85073c04b7e15b582257f76d2489970",
88
"name": "Dart",
99
"scopeName": "source.dart",
1010
"patterns": [
@@ -308,7 +308,7 @@
308308
},
309309
{
310310
"name": "keyword.control.dart",
311-
"match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while|when)\\b(?!\\$)"
311+
"match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\\b(?!\\$)"
312312
},
313313
{
314314
"name": "keyword.control.dart",
@@ -322,9 +322,13 @@
322322
"name": "keyword.control.new.dart",
323323
"match": "(?<!\\$)\\b(new)\\b(?!\\$)"
324324
},
325+
{
326+
"name": "keyword.control.return.dart",
327+
"match": "(?<!\\$)\\b(return)\\b(?!\\$)"
328+
},
325329
{
326330
"name": "keyword.declaration.dart",
327-
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
331+
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)"
328332
},
329333
{
330334
"name": "storage.modifier.dart",

org.eclipse.tm4e.language_pack/syntaxes/docker/dockerfile.language-configuration.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
["(", ")"],
2121
["\"", "\""],
2222
["'", "'"]
23-
]
24-
}
23+
],
24+
"indentationRules": {
25+
"increaseIndentPattern": "^\\s*.*(:|-) ?(&amp;\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$",
26+
"decreaseIndentPattern": "^\\s+\\}$"
27+
}
28+
}

0 commit comments

Comments
 (0)