Skip to content

Commit 8b5c2a6

Browse files
committed
test: add another tranpose test
1 parent e0dc570 commit 8b5c2a6

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

test/test.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,6 +2879,39 @@ describe('Julia grammar', function () {
28792879
},
28802880
])
28812881
})
2882+
it('tokenizes tranposed unicode identifiers in more complicated contexts', function () {
2883+
const tokens = tokenize(grammar, 'k̂\' + bâr\'')
2884+
compareTokens(tokens, [
2885+
{
2886+
value: 'k̂',
2887+
scopes: []
2888+
},
2889+
{
2890+
value: '\'',
2891+
scopes: ["keyword.operator.transposed-variable.julia"]
2892+
},
2893+
{
2894+
value: ' ',
2895+
scopes: []
2896+
},
2897+
{
2898+
value: '+',
2899+
scopes: ["keyword.operator.arithmetic.julia"]
2900+
},
2901+
{
2902+
value: ' ',
2903+
scopes: []
2904+
},
2905+
{
2906+
value: 'bâr',
2907+
scopes: []
2908+
},
2909+
{
2910+
value: '\'',
2911+
scopes: ["keyword.operator.transposed-variable.julia"]
2912+
},
2913+
])
2914+
})
28822915
it('tokenizes parentheses with a transpose', function () {
28832916
const tokens = tokenize(grammar, '()\'')
28842917
compareTokens(tokens, [

0 commit comments

Comments
 (0)