Skip to content

Commit

Permalink
Add support for top-level utests.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwikman committed Jul 28, 2020
1 parent ec85b62 commit bcf7485
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mcore.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ contexts:
- include: top-recursive
- include: top-con
- include: top-type
- include: top-utest
- include: top-mexpr

top-level-pushed:
Expand All @@ -54,6 +55,7 @@ contexts:
- include: top-recursive-pushed
- include: top-con-pushed
- include: top-type-pushed
- include: top-utest-pushed
- include: top-mexpr-pushed

### ###
Expand Down Expand Up @@ -229,6 +231,19 @@ contexts:
scope: keyword.directive.type.mcore
set: [opttypetype-pushed-breaktoplevel, identifier-pushed]

### ###
### Top-Level UTest Expressions ###
### ###
top-utest:
- match: '\b(utest)\b'
scope: keyword.directive.utest.mcore
push: [mexpr-pushed-breaktoplevel, mexpr-pushed-breakwith]

top-utest-pushed:
- match: '\b(utest)\b'
scope: keyword.directive.utest.mcore
set: [mexpr-pushed-breaktoplevel, mexpr-pushed-breakwith]

### ###
### Top-Level MExpr Expressions ###
### ###
Expand Down
15 changes: 15 additions & 0 deletions src/mcore/mcore.sublime-syntax-base
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ contexts:
- include: top-recursive
- include: top-con
- include: top-type
- include: top-utest
- include: top-mexpr

top-level-pushed:
Expand All @@ -54,6 +55,7 @@ contexts:
- include: top-recursive-pushed
- include: top-con-pushed
- include: top-type-pushed
- include: top-utest-pushed
- include: top-mexpr-pushed

### ###
Expand Down Expand Up @@ -229,6 +231,19 @@ contexts:
scope: keyword.directive.type.mcore
set: [opttypetype-pushed-breaktoplevel, identifier-pushed]

### ###
### Top-Level UTest Expressions ###
### ###
top-utest:
- match: '\b(utest)\b'
scope: keyword.directive.utest.mcore
push: [mexpr-pushed-breaktoplevel, mexpr-pushed-breakwith]

top-utest-pushed:
- match: '\b(utest)\b'
scope: keyword.directive.utest.mcore
set: [mexpr-pushed-breaktoplevel, mexpr-pushed-breakwith]

### ###
### Top-Level MExpr Expressions ###
### ###
Expand Down

0 comments on commit bcf7485

Please sign in to comment.