Skip to content

Commit b25bf68

Browse files
committed
test: add manual embedded strings test
1 parent 0274532 commit b25bf68

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/highlight/embedded.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// NOT AN AUTOMATED TEST.
2+
//
3+
// Looks like Tree-sitter test framework does not allow to test
4+
// for correct language embedding. So, this file is just a showcase
5+
// to observe results with eyes.
6+
//
7+
// You should see comprehensive highlighting for constructs inside
8+
// strings. That is, they should not look like plain strings if
9+
// you have corresponding grammar installed.
10+
11+
// :TSInstall javascript
12+
let inc = %raw(`function(x) {return x + 1;}`)
13+
14+
// :TSInstall graphql
15+
let gql = %graphql(`{ hero { name } }`)

0 commit comments

Comments
 (0)