@@ -376,6 +376,16 @@ describe "Julia grammar", ->
376
376
expect (tokens[0 ]).toEqual value : ' #' , scopes : [" source.julia" , " comment.line.number-sign.julia" , " punctuation.definition.comment.julia" ]
377
377
expect (tokens[1 ]).toEqual value : ' This is a comment' , scopes : [" source.julia" , " comment.line.number-sign.julia" ]
378
378
379
+ it " tokenizes block comments" , ->
380
+ {tokens } = grammar .tokenizeLine (' #= begin #= begin end =# end =#' )
381
+ expect (tokens[0 ]).toEqual value : " #=" , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" , " punctuation.definition.comment.begin.julia" ]
382
+ expect (tokens[1 ]).toEqual value : " begin " , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" ]
383
+ expect (tokens[2 ]).toEqual value : " #=" , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" , " comment.block.number-sign-equals.julia" , " punctuation.definition.comment.begin.julia" ]
384
+ expect (tokens[3 ]).toEqual value : " begin end " , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" , " comment.block.number-sign-equals.julia" ]
385
+ expect (tokens[4 ]).toEqual value : " =#" , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" , " comment.block.number-sign-equals.julia" , " punctuation.definition.comment.end.julia" ]
386
+ expect (tokens[5 ]).toEqual value : " end " , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" ]
387
+ expect (tokens[6 ]).toEqual value : " =#" , scopes : [" source.julia" , " comment.block.number-sign-equals.julia" , " punctuation.definition.comment.end.julia" ]
388
+
379
389
it " tokenizes the pair assignment operator" , ->
380
390
{tokens } = grammar .tokenizeLine (' Dict(x => x for x in y)' )
381
391
expect (tokens[0 ]).toEqual value : ' Dict' , scopes : [" source.julia" , " support.function.julia" ]
0 commit comments