Skip to content

Commit 746ac26

Browse files
authored
Fix bad syntaxes. (#248)
Fixes #246. Fixes #247.
1 parent 6e23f81 commit 746ac26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vscode/syntaxes/toit.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"name": "constant.language.import-export-all.as.toit",
43-
"match": "\\b(?<!)as(?!-)\\b"
43+
"match": "\\b(?<!-)as(?!-)\\b"
4444
},
4545
{
4646
"name": "constant.language.import-export-all.import_all.toit",
@@ -324,7 +324,7 @@
324324
{
325325
"name": "entity.name.type.annotation.toit",
326326
"begin": "(/|->) *(?=[\\p{L}_])",
327-
"end": "(?=[^\\w-.?])",
327+
"end": "(?=[^\\w\\-.?])",
328328
"beginCaptures": {
329329
"1": {
330330
"name": "keyword.control.return_type.toit"

vscode/syntaxes/toit.tmLanguage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repository:
4444
- name: constant.language.import-export-all.show.toit
4545
match: \b(?<!-)show(?!-)\b
4646
- name: constant.language.import-export-all.as.toit
47-
match: \b(?<!)as(?!-)\b
47+
match: \b(?<!-)as(?!-)\b
4848
- name: constant.language.import-export-all.import_all.toit
4949
match: \*
5050

@@ -216,7 +216,7 @@ repository:
216216
patterns:
217217
- name: entity.name.type.annotation.toit
218218
begin: '(/|->) *(?=[\p{L}_])'
219-
end: (?=[^\w-.?])
219+
end: (?=[^\w\-.?])
220220
beginCaptures:
221221
1:
222222
name: keyword.control.return_type.toit

0 commit comments

Comments
 (0)