Skip to content

Commit

Permalink
Fix bad syntaxes. (#248)
Browse files Browse the repository at this point in the history
Fixes #246.
Fixes #247.
  • Loading branch information
floitsch authored Feb 19, 2024
1 parent 6e23f81 commit 746ac26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vscode/syntaxes/toit.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"name": "constant.language.import-export-all.as.toit",
"match": "\\b(?<!)as(?!-)\\b"
"match": "\\b(?<!-)as(?!-)\\b"
},
{
"name": "constant.language.import-export-all.import_all.toit",
Expand Down Expand Up @@ -324,7 +324,7 @@
{
"name": "entity.name.type.annotation.toit",
"begin": "(/|->) *(?=[\\p{L}_])",
"end": "(?=[^\\w-.?])",
"end": "(?=[^\\w\\-.?])",
"beginCaptures": {
"1": {
"name": "keyword.control.return_type.toit"
Expand Down
4 changes: 2 additions & 2 deletions vscode/syntaxes/toit.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repository:
- name: constant.language.import-export-all.show.toit
match: \b(?<!-)show(?!-)\b
- name: constant.language.import-export-all.as.toit
match: \b(?<!)as(?!-)\b
match: \b(?<!-)as(?!-)\b
- name: constant.language.import-export-all.import_all.toit
match: \*

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

0 comments on commit 746ac26

Please sign in to comment.