Skip to content

Commit

Permalink
Provide test for microsoft#147
Browse files Browse the repository at this point in the history
Implements a test for issue microsoft#147, to insure that multiple substitutions
on a single scope specification are handled.
  • Loading branch information
msftrncs committed Feb 27, 2021
1 parent 357b599 commit 30759cc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test-cases/suite1/fixtures/147.grammar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scopeName": "source.test",
"patterns": [
{
"match": "\\b(?i:function)\\b",
"name": "storage.type.$0 keyword.declaration.$0"
}
]
}
22 changes: 22 additions & 0 deletions test-cases/suite1/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -1806,5 +1806,27 @@
]
}
]
},
{
"grammars": [
"fixtures/147.grammar.json"
],
"grammarPath": "fixtures/147.grammar.json",
"desc": "Issue #147",
"lines": [
{
"line": "Function",
"tokens": [
{
"value": "Function",
"scopes": [
"source.test",
"storage.type.Function",
"keyword.declaration.Function"
]
}
]
}
]
}
]

0 comments on commit 30759cc

Please sign in to comment.